RE: Please help make IFERROR work in Excel 2003

motion2082

New Member
Joined
Jul 29, 2014
Messages
4
RE: Please help make IFERROR work in Excel 2003

Hey guys,

Trying to get my Excel 2003 spreadsheet to accept the formula

Code:
[U][COLOR=#0000ff]=_xlfn.IFERROR(INDEX('CAMPUS LOCATION'!$E$2:$E$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1),"")[/COLOR][/U]

https://www.dropbox.com/s/jrk5i3l8uu...-Example2.xlsx

It works in Excel 2011 but not 2003

Any ideas how to fix?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Re: Please help make IFERROR work in Excel 2003

Hey motion,

IFERROR did not exist in Excel 2003, it was a formula added in Excel 2007.

In order to get IFERROR to work, you have 2 options. You can add VBA to create the formula, or you can use a workaround.

The workaround would be to use the =ISERROR() formula. So something like:
Code:
=IF(ISERROR(value),"Error Message Here",value)

The VBA would be like this:
Code:
Function IFERROR(Value, Value_if_error)
    If Application.WorksheetFunction.IsError(Value) Then
        IFERROR = Value_if_error
    Else
        IFERROR = Value
    End If


End Function

If you are unsure how to add VBA, hit Alt+F11. Then on the left side right-click VBAProduct(workbookname) > Insert > Module. Next, paste in the above code.

Then go back to your workbook and =IFERROR() should work. If you open the spreadsheet in Excel 2007+ it should still work because the name of the formula is the same.

Let me know if you have any problems or need additional help!
Alex
 
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hi Alex,

I don't really understand VBA.

How about something like this, although this seems to return the Date of Completion, not the campus they were at.

Code:
=IF(ISERROR(INDEX('CAMPUS LOCATION'!$E$2:$E$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1)),"",INDEX('CAMPUS LOCATION'!$E$2:$E$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1))
 
Last edited:
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hey motion,

Sorry, your formula is kind of complex without knowing the context behind it and your Dropbox link is broken.

Essentially, it should look something like
Code:
=IF(ISERROR(INDEX(...,-1)),"",INDEX(...,-1))

If your existing formula works in Excel 2007, then you should be able to copy everything inside the IFERROR, and just paste it twice withing the ISERROR in this IF statement and in the False result of the IF statement (with the True result being "")

Regards,
Alex
 
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hey motion,

I pasted in your exact formula from your first post in this workbook and got the "Date started on campus". However, if I change the first range "INDEX('CAMPUS LOCATION'!$D$2:$D$20,SMALL..." to column "D" instead of "E". It works! Then I paste in the formula from Post #3 on this page (your post with the IF(ISERROR() and it works if you change the columns to column "D" as well.

So the finished formula should be below using your Example workbook.

Excel 2010
BCDE
1Student IDStudent NameDate Course CompletedWhat CAMPUS was the student LOCATED at on the Course Completion Date?
2450John25-Jul-13North
3451Bob30-Apr-13
4452Jane2-Apr-14
5453George28-Feb-14
6454Ringo15-Dec-12

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
STUDENT DETAILS

Worksheet Formulas
CellFormula
E2=IF(ISERROR(INDEX('CAMPUS LOCATION'!$D$2:$D$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1)),"",INDEX('CAMPUS LOCATION'!$D$2:$D$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hey guys,

Trying to get my Excel 2003 spreadsheet to accept the formula

Code:
[U][COLOR=#0000ff]=_xlfn.IFERROR(INDEX('CAMPUS LOCATION'!$E$2:$E$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1),"")[/COLOR][/U]

https://www.dropbox.com/s/jrk5i3l8uu...-Example2.xlsx

It works in Excel 2011 but not 2003

Any ideas how to fix?

The link does not work...

You should actually design the formula such a way that both systems accept it.

Care to state in which cell this formula has been implemented?
 
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hey Aladin,

His issue has been resolved. I had him basically replace the IFERROR() with IF(ISERROR()) since IFERROR() didn't exist in 2003.

He should be all good :)

Have a great day!
Alex
 
Upvote 0
Re: Please help make IFERROR work in Excel 2003

Hey Aladin,

His issue has been resolved. I had him basically replace the IFERROR() with IF(ISERROR()) since IFERROR() didn't exist in 2003.

He should be all good :)

Have a great day!
Alex

If you don't mind, what does this formula you have

IFERROR(INDEX('CAMPUS LOCATION'!$E$2:$E$20,SMALL(IF(('CAMPUS LOCATION'!$B$2:$B$20=$B2)*('CAMPUS LOCATION'!$E$2:$E$20<$D2),ROW(E$2:$E$20),""),1)-1),"")

do?
 
Upvote 0

Forum statistics

Threads
1,214,896
Messages
6,122,132
Members
449,066
Latest member
Andyg666

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