+ Reply to Thread
Results 1 to 6 of 6

How to get data from the last data cell in a Table

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

    How to get data from the last data cell in a Table

    I am using this formula which works fine (if the set has complete data), I want to get data of the last available cell

    =FILTER(Table1[DecEnd],Table1[Item]=$B$10)

    Desired formula :
    =FILTER(Table1[JanEnd, FebEnd MarEnd ....DecEnd],Table1[Item]=$B$10)

    Need to filter JanEnd FebEnd MarEnd AprEnd MayEnd ....and so on..up to DecEnd.


    Please see the attached sample file.

    Thank you.
    Attached Files Attached Files

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

    Re: How to get data from the last data cell in a Table

    Please try
    =LOOKUP(9^9,INDEX(Table1,MATCH(B9,Table1[Item],),))

    or
    =LOOKUP(9^9,IF(RIGHT(Table1[#Headers],3)="end",1/(1/INDEX(Table1,MATCH(B10,Table1[Item],),))))
    Attached Files Attached Files

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

    Re: How to get data from the last data cell in a Table

    This works, thank you so much Bo_Ry, highly appreciate your help.

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

    Re: How to get data from the last data cell in a Table

    please help me modify this formula that works fine retrieving the value from the last cell.....this time I want
    to get the value from the first available cell

    this formula works on the last cell
    =LOOKUP(9^9,IF(RIGHT(Table1[#Headers],5)="start",1/(1/INDEX(Table1,MATCH(B15,Table1[Item],),))))

    Please see the attached sample file.

    Thank you.
    Attached Files Attached Files

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

    Re: How to get data from the last data cell in a Table

    Try

    =--HLOOKUP("?*",IF(RIGHT(Table1[#Headers],5)="start",INDEX(Table1,MATCH(B15,Table1[Item],),)&""),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: How to get data from the last data cell in a Table

    this works....thank you sooooo much

+ 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. Replies: 22
    Last Post: 09-08-2019, 04:59 PM
  2. Replies: 8
    Last Post: 10-22-2018, 05:24 PM
  3. Replies: 1
    Last Post: 11-25-2014, 08:35 PM
  4. Replies: 0
    Last Post: 07-02-2013, 11:30 AM
  5. To feed data from one cell of sheet1 to Data Table in sheet2
    By Hansni in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2013, 11:18 PM
  6. Replies: 7
    Last Post: 05-12-2012, 08:31 AM
  7. Replies: 2
    Last Post: 02-27-2009, 02:01 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