2007 formula in 2003?!

skiprat

New Member
Joined
Jun 30, 2008
Messages
1
Hi there,

I am trying to open a spreadsheet created in Office 2007 in my version of Office 2003 - can anyone tell me how to correct the following formula which returns a #NAME? error?

=_xlfn.IFERROR(IF(AND(MONTH($D7)=MONTH(I$1),YEAR($D7)=YEAR(I$1),MONTH($E7)=MONTH(I$1),YEAR($E7)=YEAR(I$1)),NETWORKDAYS($D7,$E7+1)*$B7*$F7/$C7,IF(AND(MONTH($D7)=MONTH(I$1),YEAR($D7)=YEAR(I$1)),NETWORKDAYS($D7,J$1-1)*$B7*$F7/$C7,IF(AND(MONTH($E7)=MONTH(I$1),YEAR($E7)=YEAR(I$1)),NETWORKDAYS(I$1,$E7)*$B7*$F7/$C7,IF(AND(I$1>$D7,I$1<$E7),NETWORKDAYS(I$1,J$1-1)*$B7*$F7/$C7,0)))),0)

Thank you
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
IFERROR does not exist in 2003 - you would have to remove all references to this. Also, the nesting limit in 2003 was only 7 nested formulas. Not sure if that formula exceeds the 7, just be aware that there is a tighter limit.
 
Upvote 0
You could use this UDF to make IFERROR work, although I think it's probably wiser to use traditional IF(ISERROR()) method...

Code:
Function IFERROR(Result As Variant, Replacement As Variant, Optional Alternative As Variant)

If IsError(Result) Then
    IFERROR = Replacement
Else
    If Not IsError(Result) Then
        If IsMissing(Alternative) Then
            IFERROR = Result
        Else
            IFERROR = Alternative
        End If
    End If
End If

End Function
 
Upvote 0

Forum statistics

Threads
1,214,824
Messages
6,121,784
Members
449,049
Latest member
greyangel23

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