If(Iserror... Question

isadoko

Active Member
Joined
Jan 10, 2005
Messages
319
I am trying to get this formula to work but cannot understand my error. I would appreciate any help. It was fine until I add the search for Customer. Thanks.

IF(ISERROR(D28="Customer","Customer",(VLOOKUP(O28,CRISMSTR!$B$392:$R$7572,14,FALSE))),"No Data",(D28="Customer","Customer",(VLOOKUP(O28,HRISMSTR!$B$392:$R$7572,14,FALSE)))
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,425
Office Version
  1. 2019
Can you explain in words what you're trying to achieve?
 

isadoko

Active Member
Joined
Jan 10, 2005
Messages
319
I want the formula to look for the term "Customer" and display it if there, else lookup the code or identifier in the field here, CRISMSTR!$B$392:$R$7572,14, if one is there, otherwise simply tell me that the field is empty and thus No Data. Help?
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,425
Office Version
  1. 2019
Try (untested)

Code:
=IF(D28="Customer","Customer",IF(ISERROR(VLOOKUP(O28,CRISMSTR!$B$392:$R$7572,14,FALSE)),ISERROR(VLOOKUP(O28,HRISMSTR!$B$392:$R$7572,14,FALSE)),"No Data"))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,108
Messages
5,857,435
Members
431,879
Latest member
KiwDaWabbit

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