Subtraction with multiple ISBLANKS inside IF statements

beklein

New Member
Joined
Nov 12, 2018
Messages
6
Hi all,

I need to subtract some values form a base value only if another cell is filled. Because this has to be done for multiple cells, I now have the working forumla

=H3-IF(ISBLANK(A3);0;E3)-IF(ISBLANK(A4);0;E4)-IF(ISBLANK(A5);0;E5)-IF(ISBLANK(A6);0;E6) continued to cell 13.

This is not a good looking formula, and I have the feeling it should be possible to make it (a lot) shorter, but I can't figure it out. I've tried it in an array formula as

=H3-IF((ISBLANK(A3:A16));0;E3:E16)

But this only appears to work for the cells in row 3.

I was wondering if anyone knows a way to make this formula more efficient. Thanks in advance.

Cheers, Bart
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
=H3-SUM(IF(A3:A16<>"",E3:E16))

Confirm with CTRL-SHIFT-ENTER instead of just Enter.
 
Last edited:
Upvote 0
Try
=H3-SUMPRODUCT((ISBLANK(A3:A6)=FALSE)*(E3:E6))
 
Upvote 0
Not sure if you noticed Scott's formula which should work as well.
But glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,626
Messages
6,120,602
Members
448,974
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top