Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I want to use SUMIF to sum the numbers in column G only if the adjacent cell
in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
#2
![]() |
|||
|
|||
![]()
Hi Peter,
SUMIF(range,criteria,sum_range). Criteria = "<""" SUMIF(A:A,"<""",B:B) Regards, Jon "Peter Aitken" wrote: I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
#3
![]() |
|||
|
|||
![]()
Sorry, that doesn't work. Do a sum of the range and then deduct the blanks:
SUM(B:B)-SUMIF(A:A,"",B:B) Cheers, Jon "Springbok" wrote: Hi Peter, SUMIF(range,criteria,sum_range). Criteria = "<""" SUMIF(A:A,"<""",B:B) Regards, Jon "Peter Aitken" wrote: I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
#4
![]() |
|||
|
|||
![]()
=sumproduct(--isblank(h1:h1000),(g1:g1000))
adjust the range accordingly "Peter Aitken" wrote in message ... I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
#5
![]() |
|||
|
|||
![]()
try this
=SUMPRODUCT(--(G1:G7),--(H1:H7<0)) the signs are two minus signs my data is G1 to G7 change it to suit your purposes Peter Aitken wrote in message ... I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
#6
![]() |
|||
|
|||
![]()
=SUMIF(H:H,"<",G:G)
HTH Jason Atlanta, GA -----Original Message----- I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. . |
#7
![]() |
|||
|
|||
![]()
Thanks - Jason your solution is certainly nonintuitive but it works and is
the simplest one. -- Peter Aitken Remove the crap from my email address before using. "Jason Morin" wrote in message ... =SUMIF(H:H,"<",G:G) HTH Jason Atlanta, GA -----Original Message----- I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. . |
#8
![]() |
|||
|
|||
![]()
=SUMIF(H:H,"<",G:G)
Lance "Peter Aitken" wrote: I want to use SUMIF to sum the numbers in column G only if the adjacent cell in column H is not empty. I cannot figure out the criterion to use. Thanks, -- Peter Aitken Remove the crap from my email address before using. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use SUMIF to return sums between two values located in cells | Excel Worksheet Functions | |||
Non Blank - Blank Cells???? | Excel Discussion (Misc queries) | |||
In Exel 2000, stop the blank cells (with formulas) from printing. | Excel Discussion (Misc queries) | |||
how to skip the blank cells | Excel Discussion (Misc queries) | |||
Automatic copying data excluding blank cells | Excel Worksheet Functions |