Error across a small range if cells are blank

Allen_Mead

New Member
Joined
May 31, 2019
Messages
34
Office Version
  1. 365
Platform
  1. Windows
This is my formula which works great if all cells are populated. However, when either L7 or L8 are empty I get the classic #VALUE error. How do I get the equation to ignore blank cells?

=((N5-(L7+L8))/N5*1)
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
=IF(OR(L7="",L8=""),"",((N5-(L7+L8))/N5*1))

Not sure why you have *1 in there, what purpose does that serve?
 
Upvote 0
That shouldnt error if either of L7 or L8 are blank. There must be a formula in those cells if you think they are the cause of a value error.
 
Upvote 0
However, when either L7 or L8 are empty I get the classic VALUE! error.
=((N5-(L7+L8))/N5*1)

try: =(N5-SUM(L7,L8))/N5 - SUM() ignore blank and empty string like ""

you got error because L7 L8 contain ""

why N5*1 ?
 
Last edited:
Upvote 0
=IF(OR(L7="",L8=""),"",((N5-(L7+L8))/N5*1))

Not sure why you have *1 in there, what purpose does that serve?

Thank you for assistance but I still get an error. the *1 was left over from a previous calculation which required it to give the correct percentage result.

What I was trying to do is work out the percentage of fee earning time for the week, N5 = total number of hours per week, L7-L8 = total of non fee earning time per week.

So for example, if I had 12 hours of the week as non fee earning, that's 30% but I need to know what the remaining time is in % i.e. 28 hours or, 70% but I need it to do it automatically. Looks like I just over complicated the equation.
 
Upvote 0
try: =(N5-SUM(L7,L8))/N5 - SUM() ignore blank and empty string like ""

you got error because L7 L8 contain ""

why N5*1 ?

Thank you for your help, works spot on. Looks like I was just trying to over complicate the equation. N5*1 was a left over from a previous equation which I should have removed as it obviously doesn't do anything.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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