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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
=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

ExcelMercy

Board Regular
Joined
Aug 11, 2014
Messages
151
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

fullspeed

New Member
Joined
Sep 8, 2014
Messages
6
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,191,708
Messages
5,988,234
Members
440,139
Latest member
ngaicuong2017

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
Top