Trying to eliminate #VALUE! error from the formula by inserting ISERROR

fullspeed

New Member
Joined
Sep 8, 2014
Messages
6
Hello,
I am trying to eliminate #VALUE! error from the fomula below but I can't seem to figure it out. It is turning #VALUE! when there is no value in $CQ$7. So what I want to try is to insert ISERROR, hoping that that would get rid of #VALUE! and show the cell blank when there is no varibales available to do the calculation.
Thank you in advance for your help.

=IF(AND($F6="OPTION",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),IF(AND($F6="SAREQUITY",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),""))
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
=IFERROR(if(and($f6="option",$ac6<=$cv$3),$cq$7-($af6/$cu6),if(and($f6="sarequity",$ac6<=$cv$3),$cq$7-($af6/$cu6),"")),"")
 
Upvote 0
You could add an IF to the start to check whether CQ7 has a value. If it does, go on with the rest of the formula, if not, put a blank.


=if(CQ7=0,"", IF(AND($F6="OPTION",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),IF(AND($F6="SAREQUITY",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),"")))
 
Upvote 0
Since CQ7 can either be blank or value (not 0), I changed it to
=IF(CQ7="","", IF(AND($F6="OPTION",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),IF(AND($F6="SAREQUITY",$AC6<=$CV$3),$CQ$7-($AF6/$CU6),"")))

and it worked perfectly. thank you very much.
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,315
Members
448,564
Latest member
ED38

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