Solved

MS Excel, lookup multi value.

Posted on 2013-01-22
5
226 Views
Last Modified: 2013-01-22
I have an excel file (attached file).

I want to make a formular to lookup base on 2 parameters.

How can I do that?

Please check attached file for detail.

Thank you!
leadtime-file--1.xlsx
0
Comment
Question by:JameMeck
  • 3
  • 2
5 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 38808318
Hello,

why don't you just build a pivot table with company name in the rows, lead time in the columns and perform a count on the records?

cheers, teylyn
0
 

Author Comment

by:JameMeck
ID: 38808326
Dear teylyn,

The original data table I cannot edit, the column count I inserted and manual input.

There is only 1 way is lookup.
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 38808356
Problem is that a pivot table is not a good source for further analysis. The labels appear only in one cell.

In Excel 2010 you can change that, though. Click the pivot table, then in the Design ribbon click Report Layout > Show in Tabular form. Then click Report Layout > Repeat all item labels.

Now you can use a Countifs function in your other table. Starting in cell O5

=COUNTIFS($A:$A,$M5,$B:$B,O$4)

Copy across and down. Format with custom format

0;;

to suppress zeros, if desired. Column K is no longer required.

Mind you that the table labels in row 4 must be EXACTLY the same text as in the pivot table. I had to correct many of them.

See attached.
leadtime-file--1--1-.xlsx
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 38808418
For some reason, the Countifs formula returns some weird results. But this Sumproduct seems to do the trick nicely, starting in cell O5 and copied across and down.

=SUMPRODUCT(--($A$1:$A$250=$M5),--($B$1:$B$250=O$4))
0
 

Author Closing Comment

by:JameMeck
ID: 38808438
Ha,

Thank you!

It is perfect solution.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question