Excel If formula sum not blank

Closed
joanie - Dec 3, 2009 at 04:56 PM
 joanie - Dec 8, 2009 at 08:36 PM
Hello,
I'm sorry if my question had already been asked before but I can't find any answer in the internet about summing all values that is not blank.

For example,

Column A Column B
14
20 Claims
25 CRU
35
75 HR

I need a formula that will sum column A if column B has value/text,

thanks in advance for your help

Joanie

2 responses

Thank you very much for your help!
0
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Dec 4, 2009 at 05:50 AM
row 1 contains column headings and data is from A2 to B6

use this formula

=SUMPRODUCT(($B$2:$B$6<>"")*($A$2:$A$6))
-1