# If(Iserror... Question

##### Active Member
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
Can you explain in words what you're trying to achieve?

##### Active Member
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
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"))``

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.

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.

### Which adblocker are you using?

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

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