Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using sumif to sum a range of values

Is there a way to use sumif to sum a range of values based on two conditions.
In other words I would like to sum a range of values in col c if values in
col b are equal to "2006" and values f are equal to "proposed".
Thanks

--
hwy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default using sumif to sum a range of values

One way:

=SUMPRODUCT(--(B1:B100=2006),--(F1:F100="proposed"),C1:C100)

for an explanation of "--", see

http://www.mcgimpsey.com/excel/doubleneg.html


In article ,
highwayman wrote:

Is there a way to use sumif to sum a range of values based on two conditions.
In other words I would like to sum a range of values in col c if values in
col b are equal to "2006" and values f are equal to "proposed".
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default using sumif to sum a range of values

=sumproduct(--(b2:b1000="2006"),--(f2:f1000="proposed"),c2:c1000)


"highwayman" wrote:

Is there a way to use sumif to sum a range of values based on two conditions.
In other words I would like to sum a range of values in col c if values in
col b are equal to "2006" and values f are equal to "proposed".
Thanks

--
hwy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using sumif to sum a range of values

Fantastic, thanks
--
hwy


"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(B1:B100=2006),--(F1:F100="proposed"),C1:C100)

for an explanation of "--", see

http://www.mcgimpsey.com/excel/doubleneg.html


In article ,
highwayman wrote:

Is there a way to use sumif to sum a range of values based on two conditions.
In other words I would like to sum a range of values in col c if values in
col b are equal to "2006" and values f are equal to "proposed".
Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default using sumif to sum a range of values

Great, thank you very much.

--
hwy


"Duke Carey" wrote:

=sumproduct(--(b2:b1000="2006"),--(f2:f1000="proposed"),c2:c1000)


"highwayman" wrote:

Is there a way to use sumif to sum a range of values based on two conditions.
In other words I would like to sum a range of values in col c if values in
col b are equal to "2006" and values f are equal to "proposed".
Thanks

--
hwy

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
Return Matched Numeric Values across Rows Sam via OfficeKB.com Excel Worksheet Functions 2 January 2nd 07 11:03 PM
Searching a date range to output values according to a constant. daddylonglegs Excel Discussion (Misc queries) 0 November 30th 06 08:23 PM
How do I define a range using values in cells? Matthieu de Wit Excel Worksheet Functions 2 April 26th 06 09:43 PM
Counting by a Range of Values? Ender Excel Worksheet Functions 7 April 7th 06 11:06 PM
SUMIF not adding a range Kathy Excel Discussion (Misc queries) 1 April 5th 06 12:36 AM


All times are GMT +1. The time now is 11:59 PM.

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"