Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to figure out how to do the following. I am trying to get a sum
of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Couple of ways:
=Sumif(A1:A500,"=40")-Sumif(A1:A500,"60") OR =Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "B_vegas" wrote in message ... I am trying to figure out how to do the following. I am trying to get a sum of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much!
"Ragdyer" wrote: Couple of ways: =Sumif(A1:A500,"=40")-Sumif(A1:A500,"60") OR =Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "B_vegas" wrote in message ... I am trying to figure out how to do the following. I am trying to get a sum of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() -- What if the scenario were the Criteria was in column 1 let us say account name then the amount was in column 5 and you needed to add all for a particular account name? joromajr "Ragdyer" wrote: Couple of ways: =Sumif(A1:A500,"=40")-Sumif(A1:A500,"60") OR =Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "B_vegas" wrote in message ... I am trying to figure out how to do the following. I am trying to get a sum of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You could choose from either of the same 2 functions:
=Sumif(A1:A500,"Acctname",E1:E500) Or =Sumproduct((A1:A500="Acctname")*E1:E500) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "joromajr" wrote in message ... -- What if the scenario were the Criteria was in column 1 let us say account name then the amount was in column 5 and you needed to add all for a particular account name? joromajr "Ragdyer" wrote: Couple of ways: =Sumif(A1:A500,"=40")-Sumif(A1:A500,"60") OR =Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500) -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "B_vegas" wrote in message ... I am trying to figure out how to do the following. I am trying to get a sum of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You're welcome, and appreciate the feed-back.
-- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "B_vegas" wrote in message ... Thank you very much! "Ragdyer" wrote: Couple of ways: =Sumif(A1:A500,"=40")-Sumif(A1:A500,"60") OR =Sumproduct((A1:A500=40)*(A1:A500<=60)*A1:A500) -- HTH, RD -------------------------------------------------------------------------- - Please keep all correspondence within the NewsGroup, so all may benefit ! -------------------------------------------------------------------------- - "B_vegas" wrote in message ... I am trying to figure out how to do the following. I am trying to get a sum of numbers in a column, but the numbers need to fit certain criteria. For example; I have 500 numbers in a column ranging from 1 to 130 I need the sum of only the numbers between 40 and 60. I figure that this involves the sum function and some type of "if" and "and" statement, but i'm not sure how to word this. Could someone Please help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Matrix lookup/mulitple criteria lookup | Excel Discussion (Misc queries) | |||
Get Cell Address From Lookup (Alternative to Lookup) | Excel Worksheet Functions | |||
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup | Excel Worksheet Functions | |||
Sumproduct - Condition based on lookup of a Lookup | Excel Discussion (Misc queries) | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) |