#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default look up

Hello all,
I'm needing to do the following: if(and(a1=b2,c2=d2),e2,"")
but, I need to look through colums. Like Vlookup.
if(and(a1=b:b,c2=d:d),e:e,"")

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default look up


I think you are looking for this. Don't use the whole column unless xl2007

=sumproduct((b2:b22=a1)*(d2:d22=c2)*e2:e22)
or
=sumproduct(--(b2:b22=a1),--(d2:d22=c2),e2:e22)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"pgarcia" wrote in message
...
Hello all,
I'm needing to do the following: if(and(a1=b2,c2=d2),e2,"")
but, I need to look through colums. Like Vlookup.
if(and(a1=b:b,c2=d:d),e:e,"")

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default look up

Thanks, but I just remmber I had this in another workbook:
=INDEX('101408'!$B$2:$R$21,MATCH(M2,'101408'!$A$2: $A$24,0),MATCH(I2,'101408'!$B$1:$R$1,0))

And that worked. Thanks

"Don Guillett" wrote:


I think you are looking for this. Don't use the whole column unless xl2007

=sumproduct((b2:b22=a1)*(d2:d22=c2)*e2:e22)
or
=sumproduct(--(b2:b22=a1),--(d2:d22=c2),e2:e22)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"pgarcia" wrote in message
...
Hello all,
I'm needing to do the following: if(and(a1=b2,c2=d2),e2,"")
but, I need to look through colums. Like Vlookup.
if(and(a1=b:b,c2=d:d),e:e,"")

Thanks



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



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

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

About Us

"It's about Microsoft Excel"