+ Reply to Thread
Results 1 to 9 of 9

Formula works in Excel 2007 but not in 2003

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    Winslow, Arkansas
    MS-Off Ver
    Excel 2016
    Posts
    62

    Post Formula works in Excel 2007 but not in 2003

    Hello,

    I have a formula that works in Excel 2007 but not in 2003. Is there any way i can modify it to work in both? Formula is below:

    {=IFERROR(INDEX('Spd Nov -13'!$A$1:$I$1000,SMALL(IF('Spd Nov -13'!$A$1:$A$1000='Daily Summary'!$I$1,ROW('Spd Nov -13'!$A$1:$A$1000)),ROW(1:1)),1),0)}

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Formula works in Excel 2007 but not in 2003

    IFError formula was first introduced in Excel 2007. In Excel 2003, you will use IF(Iserror())

  3. #3
    Registered User
    Join Date
    11-12-2013
    Location
    Winslow, Arkansas
    MS-Off Ver
    Excel 2016
    Posts
    62

    Re: Formula works in Excel 2007 but not in 2003

    Is that formula suppose to work in 2007 as well? I get False back when i use it in 2007...

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula works in Excel 2007 but not in 2003

    Try this

    Confirm with Ctrl+Shift+Enter

    =IFERROR(INDEX('Spd Nov -13'!$A$1:$I$1000,SMALL(IF('Spd Nov -13'!$A$1:$A$1000='Daily Summary'!$I$1,ROW('Spd Nov -13'!$A$1:$A$1000),""),ROW(1:1)),1),0)
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Formula works in Excel 2007 but not in 2003

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    gives the same results as using iferror and can be used in 2003
    the original works just fine in 2007 i couldnt see a problem with it
    Last edited by martindwilson; 11-15-2013 at 06:05 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula works in Excel 2007 but not in 2003

    I see that you return a 0 if there's an error.

    What type of data does the formula normally return?

    Is it text? Numbers? Could be both? Something else?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    11-12-2013
    Location
    Winslow, Arkansas
    MS-Off Ver
    Excel 2016
    Posts
    62

    Re: Formula works in Excel 2007 but not in 2003

    @Martindwilson,

    That worked great! Thanks!

  8. #8
    Registered User
    Join Date
    11-12-2013
    Location
    Winslow, Arkansas
    MS-Off Ver
    Excel 2016
    Posts
    62

    Re: Formula works in Excel 2007 but not in 2003

    @Tony,

    It returns both text and numbers.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula works in Excel 2007 but not in 2003

    If the results are mixed data types I would do this...

    Put the COUNTIF in a separate cell and refer to that cell instead of repeating the COUNTIF in each cell the formula is copied to.

    A1: =COUNTIF('Spd Nov -13'!$A$1:$A$1000,'Daily Summary'!$I$1)

    B1 and copied down:

    =IF(ROWS(B$1:B1)>A$1,0,INDEX('Spd Nov -13'!A:A,SMALL(IF('Spd Nov -13'!A$1:A$1000='Daily Summary'!$I$1,ROW('Spd Nov -13'!A$1:A$1000)),ROWS(B$1:B1))))

    Still array entered.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Migration from Excel 2003 to Excel 2007 and chart naming code no longer works...
    By SteHawk85 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-05-2012, 10:14 AM
  2. Code works fine in 2003 excel but fails in 2007
    By tanimytani in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2012, 11:40 AM
  3. Database Query macro works in Excel 2003 but fails in Excel 2007
    By NBVC in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-11-2012, 12:24 PM
  4. ODBC works in excel 2003 but fails in 2007
    By Harle000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2011, 10:58 AM
  5. Macro works fine in Excel 2003 but not in 2007
    By jackdebnam in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2011, 12:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1