How to recognize a blank cell as zero

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
I have the following formula to find the last balance in a column
Rich (BB code):
=INDEX(D5:D500,MATCH(9.99999999999999E+307,D5:D500))
How do I add to formula to recognize blank cell as a zero?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi Pedro-Egoli,

I can't see what is wrong with your formula. Can you explain what is failing and provide a scenario?
 
Upvote 0
The result of formula as it stands is that when a cell becomes blank in column D the result shows as the last non zero balance.
This then displays an incorrect balance in another cell dependent on result.
 
Upvote 0
I still don't see the issue as here I have the last value as 11,308

1590367618090.png


...and if I make some cells empty I still get the same result:

1590367732452.png
 
Upvote 0
I don't see any unexpected results.
Book1.xlsx
DEF
4
5
61110
7
8333
9
10
11
12
131
14
154
16
17
180
Sheet6
Cell Formulas
RangeFormula
F6F6=LOOKUP(9^99,D5:D500)
 
Upvote 0
I still don't see the issue as here I have the last value as 11,308

View attachment 14614

...and if I make some cells empty I still get the same result:

View attachment 14615
This is part of my sheet showing blanks
NEW sheet commenced 10717.xls
ABCDE
3423/05/2020-$105.39$3,412.49
3524/05/2020-$47.30-$105.39$3,365.19
3624/05/2020-$105.39$3,259.80
3725/05/2020$3,259.80
May 2020
Cell Formulas
RangeFormula
E34:E37E34=IF(A34="","",E33+(B34+C34))

In cell with formula it displays -$105.39 rather than a blank or "0"
The solution provided by Shaow459 works so thank you both for your interest and help
 
Upvote 0

Forum statistics

Threads
1,216,503
Messages
6,131,020
Members
449,615
Latest member
Nic0la

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