Iserror, if, find and

mi1stormilst

New Member
Joined
Jul 11, 2006
Messages
29
I have the following formula

=IF(ISERROR(FIND("SCADA",M516)),IF(I516>0,IF(AND(I516=2025),"PD","COM"),"Unknown"),"SCADA")

All I want is the formula to look at an additional cell BS516 for the value of 281 and print PD in the cell. I keep trying to manipulate the existing formula and I am not getting my syntax correct. Any help would be greatly appreciated :)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Do you want it to output PD under the same conditions you've specified? Like this?

=IF(ISERROR(FIND("SCADA",M516)),IF(I516>0,IF(OR(I516=2025,BS516=281),"PD","COM"),"Unknown"),"SCADA")
 
Upvote 0
Woops, yeah, I missed a detail there. I'm still taking shots in the dark but does this seem to do what you wanted?

=IF(ISERROR(FIND("SCADA",M516)),IF(OR(I516>0,BS516>0),IF(OR(I516=2025,BS516=281),"PD","COM"),"Unknown"),"SCADA")
 
Upvote 0
THANK YOU! That very well may be working, can you explain how that impacted my AND function in the previous formula?

Woops, yeah, I missed a detail there. I'm still taking shots in the dark but does this seem to do what you wanted?

=IF(ISERROR(FIND("SCADA",M516)),IF(OR(I516>0,BS516>0),IF(OR(I516=2025,BS516=281),"PD","COM"),"Unknown"),"SCADA")
 
Upvote 0
The AND function actually wasn't doing anything in the original formula because it only had one parameter.

I used the OR function twice so that the last IF function is only reached if column I > 0 OR BS > 0. Then, the last IF function outputs PD if I = 2025 OR BS = 281, otherwise it outputs COM.
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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