Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
Hi all Does anybody know how the formula for a multiple vlookup. I want to lookup against a pivot table that has various customers in column B and product categories in column H and a sales value in column I. What I want to do is lookup a particular customer and a particular product and return the sales value. EG VLOOKUP (Customer A) and VLOOKUP (Product B) and return the sales value. Can anyone help??? Driving me mad!! Many thanks for looking. Regards Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
One way is to put something like, in say J2:
=INDEX($I$2:$I$10,MATCH(1,($B$2:$B$10="Customer A")*($H$2:$H$10="Product B"),0)) then array-enter the formula, i.e. press CTRL+SHIFT+ENTER instead of just pressing ENTER Adapt the ranges to suit .. (note that entire col ranges cannot be used, eg: B:B, H:H, etc) -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "certain_death" wrote in message news:certain_death.237tkz_1139913901.5555@excelfor um-nospam.com... Hi all Does anybody know how the formula for a multiple vlookup. I want to lookup against a pivot table that has various customers in column B and product categories in column H and a sales value in column I. What I want to do is lookup a particular customer and a particular product and return the sales value. EG VLOOKUP (Customer A) and VLOOKUP (Product B) and return the sales value. Can anyone help??? Driving me mad!! Many thanks for looking. Regards Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
Hi Max Have tried this but am getting the classic #N/A response. What am I doing wrong? Here is my formula =INDEX('Sales and GC'!$I$7:$I$65000,MATCH(1,('Sales and GC'!$B$7:$B$65000="BOOTS")*('Sales and GC'!$H$7:$H$65000="LIL DIG"),0)) Anything I'm doing wrong? Thanks Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
Hi Mark,
Have a look at the GETPIVOTDATA excel function rgds André "certain_death" wrote in message news:certain_death.237tkz_1139913901.5555@excelfor um-nospam.com... Hi all Does anybody know how the formula for a multiple vlookup. I want to lookup against a pivot table that has various customers in column B and product categories in column H and a sales value in column I. What I want to do is lookup a particular customer and a particular product and return the sales value. EG VLOOKUP (Customer A) and VLOOKUP (Product B) and return the sales value. Can anyone help??? Driving me mad!! Many thanks for looking. Regards Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
I'd check the data first.
Do you have Boots in B7:B65000 and do you have LIL DIG in H7:H65000 of that same row with Boots in it? certain_death wrote: Hi Max Have tried this but am getting the classic #N/A response. What am I doing wrong? Here is my formula =INDEX('Sales and GC'!$I$7:$I$65000,MATCH(1,('Sales and GC'!$B$7:$B$65000="BOOTS")*('Sales and GC'!$H$7:$H$65000="LIL DIG"),0)) Anything I'm doing wrong? Thanks Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 -- Dave Peterson |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Multiple VLookups - Can anyone help me please?
Think there's nothing wrong with your adaptation. Assuming there should be
a match/result for the inputs: BOOTS/LIL DIG, then probably the source data may contain extraneous white spaces (leading, trailing or in-between spaces) which is throwing the matching off (These spaces are not readily visible). We could use TRIM around cols B and H to make the matching more robust: =INDEX('Sales and GC'!$I$7:$I$65000,MATCH(1,(TRIM('Sales and GC'!$B$7:$B$65000)="BOOTS")*(TRIM('Sales and GC'!$H$7:$H$65000)="LIL DIG"),0)) (Above array-entered as before) P/s: Try using the smallest range large enough to cover, for calc efficiency/performance. Your range is pretty large <g. -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "certain_death" wrote in message news:certain_death.237vfm_1139916301.0022@excelfor um-nospam.com... Hi Max Have tried this but am getting the classic #N/A response. What am I doing wrong? Here is my formula =INDEX('Sales and GC'!$I$7:$I$65000,MATCH(1,('Sales and GC'!$B$7:$B$65000="BOOTS")*('Sales and GC'!$H$7:$H$65000="LIL DIG"),0)) Anything I'm doing wrong? Thanks Mark:) -- certain_death ------------------------------------------------------------------------ certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561 View this thread: http://www.excelforum.com/showthread...hreadid=512174 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sum a row of multiple vlookups | Excel Worksheet Functions | |||
Multiple Vlookups | Excel Worksheet Functions | |||
multiple vlookups | Excel Worksheet Functions | |||
multiple vlookups | Excel Worksheet Functions | |||
Vlookups and multiple returns (again!) | Excel Worksheet Functions |