Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Vlookup Based on Multiple Conditions

Hi All,

Is there any way to put a Vlookup formula with multiple criterias?

I've over 45,000 rows in Col 'A' - 'E'.
I want G1 to return value of D1, if (E1 and F1) = (A1 and B1) respectively
and blank if they do not match.

A B C D E F G
10 A X Emp1 10 A Emp1
10 B X Emp1 10 B EMP2
11 A Y Emp1 12 C Emp1
11 C Y Emp2
12 A X Emp2
12 A X Emp1
12 C Y Emp1


Thanks for your help.
--
Karthi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Vlookup Based on Multiple Conditions

Base formula:
=INDEX(D:D,sumproduct(--(A$1:A$100=E1),--(B$1:B$100=F1),ROW(D$1:D$100)))

To make blank if no match is found:
=IF(sumproduct(--(A$1:A$100=E1),--(B$1:B$100=F1))=0,"",INDEX(D:D,sumproduct(--(A$1:A$100=E1),--(B$1:B$100=F1),ROW(D$1:D$100))))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Karthik" wrote:

Hi All,

Is there any way to put a Vlookup formula with multiple criterias?

I've over 45,000 rows in Col 'A' - 'E'.
I want G1 to return value of D1, if (E1 and F1) = (A1 and B1) respectively
and blank if they do not match.

A B C D E F G
10 A X Emp1 10 A Emp1
10 B X Emp1 10 B EMP2
11 A Y Emp1 12 C Emp1
11 C Y Emp2
12 A X Emp2
12 A X Emp1
12 C Y Emp1


Thanks for your help.
--
Karthi

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Value based on multiple conditions Eloise Excel Worksheet Functions 3 March 18th 08 11:02 PM
Sum if based on multiple conditions Dave Shultz Excel Discussion (Misc queries) 6 January 3rd 07 06:39 PM
How do I return a value based on multiple possible conditions? nevermore627 Excel Worksheet Functions 4 July 21st 06 01:14 AM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
Count Based upon Multiple Conditions hkslater Excel Worksheet Functions 4 November 19th 04 04:43 AM


All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"