Help with a #Value! issue

Joined
Feb 24, 2011
Messages
10
Hello Friends~

With my Excel sheet I am trying to get rid of a #Value! error I am getting if there is no data in previous cells. Any ideas how to take care of this?

=IF(E15/-$C$35>0.8,"5",IF(E15/-$C$35>0.6,"4",IF(E15/-$C$35>0.4,"3",IF(E15/-$C$35>0.2,"2",IF(E15/-$C$35>0.0000000000001,"1","")))))

That is the formula...and it leaves the #Value! in other cells.

Thanks for the help in advance

fullview
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I assume by "no data" that the cells are blank?

This could potentially make things worse, but try putting a 0 in the blank cells and see if that makes a difference
 
Upvote 0
Try this:

=LOOKUP((E15/-$C$35),{0,0.00000000001,0.20000000001,0.400000000001,0.600000000001,0.800000000001},{"",1,2,3,4,5})
 
Last edited:
Upvote 0
Not sure what you mean by "Previous cells".

This checks if E15 and C35 both have values. It also uses the LOOKUP function instead of nested IFs.

Code:
=IF(OR(E15="", $C$35=""),"", LOOKUP(E15/-$C$35 +0.0000000000001, {0,0.2,0.4,0.6,0.8},{1,2,3,4,5}))
 
Upvote 0
As far as the #VALUE! error itself is concerned, after looking it up, it is an error that occurs when a formula in a cell refers to different data types, an example being referencing 2 cells in a formula that contain text and numbers.

if you have in Cell A1 "cats" and A2 "25" for example, and in A3 you have the formula =A1*A2 it's gonna throw an error because you can't do that multiplication.

So if the other solutions don't work, it might be a good idea to go back through and double check that the cell references are correct
 
Upvote 0
I'm pretty sure that the problem is with your formula, but as I'm about to finish work I can't really spend time on looking at it properly, if I get chance I'll have a look when I get home
 
Upvote 0
Have you tried the solution by AlphaFrog? Your error is resulting from the formula having nothing to calculate.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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