A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup Based on Multiple Conditions



 
 
Thread Tools Display Modes
  #1  
Old December 3rd, 2009, 07:26 AM posted to microsoft.public.excel.misc
karthik
external usenet poster
 
Posts: 45
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  
Old December 3rd, 2009, 01:50 PM posted to microsoft.public.excel.misc
Luke M
external usenet poster
 
Posts: 2,672
Default Vlookup Based on Multiple Conditions

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

To make blank if no match is found:
=IF(sumproduct(--(A$1:A$100=E1),--(B$1:B$100=F1))=0,"",INDEX(D,sumproduct(--(A$1:A$100=E1),--(B$1:B$100=F1),ROW(D$1$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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:07 AM.


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