Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Conditional summation

I'm trying to sum a column of numbers but I only want to
add numbers where a condition is satisfied. The condition
increments with the row. I can manualy grunt through the
equation but there is a limit on how long the formula can
be. Is there a way to increment a condition in a SUM?

Specifically, the equation would look like this:

=IF(BA23="y",N23,)+IF(BA24="y",N24,)+IF(BA25="y",N 25,)+IF
(BA26="y",N26,)...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional summation

=sumif(BA23:BA500,"y",N23:N500)

--
Regards,
Tom Ogilvy

"Dale" wrote in message
...
I'm trying to sum a column of numbers but I only want to
add numbers where a condition is satisfied. The condition
increments with the row. I can manualy grunt through the
equation but there is a limit on how long the formula can
be. Is there a way to increment a condition in a SUM?

Specifically, the equation would look like this:

=IF(BA23="y",N23,)+IF(BA24="y",N24,)+IF(BA25="y",N 25,)+IF
(BA26="y",N26,)...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Conditional summation

Thanks Tom,I knew there had to be an easy solution.
-----Original Message-----
=sumif(BA23:BA500,"y",N23:N500)

--
Regards,
Tom Ogilvy

"Dale" wrote in

message
...
I'm trying to sum a column of numbers but I only want to
add numbers where a condition is satisfied. The

condition
increments with the row. I can manualy grunt through

the
equation but there is a limit on how long the formula

can
be. Is there a way to increment a condition in a SUM?

Specifically, the equation would look like this:

=IF(BA23="y",N23,)+IF(BA24="y",N24,)+IF(BA25="y",N 25,)

+IF
(BA26="y",N26,)...



.

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
conditional summation bill conlen Excel Discussion (Misc queries) 5 April 18th 08 11:52 PM
conditional summation boostm3 Excel Discussion (Misc queries) 3 June 6th 07 11:02 PM
VBA code to perform summation and product summation 21MSU[_2_] Excel Programming 4 May 17th 04 07:19 PM
Summation John Excel Programming 0 May 6th 04 07:01 PM
Summation No Name Excel Programming 3 April 14th 04 09:59 PM


All times are GMT +1. The time now is 03:29 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"