Excel If formula sum not blank

[Closed]
Report
-
 joanie -
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 replies

Thank you very much for your help!
Posts
1862
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
July 30, 2015
800
row 1 contains column headings and data is from A2 to B6

use this formula

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

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!