+ Reply to Thread
Results 1 to 11 of 11

Need help with INDEX and OFFSET function

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Need help with INDEX and OFFSET function

    this formula works :
    =INDEX(CalSpecs,MATCH(A3,CalDate,0),OFFSET(Table1[[#Headers],[Specs]],1,1,1,1))

    to get the 2nd row, changed formula to :
    =INDEX(CalSpecs,MATCH(A3,CalDate,0),OFFSET(Table1[[#Headers],[Specs]],2,1,1,1))

    but the results is same as 1
    what am I doing wrong

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,181

    Re: Need help with INDEX and OFFSET function

    With OFFSET and table references, you need to hard code the point that the OFFSET is working from. Why do you think you need to use OFFSET here? It would be useful to see a sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with INDEX and OFFSET function

    So far as I can see there is no good reason to use OFFSET and many reasons NOT to. Please supply a sample sheet.

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Need help with INDEX and OFFSET function

    Please find attached herewith sample sheet.

    Thanks.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with INDEX and OFFSET function

    Use formulae similar to this in A4 to D4. Then select A4:D17 and copy paste as a block into E4, I4, etc. When starting a new row, ensure that you change the reference from A$3 to a$18, etc.

    =IFERROR(INDEX(CalTime,AGGREGATE(15,6,ROW(Table1[[Time]:[Time]])/(Table1[[Date]:[Date]]=Calendar!A$3),ROWS($1:1))),"")
    Attached Files Attached Files

  6. #6
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Need help with INDEX and OFFSET function

    You are a genius..thank you so much

  7. #7
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Need help with INDEX and OFFSET function

    Quote Originally Posted by Glenn Kennedy View Post
    Use formulae similar to this in A4 to D4. Then select A4:D17 and copy paste as a block into E4, I4, etc. When starting a new row, ensure that you change the reference from A$3 to a$18, etc.

    =IFERROR(INDEX(CalTime,AGGREGATE(15,6,ROW(Table1[[Time]:[Time]])/(Table1[[Date]:[Date]]=Calendar!A$3),ROWS($1:1))),"")
    I copy pasted the formulas and changed the reference from A$3 to A$18, what else do I need to change
    as I am unable to get it work
    Please see the attached file.

    Thanks.
    Attached Files Attached Files

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Need help with INDEX and OFFSET function

    Change in Blue

    A19

    =IFERROR(INDEX(CalTime,AGGREGATE(15,6,ROW(Table1[[Time]:[Time]])/(Table1[[Date]:[Date]]=A$18),ROWS($1:1))),"")

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with INDEX and OFFSET function

    Yes. My mistake:

    IFERROR(INDEX(CalTime,AGGREGATE(15,6,ROW(Table1[[Time]:[Time]])/(Table1[[Date]:[Date]]=Calendar!A$18),ROWS($1:1))),"")

  10. #10
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Need help with INDEX and OFFSET function

    Got it....thanks a lot

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with INDEX and OFFSET function

    It's basically just a counter. I forgot to re-set it to start again at 1...

+ 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. Offset function with Index match
    By Jayant shettigar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2018, 11:56 AM
  2. Offset an Index/Match function
    By GurminderSG in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-25-2016, 04:48 PM
  3. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  4. [SOLVED] INDEX vs OFFSET Function
    By andrewc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2013, 09:50 AM
  5. [SOLVED] Complicated Index Match Offset function
    By Bob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. [SOLVED] Complicated Index Match Offset function
    By Bob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  7. Complicated Index Match Offset function
    By Bob in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM

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