Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Nigel
Try... =SUMIF(A1:A5,"<"&"",B1:B5) -- XL2003 Regards William "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That does the trick - many thanks
-- Cheers Nigel "William" wrote in message ... Hi Nigel Try... =SUMIF(A1:A5,"<"&"",B1:B5) -- XL2003 Regards William "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just to add:
=SUMIF(A1:A5,"<",B1:B5) Should be sufficient -- Regards, Tom Ogilvy "Nigel" wrote in message ... That does the trick - many thanks -- Cheers Nigel "William" wrote in message ... Hi Nigel Try... =SUMIF(A1:A5,"<"&"",B1:B5) -- XL2003 Regards William "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Of course it is
Thanks Tom Learning each day. Regards Bill K "Tom Ogilvy" wrote in message ... Just to add: =SUMIF(A1:A5,"<",B1:B5) Should be sufficient -- Regards, Tom Ogilvy "Nigel" wrote in message ... That does the trick - many thanks -- Cheers Nigel "William" wrote in message ... Hi Nigel Try... =SUMIF(A1:A5,"<"&"",B1:B5) -- XL2003 Regards William "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() =SUMPRODUCT(--NOT(ISBLANK(A1:A5)),B1:B5) will do the trick Or you could take your original formula and deduct that from SUM(B1:B5) -- Greetings from New Zealand Bill K "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bill
Thanks for the tip - nice elegant solution Greetings from the UK!! -- Cheers Nigel "Bill Kuunders" wrote in message ... =SUMPRODUCT(--NOT(ISBLANK(A1:A5)),B1:B5) will do the trick Or you could take your original formula and deduct that from SUM(B1:B5) -- Greetings from New Zealand Bill K "Nigel" wrote in message ... Hi All I use the SUMIF worksheet function to SUM a range conditionally, eg SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in A1:A5 is blank I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank, but SUMIF(A:A5,NOT(""),B1:B5) does not work ! Please help -- Cheers Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SUMIF Question | Excel Discussion (Misc queries) | |||
SUMIF question | Excel Discussion (Misc queries) | |||
SUMIF Question | Excel Programming | |||
sumif question | Excel Programming | |||
sumif question 2 | Excel Programming |