A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sumif; conditional sum



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2004, 05:10 PM
external usenet poster
 
Posts: n/a
Default sumif; conditional sum

I'm trying to get a conditional sum based on the relation
of the cells in the column to be evaluated to a fixed
cell. If the amount in the cell in the evaluated column is
greater than or equal to the amount in the fixed cell, the
corresponding amount in the column to be summed will be
included; if the amount in the cell in the evaluated
column is less than the amount in the fixed cell, the
corresponding amount in column to be summed will not be
included. I can make this work if I type the "sumif"
formula using the amount (i.e, 100000) from the fixed
cell, but I can't make it work if I type the formula using
the cell reference (i.e., $s$1). Any help?
  #2  
Old April 26th, 2004, 05:19 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default sumif; conditional sum

Hi
if your values are in col. A and your fixed cell is B1 try
=SUMIF(A1:A1000,"=" &$B$1)

-----Original Message-----
I'm trying to get a conditional sum based on the relation
of the cells in the column to be evaluated to a fixed
cell. If the amount in the cell in the evaluated column

is
greater than or equal to the amount in the fixed cell,

the
corresponding amount in the column to be summed will be
included; if the amount in the cell in the evaluated
column is less than the amount in the fixed cell, the
corresponding amount in column to be summed will not be
included. I can make this work if I type the "sumif"
formula using the amount (i.e, 100000) from the fixed
cell, but I can't make it work if I type the formula

using
the cell reference (i.e., $s$1). Any help?
.

  #3  
Old April 26th, 2004, 05:33 PM
MMcCullar
external usenet poster
 
Posts: n/a
Default sumif; conditional sum

=SUM(IF((RANGE!$A$1:$A$500=$S$1),RANGE!$A$1:$A$50 0,0)))

where RANGE!$A$1:$A$500 is the range of numbers you are looking at, and
$S$1 is the fixed conditional amount you are comparing them to.
Alternately, you could use

=SUMPRODUCT((RANGE!$A$1:$A$500=$S$1)*(RANGE!$A$1: $A$500))

if there are no empty cells in that range.

Hope that helps.


---
Message posted from http://www.ExcelForum.com/

  #4  
Old April 26th, 2004, 05:39 PM
Nancy
external usenet poster
 
Posts: n/a
Default sumif; conditional sum

That's it! Thank you!
-----Original Message-----
Hi
if your values are in col. A and your fixed cell is B1 try
=SUMIF(A1:A1000,"=" &$B$1)

-----Original Message-----
I'm trying to get a conditional sum based on the

relation
of the cells in the column to be evaluated to a fixed
cell. If the amount in the cell in the evaluated column

is
greater than or equal to the amount in the fixed cell,

the
corresponding amount in the column to be summed will be
included; if the amount in the cell in the evaluated
column is less than the amount in the fixed cell, the
corresponding amount in column to be summed will not be
included. I can make this work if I type the "sumif"
formula using the amount (i.e, 100000) from the fixed
cell, but I can't make it work if I type the formula

using
the cell reference (i.e., $s$1). Any help?
.

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.