0
Thanks

A few words of thanks would be greatly appreciated.

Excel - If formula sum not blank





Issue


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

Solution


Row 1 contains column headings and data is from A2 to B6

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

Note


Thanks to venkat1926 for this tip on the forum.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Excel - If formula sum not blank », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!