Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SamFortMyers
 
Posts: n/a
Default Sumif function with two criteria from different columns

Can I add a criterion to a SUMIF function?
After checking the initial range for a value, I want to make sure that the
cell in the Sum_range is 0 before completing the SUM.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

IF(SUMIF(...)0,SUMIF(...),"Not valid")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SamFortMyers" wrote in message
...
Can I add a criterion to a SUMIF function?
After checking the initial range for a value, I want to make sure that the
cell in the Sum_range is 0 before completing the SUM.



  #3   Report Post  
SamFortMyers
 
Posts: n/a
Default

This appears to test that the SUM is 0. I wanted to test each component cell
in the SUM_Range, ignoring any that showed a negative figure.

"Bob Phillips" wrote:

IF(SUMIF(...)0,SUMIF(...),"Not valid")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SamFortMyers" wrote in message
...
Can I add a criterion to a SUMIF function?
After checking the initial range for a value, I want to make sure that the
cell in the Sum_range is 0 before completing the SUM.




  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi

how about
=SUMPRODUCT(--(A1:A1000),--(B1:B100="blue"),A1:A100)

where A1:A100 is the range you want to SUM
B1:B100 is the range containing your criteria
and
blue is the criteria

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on using SUMPRODUCT

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"SamFortMyers" wrote in message
...
This appears to test that the SUM is 0. I wanted to test each component
cell
in the SUM_Range, ignoring any that showed a negative figure.

"Bob Phillips" wrote:

IF(SUMIF(...)0,SUMIF(...),"Not valid")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SamFortMyers" wrote in message
...
Can I add a criterion to a SUMIF function?
After checking the initial range for a value, I want to make sure that
the
cell in the Sum_range is 0 before completing the SUM.






  #5   Report Post  
SamFortMyers
 
Posts: n/a
Default

Yes, that's the solution. I found it earlier today checking out that link to
xldynamic.com that Bob Phillips had referred to in a previous thread.

"JulieD" wrote:

Hi

how about
=SUMPRODUCT(--(A1:A1000),--(B1:B100="blue"),A1:A100)

where A1:A100 is the range you want to SUM
B1:B100 is the range containing your criteria
and
blue is the criteria

check out
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

for details on using SUMPRODUCT

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"SamFortMyers" wrote in message
...
This appears to test that the SUM is 0. I wanted to test each component
cell
in the SUM_Range, ignoring any that showed a negative figure.

"Bob Phillips" wrote:

IF(SUMIF(...)0,SUMIF(...),"Not valid")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"SamFortMyers" wrote in message
...
Can I add a criterion to a SUMIF function?
After checking the initial range for a value, I want to make sure that
the
cell in the Sum_range is 0 before completing the SUM.






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
SumIf Function using multiple criteria Jamie A Miller Excel Worksheet Functions 1 February 4th 05 05:14 PM
Is it possible to use the sumif function based on the criteria of. Shelba Excel Worksheet Functions 1 February 2nd 05 05:40 AM
SUMIF function - criteria of between two dates. How? Frannie21 Excel Worksheet Functions 4 January 27th 05 03:28 PM
using logical functions as criteria with the SUMIF function pfdubz Excel Worksheet Functions 6 December 1st 04 07:40 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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