View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Vlookup one value then another

You're welcome!

--
Biff
Microsoft Excel MVP


"Michelle7890" wrote in message
...
Thank you

"T. Valko" wrote:

One way:

E1 = lookup cost center = 300
F1 = lookup account number = 12001

=SUMPRODUCT(--(A2:A10=E1),--(B2:B10=F1),C2:C10)

--
Biff
Microsoft Excel MVP


"Michelle7890" wrote in message
...
I have a spreadsheet (example below). I want to be able to look up the
first
value which is a cost center, then within that cost center find an
account
number and return the $value. For example I want to look up account
12001
in
Cost Center 300 and get the value answer $10.
How can I do this?

Column A Column B Column C
Cost center # Account# $Value
300 12001 $10
300 12002 $30
300 12003 $50
400 12001 $20
400 12002 $40
400 12003 $60