**Question description:**

*This user has given permission to use the problem statement for this blog.*

I need a formula stating if value in range B3:B11=Word, then print whats in the first cell of that row and stop. if not, continue on.

Solved by I. L. in 18 mins

This is the chat thread from the real Excelchat help session. It contains no private user information.

Excelchat Expert
06/08/2018 - 05:22

Hello, I understand that you want to check if the value of B3:B11 is equal to Word, if it is, print the first cell and stop looking right?

User
06/08/2018 - 05:23

yes

Excelchat Expert
06/08/2018 - 05:23

Are you able to provide a sample data so I can understand it better?

Excelchat Expert
06/08/2018 - 05:25

Okay, using the sample you provided, what is the expected output?

User
06/08/2018 - 05:26

If the ifelse statement finds "Word" its true and prints the Cell before it

Excelchat Expert
06/08/2018 - 05:26

Please show me an example output using the sample data you provided.

User
06/08/2018 - 05:26

for instance B1=word, print A1

Excelchat Expert
06/08/2018 - 05:27

I see.

Excelchat Expert
06/08/2018 - 05:27

Thank you.

Excelchat Expert
06/08/2018 - 05:27

Where do you want the formula?

User
06/08/2018 - 05:27

A16

Excelchat Expert
06/08/2018 - 05:28

Can you manually type the expected answer please?

User
06/08/2018 - 05:28

But it has to go through the whole range even if it finds a true

User
06/08/2018 - 05:28

the expected answer is the person's name

Excelchat Expert
06/08/2018 - 05:29

No, just show me using the example so I'll have a better understanding of your request.

Excelchat Expert
06/08/2018 - 05:29

In the example you typed, what should be the result of the formula?

Excelchat Expert
06/08/2018 - 05:29

That way, I'll have something to compare the result of my formula with.

User
06/08/2018 - 05:30

if B2=Word, print A2, if not continue on

Excelchat Expert
06/08/2018 - 05:30

Please, show me in the sheet to the right, not here.

Excelchat Expert
06/08/2018 - 05:30

Because I can see 4 Word in your list.

User
06/08/2018 - 05:30

B2=Word, print A2

Excelchat Expert
06/08/2018 - 05:30

Are you able to read my messages?

User
06/08/2018 - 05:30

Yes

Excelchat Expert
06/08/2018 - 05:31

If so, please show me the result you expect in the sheet to the right, not in this chat window.

Excelchat Expert
06/08/2018 - 05:32

There, that's why I was asking for a sample output. So you just want to list everything that has a WORD.

Excelchat Expert
06/08/2018 - 05:32

It's easier explaining it with an example.

User
06/08/2018 - 05:33

I can see that....lol

User
06/08/2018 - 05:33

yes please

Excelchat Expert
06/08/2018 - 05:33

Let me work on this. Before we proceed, this is a reminder that our policy is 1 question per session so for this session we'll be resolving this particular question. We also currently do not support VBA/Macro solutions.

Excelchat Expert
06/08/2018 - 05:34

I've applied the formula starting row 16.

Excelchat Expert
06/08/2018 - 05:35

You can play around with it by changing your sample data. Try to add more Word or change the names.

Excelchat Expert
06/08/2018 - 05:35

Please note that the formula will only work in GoogleSheets.

Excelchat Expert
06/08/2018 - 05:35

If you need it to work with Excel, we'll have to change it slightly.

User
06/08/2018 - 05:36

wow, thats really good

Excelchat Expert
06/08/2018 - 05:37

If you need to use it in Excel, here's the formula:

Excelchat Expert
06/08/2018 - 05:37

=IFERROR(INDEX($A$1:$A$15, SMALL(IF(($B$2:$B$11="Word"),ROW($A$2:$A$11),FALSE),ROW(1:1))),"")

Excelchat Expert
06/08/2018 - 05:37

The formulas used are array formulas so they need to be confirmed by using CTRL+SHIFT+ENTER instead of just ENTER. You'll know that you've done it correct if the formula gets automatically enclosed in { }

Excelchat Expert
06/08/2018 - 05:38

Here's the file with the formula working in Excel.

[Uploaded an Excel file]

User
06/08/2018 - 05:38

wow you are awesome!

User
06/08/2018 - 05:38

I wouldnt have got this on my own

Excelchat Expert
06/08/2018 - 05:38

Glad to have helped!

Excelchat Expert
06/08/2018 - 05:39

Would there be anything else that I can help you with regards to the original question?

User
06/08/2018 - 05:39

That would be all

User
06/08/2018 - 05:39

Thank you

Excelchat Expert
06/08/2018 - 05:39

Alright, if you have no other questions regarding the original concern, I'd appreciate a 5-star rating and your feedback if you think I deserve it.

Excelchat Expert
06/08/2018 - 05:39

I'll be giving you high ratings as well so the other experts will know that you are a good client and should be taken care of.

User
06/08/2018 - 05:39

;-)

Excelchat Expert
06/08/2018 - 05:39

Please do not forget to click the End Session button otherwise I'll be stuck here until the timer expires and be unable to help others. Thank you.

**This is the output file from the real Excelchat help session:**

*This is an example of the expert help you can get. It contains no private user information.*