Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Vlookup one value then another

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup one value then another

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Vlookup one value then another

=SUMPRODUCT(--(A2:A100=costcenter),--(B2:B100=account),(C2:C100))

Hope this helps.
--
John C


"Michelle7890" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Vlookup one value then another

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






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Vlookup one value then another

Thank you!

"John C" wrote:

=SUMPRODUCT(--(A2:A100=costcenter),--(B2:B100=account),(C2:C100))

Hope this helps.
--
John C


"Michelle7890" wrote:

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

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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






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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 12:21 AM.

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

About Us

"It's about Microsoft Excel"