Search the web
Sign In
New User? Sign Up
ms_excel · for users of microsoft excel
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Match using multipe colums   Message List  
Reply | Forward Message #33571 of 36014 |
Re: [ms_excel] Match using multipe colums

You could do something like this instead:

=SUMPRODUCT(--(A2:A6="Lighting"),--(B2:B6="Desk Lamp"),--(C2:C6="LED"),D1:D6)

Or, if you have EXCEL 2007, you could do:

=SUMIFS(D2:D6,A2:A6,"=Lighting",B2:B6,"=Desk Lamp",C2:C6,"=LED")

Otherwise, if you want to do it with some type of lookup function, I
think you'll need to create a "work" column that concatenates the
three lookup fields, then use that column as your lookup key.

On Sun, Jan 11, 2009 at 5:14 PM, smbyrne69 <smbyrne69@...> wrote:
> I am trying to match based on criteria in 3 columns. I have been using
> the CONCATENATE to match in multiple columns.
>
> Dept Type Category Qty
> Lighting Floor Lamp Standard 10
> Lighting Desk Lamp LED 12
> Electrical Electrical Plugs Contractor 15
> Electrical Power Strips 6 pin 20
> Power Tools Drill 18v 5
>
> If I wanted to find the qty for LED Desk Lamp I would
> index(d2:d6,match("lighting"&"Desk
> Lamp"&"LED",CONCATENATE(A2:A6,B2:b6,C2:c6),0),4))
>
> Is there another way besides the CONCATENATE funtion to achieve the
> same result like if statements? I do not want to use the indirect or
> offset function in the formula.



Mon Jan 12, 2009 12:34 am

rharmelink
Offline Offline
Send Email Send Email

Forward
Message #33571 of 36014 |
Expand Messages Author Sort by Date

I am trying to match based on criteria in 3 columns. I have been using the CONCATENATE to match in multiple columns. Dept Type Category...
smbyrne69
Offline Send Email
Jan 12, 2009
12:14 am

You could do something like this instead: =SUMPRODUCT(--(A2:A6="Lighting"),--(B2:B6="Desk Lamp"),--(C2:C6="LED"),D1:D6) Or, if you have EXCEL 2007, you could...
Randy Harmelink
rharmelink
Offline Send Email
Jan 12, 2009
12:34 am

Randy, Thanks.  Does The D1:D6 have to be a number for this formula to work? I was getting the correct result when there was a number there but it was...
Sean Byrne
smbyrne69
Offline Send Email
Jan 12, 2009
2:19 am

Yes. The values being "looked up" would need to be numeric....
Randy Harmelink
rharmelink
Offline Send Email
Jan 12, 2009
2:42 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help