IF OR formula with an IFERROR need....

Alex D

New Member
Joined
Apr 28, 2020
Messages
48
Office Version
  1. 365
Platform
  1. Windows
I need help, please....I want to write an IFOR formula that also accounts for error...

Example here.....% to goal is where my formula should go....

IF the AHT value is either blank or has a dash, I want the return to be NO DATA, if not, divide AHT goal by AHT, but if there's an error in % to Goal, then leave it blank....thanks for any help anyone can provide



AHT Goal500
AHT
% to Goal
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
New Microsoft Excel Worksheet.xlsx
AB
1AHT Goal500
2AHT
3% to GoalNO DATA
Sheet1
Cell Formulas
RangeFormula
B3B3=IF(ISERROR(B2/$B$1),"",IF(OR(ISBLANK(B2),B2=0),"NO DATA",B2/$B$1))
 
Upvote 0
First off, great start, THANK YOU----not working on my end.....attaching picture so you can see, there is nothing in G7, but the words "NO DATA" is not coming up.....even when I entered the "-", in cell G7, NO DATA was not the outcome....


Capture.JPG
 
Upvote 0
Try enter 0. I thought Finance usually format cell to show "-" when value=0.
I wonder what is G7 cell format
 
Upvote 0
How about
Excel Formula:
=IF(OR(G7="",G7=0),"NO DATA",IF(ISERROR(G6/G7),"",G6/G7))
 
Upvote 0
Everything works now except the part where the value returned is an error, it doesnt blank the cell out, it leaves #VALUE!

#VALUE!
 
Upvote 0
Easiest option would be to change the formula in G7 so that it doesn't return that error.
 
Upvote 0

Forum statistics

Threads
1,215,558
Messages
6,125,507
Members
449,236
Latest member
Afua

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