Eliminate #N/A Error

Bedford

Active Member
Joined
Feb 3, 2015
Messages
316
Office Version
  1. 365
Platform
  1. MacOS
Using a formula that is giving an error #N/A when cell F17 is empty but I'm looking to simply have it give a blank in the cell. Can anyone offer a suggestion to help out.

=@IFS(AND(F17>=300,F17<=600),2,AND(F17>600,F17<=1100),3,AND(F17>1100,F17<=1600),4,AND(F17>1600,F17<=2100),5,AND(F17>2100,F17<=2600),6,AND(F17>2600,F17<=3000),7)

Thank you in advance.
Doug.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
How about
Excel Formula:
=IFS(AND(F17>=300,F17<=600),2,AND(F17>600,F17<=1100),3,AND(F17>1100,F17<=1600),4,AND(F17>1600,F17<=2100),5,AND(F17>2100,F17<=2600),6,AND(F17>2600,F17<=3000),7,1,"")
 
Upvote 0
Solution
How about
Excel Formula:
=IFS(AND(F17>=300,F17<=600),2,AND(F17>600,F17<=1100),3,AND(F17>1100,F17<=1600),4,AND(F17>1600,F17<=2100),5,AND(F17>2100,F17<=2600),6,AND(F17>2600,F17<=3000),7,1,"")
That did the trick! Thank you Fluff.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Hope I'm not over extending my good fortune and your generosity, I have another formula that is likewise giving an #VALUE! error when cell D15 is empty, however it might also do so if other dependent cells are also empty?

=@IFS(F27<3," ",D15<=600,D15+F15+220-F28,D15>600,D15+F15+320-F28)

Any thoughts?
Again, thank you in advance.
 
Upvote 0
Maybe
Excel Formula:
=IFS(F27<3,"",OR(D15="",F15="",F28=""),"",D15<=600,D15+F15+220-F28,D15>600,D15+F15+320-F28)
 
Upvote 0
Maybe
Excel Formula:
=IFS(F27<3,"",OR(D15="",F15="",F28=""),"",D15<=600,D15+F15+220-F28,D15>600,D15+F15+320-F28)
Absolutely perfect. And your response helped solve a similar error by using similar code., this one now also is without error; '=IFS(F27<5,"",OR(D15="",F15="",F28=""),"",D15<=600,D15+F15+220-(F28*2),D15>600,D15+F15+320-(F28*2))
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

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