+ Reply to Thread
Results 1 to 3 of 3

Help deciphering formula

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Houston, TX
    MS-Off Ver
    office 365
    Posts
    638

    Help deciphering formula

    Can some one explain what these numbers in Red represent so I can properly change my formula that is not working?

    Please Login or Register  to view this content.
    Thanks in advance

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Help deciphering formula

    the 0 is to specify an exact match for the MATCH function
    The -2 is used to reduce the row number by 2 rows
    The +10 is used to add 10 columns to the $U$15 column
    The 4 is to say that this address is a RELATIVE one.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Help deciphering formula

    In this formula: =IFERROR(IF(S42="","",INDIRECT(ADDRESS(MATCH("Jars",$U$15:$U$35,0)+ROW($U$15)-2,COLUMN($U$15)+10,4))*AE11),"")

    The MATCH function requires 3 parameters:
    - the item to find
    - the range to search
    - the kind of match
    ...0=Exact match (but, not case-sensitive)
    ...1=Approximate match (items must be sorted)
    ...-1=Reverse order match (items must be sorted)

    This section: MATCH("Jars",$U$15:$U$35,0)+ROW($U$15)-2
    determines which row on the worksheet to reference

    If the matched item is in U16...
    This part: MATCH("Jars",$U$15:$U$35,0) will return 2...the second item in the referenced range.

    It appears that we want to get the item that is one row ABOVE that matched item's row.
    Consequently, to get the actual row of that item we need to add the beginning row of the referenced range (in case it changes) and subtract 2
    =2+15-2
    =15

    This section: COLUMN($U$15)+10
    returns the col to be referenced, which, in this case, is 10 columns to the right of Col_U.
    =21+10
    =31

    I hope that helps.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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. Deciphering a formula
    By mwatt05 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-02-2014, 02:47 PM
  2. [SOLVED] Help Deciphering formula?
    By bbecht01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-14-2013, 10:30 PM
  3. Deciphering a Formula
    By Winstonwolf in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2012, 04:05 PM
  4. Deciphering a formula
    By MarginofBuffett in forum Excel General
    Replies: 1
    Last Post: 11-15-2010, 04:05 AM
  5. Newbie needs help deciphering formula.
    By Grimzby in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2006, 11:50 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