A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VLOOKUP and SUM



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2008, 04:40 PM posted to microsoft.public.excel.worksheet.functions
Rebecca
external usenet poster
 
Posts: 284
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  
Old September 23rd, 2008, 04:51 PM posted to microsoft.public.excel.worksheet.functions
Gaurav[_6_]
external usenet poster
 
Posts: 128
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  
Old September 23rd, 2008, 05:53 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
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  
Old September 23rd, 2008, 06:04 PM posted to microsoft.public.excel.worksheet.functions
KIM W
external usenet poster
 
Posts: 25
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  
Old September 23rd, 2008, 06:07 PM posted to microsoft.public.excel.worksheet.functions
Rebecca
external usenet poster
 
Posts: 284
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  
Old September 23rd, 2008, 06:18 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
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






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:40 PM.


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