+ Reply to Thread
Results 1 to 5 of 5

Please explain this formula

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    43

    Please explain this formula

    Could some one please take me through this formula step by step. I think its what I need to create a daily calander I want to make. I just need to know what its doing so I can customize it to my sheet.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Please explain this formula

    Look under Help (F1) for more detailed understanding...

    INDEX(range,row,column) = find the value in the range, where starting on the upper left of the range, you "move" by the number of rows and by the number of columns

    MATCH(item,range,type) = find where the item is within the range (type = 0 just means exact match)

    So, the first MATCH finds where B2 is in the range (this will be used as the row for the INDEX function)
    The second MATCH finds where F1 is in the range (this will be used as the column for the INDEX function)
    Finally, the INDEX function will find the value in Data range, where we now have the row (first MATCH) and the column (2nd MATCH).

    Hope that helps...

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Please explain this formula

    The formula will extract a single cell's data from the table A1:F10 in the Data sheet of the indexmatch.xls file (which must be open in the same instance of Excel). The first MATCH function will determine which row to get the data from, by looking to see if there is a match between B2 of the sheet where the formula resides and the range B1:B10 of the Data sheet in the same file, and the second MATCH will determine which column to get the data from by looking to see where F1 of the current sheet occurs in the range A1:F1 of the Data sheet.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    12-29-2012
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Please explain this formula

    how would the code look if I am looking at a sheet within the same work book? Would I just remove the [indexmatch.xls] portion and replace it with [workbookname.xls]?

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Please explain this formula

    If it is within the same workbook then you don't need the reference to a .xls at all...

    Maybe this reference will help...

    http://www.contextures.com/xlFunctions03.html
    HTH
    Regards, Jeff

+ 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