IFERROR vs ISERROR: what would ISRROE solution be?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,790
Office Version
  1. 2016
Platform
  1. Windows
Using Excel 2010

I have numerous sheets with names in column E, with names on some sheets as Last, First, and other sheets as Last First Initial.

Worked all day on trying to get the below formula working but to no avail and then I uses IFERROR and it worked, but I would still like to know what I am doing wrong with the IF(ISERROR formula below...

=IF($E10="","",
IF(ISERROR(LEFT($E10,FIND(",",$E22,1)-1)&" "&MID($E10,FIND(",",$E10,1)+2,1)),
IF(ISERROR(LEFT($E10,FIND(" ",$E21,1)-1)&" "&RIGHT($E10,1)),"???",
IF(ISERROR(LEFT($E10,FIND(",",$E10,1)-1)&" "&MID($E10,FIND(",",$E10,1)+2,1)),
LEFT($E10,FIND(" ",$E10,1)-1)&" "&RIGHT($E10,1),
LEFT($E10,FIND(",",$E10,1)-1)&" "&MID($E10,FIND(",",$E10,1)+2,1)))))

I still can't believe the IFERROR works this simple...

=IF($E10="","",
IFERROR(LEFT($E10,FIND(",",$E10,1)-1)&" "&MID($E10,FIND(",",$E10,1)+2,1),
LEFT($E10,FIND(" ",$E10,1)-1)&" "&RIGHT($E10,1)))
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
ISERROR is used correctly but IF(ISERROR ... is not.
should have:

IF(ISERROR(LEFT($E10,FIND(",",$E22,1)-1)&" "&MID($E10,FIND(",",$E10,1)+2,1))," ", <--- or anything else...
IF(ISERROR(......
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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