How to find data in a cell??

INEEDEXCELHELP

New Member
Joined
Apr 23, 2014
Messages
9
:) Okay here goes!!

Basically I need a formula that work as below. It's over two sheets and is probably very easy to most of you I just cant get my head round this one!!

If B1 (sheet 1) = "TEXT1" ,FIND the content I1 (sheet 1) within a1:a3000 (sheet 2). If I1 is found in that range i need to know the text in the cell next to the found text.

eg: the text of I1 (sheet 1) was found in cell a234 (sheet 2) so it gives me the text in b234.

Thanks in advance!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If I understood your question correctly, I believe this should work for you:

=INDEX($B$1:$B$3000,MATCH(Sheet1!I1,$A$1:$A$3000,0))
 
Upvote 0
Welcome to the Board!

Have you tried VLOOKUP:

=IF(B1="TEXT1",VLOOKUP(I1,Sheet2!A1:B300,2,FALSE),"")

HTH,
 
Upvote 0
=IF(B20="LL MATCH",VLOOKUP(I20,LL!$A$2:$A$3000,2,FALSE),"")

This is my version of your formula in my workbook, Smitty but I just get #N/A?

Just to try and make better sense of it, If b20 (im starting from 20 on this sheet!) on Sheet 'FEES-BATCHED' states "LL MATCH" I need it to look at L20 on 'FEES-BATCHED' (NOT I20 anymore!) which might state L21433 and see if that same value is in a cell on another sheet. ('LL') between a1 - a3000 if it finds that value in say cell:a2345 then it show the data found in b2345. Sorry to be a pain! And thank you for your help so far!! :)
 
Upvote 0
If you want to look up L20, then you need to change I20 in the formula to L20. ;)

=IF(B20="LL MATCH",VLOOKUP(L20,LL!$A$2:$A$3000,2,FALSE),"")
 
Upvote 0
I should have caught that:

=IF(B20="LL MATCH",VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE),"")

You were referring A:A, but trying to reference the second column (2), which is outside of the reference range, hence the REF error. If you extend it to A:B you should be fine.
 
Upvote 0
I should have caught that:

=IF(B20="LL MATCH",VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE),"")

You were referring A:A, but trying to reference the second column (2), which is outside of the reference range, hence the REF error. If you extend it to A:B you should be fine.


WOW thank you soooo much!!! your a genius!! :)

Now to add a exra bit :P if the content of 'LL' B2345 is empty the cell shows the content of e20 on 'FEES-BATCHED'

Is this possible?
 
Upvote 0
You'd probably want a nested IF statement. Something like this:

=IF(B20="LL MATCH",IF(VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE),'FEES-BATCHED'!E20,VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE)),"")
 
Upvote 0
You'd probably want a nested IF statement. Something like this:

=IF(B20="LL MATCH",IF(VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE),'FEES-BATCHED'!E20,VLOOKUP(L20,LL!$A$2:$B$3000,2,FALSE)),"")

Sorry Smitty this comes up with #N/A?? what does that mean?:confused:

Also how did you come up with that formula? As I would like to know how to write this for myself in the future :)

Although I bow down to your knowledge! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,913
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top