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!
 
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)),"")

FEES-BATCHED (FEES)
A1B1C1D1E1
MonthOFFICE1 OR LL MATCHEDFORMULA OFFICE NAMES

Client code
1
LL MATCH???
BOBS OFFICE
L7676
1BOBS OFFICE???JEFFS OFFICEW4545

<tbody>
</tbody>


LL
A1B1
Client codeOffice of Client
L2121Franks Office
L7676James' Office
W4545

<tbody>
</tbody>

So it looks at FEES B1 if it says LL MATCH it looks in LL A1 to find a code that matches FEES E1, if it does FEES C1 will show LL B1. However if LL B1 is empty it should display FEES D1.

I hope this makes sense I have tried to explain it as best I can! Thank you again!! I just wish i could work this out myself!
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
FEES-BATCHED (FEES)
A1B1C1D1E1
MonthOFFICE1 OR LL MATCHEDFORMULAOFFICE NAMES
Client code
1LL MATCH???BOBS OFFICEL7676
1BOBS OFFICE???JEFFS OFFICEW4545

<tbody>
</tbody>


LL
A1B1
Client codeOffice of Client
L2121Franks Office
L7676James' Office
W4545

<tbody>
</tbody>

So it looks at FEES B1 if it says LL MATCH it looks in LL A1 to find a code that matches FEES E1, if it does FEES C1 will show LL B1. However if LL B1 is empty it should display FEES D1.

I hope this makes sense I have tried to explain it as best I can! Thank you again!! I just wish i could work this out myself!


I THINK I CRACKED IT!!!! i think i have done it... =IF(B2="LL MATCH",IF(VLOOKUP(E2,Sheet2!$A$2:$B$3000,2,FALSE)=0,D2,VLOOKUP(E2,Sheet2!$A$2:$B$3000,2,FALSE)),"")
 
Upvote 0
I left out the qualifier for the first VLOOKUP:

=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)),"")

OR

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

EDIT: I just saw your post - glad you figured it out. :)
 
Upvote 0
I left out the qualifier for the first VLOOKUP:

=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)),"")

OR

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

EDIT: I just saw your post - glad you figured it out. :)


Thank you very much for your help!! :):)
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,931
Members
449,480
Latest member
yesitisasport

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