Making 'values yet to be entered' formula cell invisible?

HereIAm

New Member
Joined
Feb 8, 2009
Messages
2
Firstly, I appreciate that this is probably a ridiculously simple problem - but I have scoured the internet and help files for the last two hours with no luck, and am at my wits end.

I've set up a spreadsheet and it's working great, but I want the formula cells to be empty until the necessary values have been inputted.

The spreadsheet is for a diet I'm getting on, and i'll enter the values each week, then have the sum work various things out once they've been keyed in.

=SUM(G15:G23)/G2

Now however, the function cells are listing "#/DIV0!" - because the values (G15:G23) are yet to be entered. I'd like these cells to be blank or zero if this is possible.

Again, I realise that this is probably too simple a problem to bother you people with, but we all have to start somewhere eh?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hello and welcome to MrExcel.

I think you're getting the error because G2 is empty. Try

=IF(G2="","",SUM(G15:G23)/G2)
 
Upvote 0
Hello and welcome to MrExcel.

I think you're getting the error because G2 is empty. Try

=IF(G2="","",SUM(G15:G23)/G2)


Thanks a lot. Just used the same principle to fix all the other fields that were similarly affected.

Fixed my problem and learnt a bit about Excel in the process - all quite logical I suppose when you figure out the 'language' it uses.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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