#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 106
Default VLOOKUP and SUM

I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but not
how to sum the results. It appears that the lookup stops at the first match.
Any suggestions would be appreciated.

Thanks!
Rebecca

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default VLOOKUP and SUM

SUMPRODUCT may help you. Please post some more details like what are your
ranges etc.


"Rebecca" wrote in message
...
I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but
not
how to sum the results. It appears that the lookup stops at the first
match.
Any suggestions would be appreciated.

Thanks!
Rebecca



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLOOKUP and SUM

Try this:

Sum column B where the corresponding cells in column A = "text".

=SUMIF(A1:A100,"text",B1:B100)

Better to use a cell to hold the "text" :

D1 = text

=SUMIF(A1:A100,D1,B1:B100)

Replace "text" with the actual text string you're looking for.

--
Biff
Microsoft Excel MVP


"Rebecca" wrote in message
...
I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but
not
how to sum the results. It appears that the lookup stops at the first
match.
Any suggestions would be appreciated.

Thanks!
Rebecca



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default VLOOKUP and SUM

You may be needing an Array Formula... that is deep water, but well worth
learning. In addition to Excel Help on Array Formulas, I recommend studing
it in the "Excel 2007 Bible" by John Walklenbach. (There are editions on
earlier Excel versins where Array Formulas exist, too.)

Kim W.


"Rebecca" wrote:

I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but not
how to sum the results. It appears that the lookup stops at the first match.
Any suggestions would be appreciated.

Thanks!
Rebecca

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 106
Default VLOOKUP and SUM

This worked perfectly. Thanks very much.

"T. Valko" wrote:

Try this:

Sum column B where the corresponding cells in column A = "text".

=SUMIF(A1:A100,"text",B1:B100)

Better to use a cell to hold the "text" :

D1 = text

=SUMIF(A1:A100,D1,B1:B100)

Replace "text" with the actual text string you're looking for.

--
Biff
Microsoft Excel MVP


"Rebecca" wrote in message
...
I am working with a spreadsheet where I need to lookup a text value in one
column and sum the numbers appearing in another column. Is there a way to
combine these two functions? I've figured out how to do the lookup, but
not
how to sum the results. It appears that the lookup stops at the first
match.
Any suggestions would be appreciated.

Thanks!
Rebecca






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default VLOOKUP and SUM

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Rebecca" wrote in message
...
This worked perfectly. Thanks very much.

"T. Valko" wrote:

Try this:

Sum column B where the corresponding cells in column A = "text".

=SUMIF(A1:A100,"text",B1:B100)

Better to use a cell to hold the "text" :

D1 = text

=SUMIF(A1:A100,D1,B1:B100)

Replace "text" with the actual text string you're looking for.

--
Biff
Microsoft Excel MVP


"Rebecca" wrote in message
...
I am working with a spreadsheet where I need to lookup a text value in
one
column and sum the numbers appearing in another column. Is there a way
to
combine these two functions? I've figured out how to do the lookup,
but
not
how to sum the results. It appears that the lookup stops at the first
match.
Any suggestions would be appreciated.

Thanks!
Rebecca






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 06:09 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"