Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
Hi everyone,
Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
=SUMPRODUCT(--(B2:B100),--(C2:C100="Cleared"))
Dave -- Brevity is the soul of wit. "Alex" wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
For a single condition, use SUMIF
=SUMIF(C2:C100,"Cleared",B2:B100) "Dave F" wrote: =SUMPRODUCT(--(B2:B100),--(C2:C100="Cleared")) Dave -- Brevity is the soul of wit. "Alex" wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
=sumif(b2:b100,"Cleared",c2:c100)
-- CCO "Alex" wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
Hi,
Yes: =SUMIF(C2:C100,"cleared",B2:B100) HTH Jean-Guy "Alex" wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
=SUMIF(C2:C100,"Cleared",B2:B100)
"Alex" wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Sum columns only if certain value is present
Hi,
Try =SUMPRODUCT(--($C$2:$C$100="Cleared")*($B$2:$B$100)) VBA Noob Alex wrote: Hi everyone, Is it possible to sum a list of values, but only count the value if a particular field in the row equals something? So for example, I have column B having a value and column C can have either Pending or Cleared. I want to sum all values from say B2 through B100 where C2 through B100 equals Cleared. Is this possible? Thanks .. Alex |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selecting different multiple columns | Excel Worksheet Functions | |||
How do I make sure all empty columns are present in a .csv file? | Excel Worksheet Functions | |||
adding three consecutive columns | Excel Worksheet Functions | |||
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns | Excel Discussion (Misc queries) | |||
SUM/COUNT column(s) based on specific value present within the column | Excel Worksheet Functions |