+ Reply to Thread
Results 1 to 5 of 5

OFFSET vs MATCH in array formulas

  1. #1
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    OFFSET vs MATCH in array formulas

    Hi All,

    I'm trying to streamline a worksheet by exchanging OFFSET for MATCH.

    The sheet calculates a best fit curve by comparing various data after passing through three different models.

    Two of the models work fine, but the third is failing.

    I currently have this formula

    Please Login or Register  to view this content.
    which I have replaced with this:

    Please Login or Register  to view this content.
    where the named ranges are

    Buoyancy_loss=Regression!$E$2:$E$1000
    ln_Time=Regression!$B$2:$B$1000
    sqrt_time=Regression!$D$2:$D$1000
    unity=Regression!$C$2:$C$1000
    However, I'm generating a #NUM error. Can anyone see where I've screwed it up?

    Thanks
    Last edited by sweep; 10-01-2010 at 08:00 AM. Reason: Solved
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

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

    Re: OFFSET vs MATCH in array formulas

    When I recreate the above it works for me (XL2007 & XL2010) - could you post a sample with the relevant values in place illustrating the error ?

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: OFFSET vs MATCH in array formulas

    Thanks DO,

    This is one sheet from a much larger workbook. The sheet is worked through by a macro (present in the second attachment), so I've pasted values where there are normally references to other sheets.

    The original file is around 8MB, I don't think the board will stand that!
    Attached Files Attached Files

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

    Re: OFFSET vs MATCH in array formulas

    I think the issue is down to J15:K16 rather than the larger formula.

    In the INDEX approach you've not offset to Unity range

    Please Login or Register  to view this content.

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: OFFSET vs MATCH in array formulas

    Good grief - schoolboy error.

    Thank you.

+ 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