eliminating negative numbers in a cell

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
Hello,

I have a daily worksheet where the grand total sales will carry from day to day. (cell B3) in cell B2 I put in the new grand total amount that I got from my register report. With that put in, B6 calculates the total sales for the day (B2-B3). My problem with this, is that until a number is placed in B2, the sales total is in the negative, and makes looking at the week to date numbers impossible until the entire week has been completed.

Is there some way to have that total not calculate until an amount is typed into cell B2?

Thanks,

Andrew
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello,

I have a daily worksheet where the grand total sales will carry from day to day. (cell B3) in cell B2 I put in the new grand total amount that I got from my register report. With that put in, B6 calculates the total sales for the day (B2-B3). My problem with this, is that until a number is placed in B2, the sales total is in the negative, and makes looking at the week to date numbers impossible until the entire week has been completed.

Is there some way to have that total not calculate until an amount is typed into cell B2?

Thanks,

Andrew
Like this...

=IF(COUNT(B2),B3-B2,"")
 
Upvote 0
Hi Andrew,

You could try putting at the very beginning of the formula something like:-

Code:
=IF(B2=0,"", YOUR FORMULA...

I hope this helps!
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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