VLOOKUPIFS, VLOOKUP with multiple conditions

HOGGL

New Member
Joined
Nov 2, 2017
Messages
7
Hi,

Hope someone can help. Going round in circles trying to work out how to do a lookup with multiple conditions.
Trying to lookup using the customer CGLE300 (H1) to return Description in column F if the ACCT. is 1000 (H2) and the Status is "Final" (H3).

Think i should be using vlookup and match functions, but can't seem to get one to work. Any ideas or pointers would be much appreciated.


ABCDEFGH
1CUSTSTATUSDATEACCTACCT. NAMEDESCRIPTIONCGLE300
2CGLE300Final2017-09-281000Customer NameJo Bloggs Boozer1000
3CGLE300Provisional2017-09-291000Customer NameJo Bloggs Boozer v2Final
4CBOO600Final2017-09-291000Customer NameBargain Bonanza
5CBOO600Provisional2017-09-281000Customer NameBargain Booze v2
6CGLE300Provisional2017-09-282001Invoice AddressPO Box 9999

<tbody>
</tbody>

Thanks in advance.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this...
A​
B​
C​
D​
E​
F​
G​
H​
1​
CUST​
STATUS​
DATE​
ACCT​
ACCT. NAME​
DESCRIPTION​
CGLE300
2​
CGLE300Final9/28/20171000Customer NameJo Bloggs Boozer1000
3​
CGLE300Provisional9/29/20171000Customer NameJo Bloggs Boozer v2Final
4​
CBOO600Final9/29/20171000Customer NameBargain Bonanza
5​
CBOO600Provisional9/28/20171000Customer NameBargain Booze v2
6​
CGLE300Provisional9/28/20172001Invoice AddressPO Box 9999

J​
K​
L​
M​
N​
O​
1​
CUST​
STATUS​
DATE​
ACCT​
ACCT. NAME​
DESCRIPTION​
2​
CGLE300Final
43006​
1000​
Customer NameJo Bloggs Boozer
J2=INDEX(A$2:A$6,MATCH($H$1&$H$2&$H$3,INDEX($A$2:$A$6&$D$2:$D$6&$B$2:$B$6,0),0))
copied across

This will only pull the 1st match it finds, if you have more than 1 match, you will need a different formula
 
Upvote 0
Ford thanks so much for that! :biggrin:

If I did have more than one match and i wanted to take the most recent - without sorting it into date order so it picks up the first match - is there a way to do that?
 
Upvote 0
bASED ON THAT SAME SAMPLE, CHANGE TO THIS...
=INDEX(A$2:A$7,MATCH($H$1&$H$2&$H$3&MAX($C$2:$C$7),INDEX($A$2:$A$7&$D$2:$D$7&$B$2:$B$7&$C$2:$C$7,0),0))
COPIED ACROSS
 
Upvote 0
Is this what you are after?

=INDEX($F$2:$F$6,MATCH(MAX(IF($A$2:$A$6=H1,IF($B$2:$B$6=H3,IF($D$2:$D$6=H2,$C$2:$C$6)))),IF($A$2:$A$6=H1,IF($B$2:$B$6=H3,IF($D$2:$D$6=H2,$C$2:$C$6))),0))

which is confirmed with control+shift+enter, not just enter.
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,305
Members
449,095
Latest member
Chestertim

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