#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Sum if

I want to check the column B2 to B265. If observations in that column are
smaller than A2 then I want to sum them up. The sum is then placed in C.
Please help me out!

SUM.IF($B$2:$B$265;<A2;$C$2:$C$265)

Thanks alot!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Sum if

In the USA version, I'd use:

=SUMIF($B$2:$B$265,"<"&A2,$C$2:$C$265)

so maybe:

=SUM.IF($B$2:$B$265;"<"&A2;$C$2:$C$265)




Arne Hegefors wrote:

I want to check the column B2 to B265. If observations in that column are
smaller than A2 then I want to sum them up. The sum is then placed in C.
Please help me out!

SUM.IF($B$2:$B$265;<A2;$C$2:$C$265)

Thanks alot!


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Sum if

Assuming you want one total, try this formula in cell C2 and put the less
than formula e.g.( <23) in cell A2.
=SUMIF(B2:B265,A2)


Assuming you want a running total in column C, then place this formula in
cell C2 and copy it down column C. Make sure cell C1 is equal to -0-. In
this case cell A2 would be just a value e.g.(23).
=IF(B2<$A$2,C1+B2,C1)

Happy Trails

"Arne Hegefors" wrote:

I want to check the column B2 to B265. If observations in that column are
smaller than A2 then I want to sum them up. The sum is then placed in C.
Please help me out!

SUM.IF($B$2:$B$265;<A2;$C$2:$C$265)

Thanks alot!

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



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