Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Summing based on a range of criteria

If I have the number "1" in cells A1 through A5 and the number "2" in cells
A6 through A9 and then I have various dollar values in cells B1 through B9,
how can I sum the items in cells B1 through B5 because they have the same
number (in this case "1") in cells A1 through A5? Likewise, how can I sum
the values in cells B6 through B9 because they have the same value in cells
A6 through A9 (in this case "2")? What function is there that would allow me
to compare the values in column A in order to sum the values in column B?
Can someone show me the syntax? Assume that I have 2000+ plus rows that need
to have the comparison and subsequent summing completed.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 120
Default Summing based on a range of criteria

Hi

Try using this in C1

=SUMIF(A1:A9,1,B1:B9)

this will give you the sum of value with condition as 1
chnage the condition to 2

or you can use a cell reference

--
Hope this is helpful

Pls click the Yes button below if this post provide answer you have asked

Thank You

cheers, francis

Am not a greek but an ordinary user trying to assist another



"Mike" wrote:

If I have the number "1" in cells A1 through A5 and the number "2" in cells
A6 through A9 and then I have various dollar values in cells B1 through B9,
how can I sum the items in cells B1 through B5 because they have the same
number (in this case "1") in cells A1 through A5? Likewise, how can I sum
the values in cells B6 through B9 because they have the same value in cells
A6 through A9 (in this case "2")? What function is there that would allow me
to compare the values in column A in order to sum the values in column B?
Can someone show me the syntax? Assume that I have 2000+ plus rows that need
to have the comparison and subsequent summing completed.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Summing based on a range of criteria

=sumif(a1:A99,1,b1,b99)

excel will return the sum of amounts on column b if you have a 1 in column A
hth
--
pleae click yes if it was helpfull
regards from Brazil
Marcelo



"Mike" escreveu:

If I have the number "1" in cells A1 through A5 and the number "2" in cells
A6 through A9 and then I have various dollar values in cells B1 through B9,
how can I sum the items in cells B1 through B5 because they have the same
number (in this case "1") in cells A1 through A5? Likewise, how can I sum
the values in cells B6 through B9 because they have the same value in cells
A6 through A9 (in this case "2")? What function is there that would allow me
to compare the values in column A in order to sum the values in column B?
Can someone show me the syntax? Assume that I have 2000+ plus rows that need
to have the comparison and subsequent summing completed.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Summing based on a range of criteria

Use SUMIF

if Col A contains numerics
=sumif(A1:A2000,1,B1,B2000)

since you have mentioned this as *** "1" **** if Col A is text
=sumif(A1:A2000,"1",B1,B2000)


If this post helps click Yes
---------------
Jacob Skaria


"Mike" wrote:

If I have the number "1" in cells A1 through A5 and the number "2" in cells
A6 through A9 and then I have various dollar values in cells B1 through B9,
how can I sum the items in cells B1 through B5 because they have the same
number (in this case "1") in cells A1 through A5? Likewise, how can I sum
the values in cells B6 through B9 because they have the same value in cells
A6 through A9 (in this case "2")? What function is there that would allow me
to compare the values in column A in order to sum the values in column B?
Can someone show me the syntax? Assume that I have 2000+ plus rows that need
to have the comparison and subsequent summing completed.

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
Summing a range based on value criteria WiFiMike2006 Excel Discussion (Misc queries) 2 March 1st 07 01:08 AM
Summing data based on criteria Wendy Excel Discussion (Misc queries) 2 August 1st 06 04:07 PM
Summing based on criteria jspizman Excel Worksheet Functions 1 July 20th 06 04:48 PM
Summing quantities based on like criteria? aburnce Excel Discussion (Misc queries) 5 May 4th 06 12:11 AM
Summing based on 2 criteria cubsfan Excel Discussion (Misc queries) 2 April 20th 06 04:21 PM


All times are GMT +1. The time now is 12:34 PM.

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

About Us

"It's about Microsoft Excel"