+ Reply to Thread
Results 1 to 5 of 5

Offset and Match problem II

  1. #1
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Offset and Match problem II

    Offset and Match problem II

    I am struggling to make the OffSet and Match functions that were kindly suggested by Bo__Ry a few days ago, and which initially seemed to solve my Offset problem. Certainly Bo_Ry’s solutions are more elegant than my own pure OffSet one.

    Bo_Ry suggested:
    Non-volatile formula at G3

    =IFERROR(AVERAGE(INDEX(NormData!G$3:G$173,MATCH($A3,NormData!$A$3:$A$173,)-15):INDEX(NormData!G$3:G$173,MATCH($A3,NormData!$A$3:$A$173,)-1)),"")

    or volatile formula at I3
    =IFERROR(AVERAGE(OFFSET(NormData!I$2,MATCH($A3,NormData!$A$3:$A$173,)-1,,-15)),"")

    In implementing each of these in all the relevant cells in my sheet CRP (see attached “Match and Offset Problem.xlsm”), the results differ from the real averages generated in the precedent sheet NormData. The volatile formula produces less errors than the non-volatile one. I cannot see any pattern between the correct and the incorrect results.

    I am bewildered by what may be wrong. Perhaps I am implementing the formulae incorrectly? But most of the cells in which the formulae are used generated the correct averages, implying that the function is indeed being used correctly.

    I would greatly appreciate some guidance/help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Offset and Match problem II

    NormData average in G844

    =AVERAGE(G685:G789)

    not 15 days!

    should be

    =AVERAGE(G775:G789)

    which agrees with the CRP OFFSET calculation

    Lesson: Rarely do formula work only sometimes: errors are usually a result of mistakes by [we] users!

    Learn to use the Excel diagnostics in particular "Evaluate Formula".
    Last edited by JohnTopley; 05-10-2022 at 11:50 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Re: Offset and Match problem II

    Thanks John for finding that.

    I've now corrected that - and, as you probably noted, that made that particular row in CRP agree with the new and correct averaging for that date in CRP.

    However, the rows for the two dates on both sides of that row 25, 10Feb22, are still showing errors. I have looked and looked at the averaging for those rows in NormData and I believe they have been generated correctly. See my updated attached "Match and Offset Problem Updated.xlsm".
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Offset and Match problem II

    You need to re-check your calculations

    in CRP g37 you compare G843 vs G24

    G843 sums 705:719

    compared with G24

    which sums 744-758

    Excel will NOT provide different results when it executes SUM/AVE the same cells.

    Use Evaluate Formula to establish the OFFSET range being summed
    Last edited by JohnTopley; 05-11-2022 at 02:39 AM.

  5. #5
    Forum Contributor
    Join Date
    08-06-2012
    Location
    Brighton, UK
    MS-Off Ver
    MS Office 2021 and 2019
    Posts
    112

    Re: Offset and Match problem II

    Many thanks John for finding those errors - which I ought not to have done. A fresh pair of eyes helps.

    I do try and be careful, but having so many figures I trip up. Sometimes I fear I try too hard.

+ 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. [SOLVED] offset / Index / Match Problem
    By Johnwr in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-17-2014, 10:46 AM
  2. Problem with combination of Product, Offset, Address, Match
    By espresso1981q in forum Excel General
    Replies: 2
    Last Post: 05-10-2009, 07:30 AM
  3. Index Match / Countif / Offset problem
    By smalone in forum Excel General
    Replies: 1
    Last Post: 03-12-2009, 06:15 PM
  4. Drawing Log Problem Using Offset And Match Functions
    By jasontha in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2008, 12:06 PM
  5. reverse index match, offset problem
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2008, 12:18 PM
  6. Offset & Match Problem
    By wmjenner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2005, 11:59 AM
  7. VLOOKUP, OFFSET, MATCH PROBLEM, HELP?
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-30-2005, 06:06 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