Need Help With if(iserror

isadoko

Active Member
Joined
Jan 10, 2005
Messages
322
Office Version
  1. 365
Platform
  1. Windows
I have tried to modify this formula to show "Open" instead of #Num!. I am unable to write a working version. Thanks in advance for your help.

=IF(AM2<Factors!$H$2,"< 48H", IF(AM2=Factors!$H$2,"= 48H",IF(AM2>Factors!$H$2,"> 48H*","")))
 

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.
Try somehting like

=IF(ISERROR(IF(AM2Factors!$H$2,"> 48H*","")),"Open",IF(AM2Factors!$H$2,"> 48H*",""))
 
Upvote 0
Thanks FKoenig

I realize my entire formula did not display in posting... I hope it now shows all factors.

=IF(AM2<Factors!$H$2,"< 48H", IF(AM2=Factors!$H$2,"= 48H",IF(AM2>Factors!$H$2,"> 48H*","Open")))
 
Upvote 0
Thanks FKoenig

I realize my entire formula did not display in posting... I hope it now shows all factors.

=IF(AM2<FACTORS!$H$2,"< 48H?,IF(AM2 IF(AM2='Factors!$H$2,"=' 48H?,>Factors!$H$2,"> 48H*","Open")))

Just to make sure: This formula says...

When H2 on the AM2<FACTORS!$H$2,"< 48H?,IF(AM2 IF(AM2='Factors!$H$2,"=' 48H?,>Factors sheet is equal to a non-zero numeric or TRUE value, display:

> 48H*

When H2 on the AM2<FACTORS!$H$2,"< 48H?,IF(AM2 IF(AM2='Factors!$H$2,"=' 48H?,>Factors sheet is equal to zero or FALSE value, display:

Open

Is this right?
 
Upvote 0
Might help to explain what you want your formula to do.

=IF(AM2<FACTORS!$H$2,"< 48H?,IF(AM2 IF(AM2='Factors!$H$2,"=' 48H?,>Factors!$H$2,"> 48H*","Open"))) contains 2 too many closing parentheses.
 
Upvote 0
My entire formula is actually checking for three states:
1. Does the value in H2 less than 48 hours
2. ...equal to 48 hours
3. ...greater than 48 hours

That is why my three closing ))). However, some fields H column cells are blank returning #NUM! and that is what want to convert to Open. I understand another approach is using error.type but I have never used this type formula.

Does that help?
 
Upvote 0
My entire formula is actually checking for three states:
1. Does the value in H2 less than 48 hours
2. ...equal to 48 hours
3. ...greater than 48 hours

That is why my three closing ))). However, some fields H column cells are blank returning #NUM! and that is what want to convert to Open. I understand another approach is using error.type but I have never used this type formula.

Does that help?

What needs the formula to return when (1), when (2), or when (3) holds?
 
Upvote 0
Pardon all but lost connection and had tasks to complete...

I am actually evaluating two factors in a the life of an event: 1) open time and 2) close time. Sometimes the close time field is blank because the event is still open causing my formula to return #NUM!. What I hope to obtain using if(iserror, is a blank or some substitute text, ie, Open , in place of #NUM!. By the way Factors!$H$2 equals 48:00:00.

Going even deeper, the value in AM is predicated on this solution--specifically total number working hours: http://www.cpearson.com/excel/DateTimeWS.htm#WorkHours

As for Error.Type, I found this explanation on Ozgrid: http://www.ozgrid.com/Excel/formula-errors.htm

However, I have so far failed to make it work...will continue trying. It claims to be a better solution than if(iserror.

Another attempt to show complete formula: =IF(AM2<Factors!$H$2,"< 48H",IF(AM2=Factors!$H$2,"= 48H",IF(AM2>Factors!$H$2,"> 48H","")))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,753
Members
452,940
Latest member
rootytrip

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