+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Strange IFERROR and OFFSET behaviour

  1. #1
    Registered User
    Join Date
    05-25-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Strange IFERROR and OFFSET behaviour

    Hello everybody, I wonder if you can help me!

    So this is the data I want to parse.
    Please Login or Register  to view this content.
    I want to make it like this:
    Please Login or Register  to view this content.
    I'm using this code for Us1
    Please Login or Register  to view this content.
    which is then Ctrl+Shift+enter into the several cells in front of Us users.

    Where 'Main' has the first table, C3 has the offset where Us1 is first mentioned and B3 has a count of how many items Us1 has.

    But there are 2 problems:
    This is what I'm getting!
    Please Login or Register  to view this content.
    1) IFERROR does not seem to be working as some #N/A are displayed
    2) If the Counter in B3 is 1, then the value is repeated where it should only show 1 value (see the case of Us3).

    I've added a excel file that replicates the issue in case if this is not enough information (or maybe I'm just not that good explaining myself)!
    Attached Files Attached Files
    Last edited by ups; 05-25-2009 at 08:15 PM. Reason: Added testcase.xlsx

  2. #2
    Valued Forum Contributor squiggler47's Avatar
    Join Date
    02-17-2009
    Location
    Littleborough, UK
    MS-Off Ver
    Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
    Posts
    1,013

    Re: Strange IFERROR and OFFSET behaviour

    Problem is if you evaluate, your offset is not returning any errors!

    So in the case of US2 it returns 2 items with no errors, so you are then have no items to put in the last 3 rows!

    use evaluate formula on the cell with the error!
    Regards
    Darren

    Update 12-Nov-2010 Still job hunting!

    If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

    Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!


  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Strange IFERROR and OFFSET behaviour

    There's no need for an array here - nor any need for Volatile function like OFFSET... you can use INDEX... ie

    F2: =MATCH($D2,$A:$A,0)
    copy down to F5

    H2: =IF(COLUMNS($H2:H2)>$E2,"",INDEX($B:$B,$F2+(COLUMNS($H2:H2)-1)))
    apply across matrix (H2:K5)

  4. #4
    Registered User
    Join Date
    05-25-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Strange IFERROR and OFFSET behaviour

    Quote Originally Posted by DonkeyOte View Post
    There's no need for an array here - nor any need for Volatile function like OFFSET... you can use INDEX... ie

    F2: =MATCH($D2,$A:$A,0)
    copy down to F5

    H2: =IF(COLUMNS($H2:H2)>$E2,"",INDEX($B:$B,$F2+(COLUMNS($H2:H2)-1)))
    apply across matrix (H2:K5)
    Thanks! Works Perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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