Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HLookup with more than one lookup value

Status
Not open for further replies.

ba4crm

Technical User
Dec 19, 2003
92
US
Hi,
I have a table in MS Excel 2002 like this:
Row 1 - Clerk (A,B,C)
Row 2 - Status (Approved,Cancel, Denied)
Row 3 - Count of Apps

The data looks like:
A A B B B
Approved Denied Approved Cancel Denied
[Count] [Count] [Count] [Count] [Count]

I would like the data to be displayed like:
Clerk A Clerk B Clerk C
Approved [Count] [Count] [Count]
Cancel [Count] [Count] [Count]
Denied [Count] [Count] [Count]

I know how to use HLookup - but only with one lookup value.
How can I do this?

 
Here is a thought:

Copy and paste as transposed, give it column labels, and make a pivot table.

 
Or, you could use Sumproduct, something like this:

=SUMPRODUCT((A1:E1="A")*(A2:E2="Approved")*(A3:E3))



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top