Vlookup with multiple IF Statements

lsab

New Member
Joined
Aug 16, 2012
Messages
16
Hi all,

I've got the following formula...
=IF(ISTEXT(M6),VLOOKUP(M6,ContractHire!$B$2:$AE$999999,17,FALSE)," ")

However I need to add some further conditions.
H1 = 48
J1 = 10000

I need these conditions to match those in the external workbook.
In simple terms - find line which matches M6, H1 & J1.

Is there also a more elegant end efficient than what I already have?

Thanks in advance.


Lewis
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Use an AND statement in your logical_test if you want to return something that matches all 3 cells
 
Upvote 0
Thanks for your reply.
Could you please give me an example of how that may look?
 
Upvote 0
IF(AND(ISTEXT(M6),<Enter second argument for H1>, <Enter third argument for J1>),VLOOKUP(M6,ContractHire!$B:$AE,17,FALSE),"")
 
Upvote 0
I just get #VALUE! returned.
=IF(AND(ISTEXT(M6),, ),VLOOKUP(M6,ContractHire!$B:$AE,17,FALSE),"")*IF(AND(ISTEXT(N6),,),VLOOKUP(N6,ContractHire!$B:$AE,12,FALSE),"")

Is that correct?

Thanks
 
Upvote 0
I managed to resolve this using.....

=INDEX(ContractHire!$R:$R,MATCH(1,(ContractHire!$B:$B=$M6)*(ContractHire!$N:$N=$O6)*(ContractHire!$M:$M=$N6),0))
Applied with CTRL + Shift + Enter

Thanks for your help :)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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