+ Reply to Thread
Results 1 to 11 of 11

Pull the content of the last cell of a column from multiple sheets to a master front sheet

  1. #1
    Registered User
    Join Date
    04-23-2021
    Location
    Dorset
    MS-Off Ver
    WPS
    Posts
    5

    Pull the content of the last cell of a column from multiple sheets to a master front sheet

    Good evening everyone,

    I've been messing with different indirect and lookup formulas to pull the content of the last cell (formatted as "20180504 15:43:31:612") of column A from multiple sheets to populate a column of a master front sheet.

    Using column A in the master sheet, I have created the list of all the sheets numbered 043 to 179 as a reference, I then used this formula =INDIRECT("'"&A1&"'!A2") (the first populated cell in column A of every sheet starts at A2) to get the first cell of all sheets to populate in column B as so -

    043 20180504 15:41:22:515
    044 20180504 18:45:24:781
    045 20180504 18:56:55:340
    046 20180504 19:19:33:802
    047 20180504 20:13:03:752
    048 20180505 05:26:50:697
    049 20180505 08:17:22:718
    050 20180506 20:23:39:871
    051 20180506 20:44:53:428
    052 20180507 06:03:58:207

    The same formula does not work to find the last cell, as each last cell is a different row number through all the sheets and when tried to add a lookup to replace A2 I kept messing up and getting errors.


    I used this formula =LOOKUP(2,1/('043'!A:A>0),'043'!A:A) to find the last cell of column A of the first sheet which worked, but when I try to drag to populate sequentially down the column, the sheet reference does not increase, i.e.

    =LOOKUP(2,1/('044'!A:A>0),'044'!A:A)
    =LOOKUP(2,1/('045'!A:A>0),'045'!A:A)

    Etc

    When I try to add the same cell reference "'"&A1 that is in column A, 043, 044, 045 etc, I keep getting errors.

    I'm hoping I'm not far off but have hit the limitations of what I can do and I hope all this makes sense.

    Any help will be gratefully received.

    Thanks

  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,202

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    04-23-2021
    Location
    Dorset
    MS-Off Ver
    WPS
    Posts
    5

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Good morning all,

    apologies, new to this forum so didn't see those instructions.

    I've now uploaded a small example workbook.

    For context, the various sheets are drone flight data which ultimately feed into a flying log I need to keep as I fly commercially.
    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,202

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Try

    in F2

    =LOOKUP(2,1/(INDIRECT("'"&E2&"'!A:A")>0),INDIRECT("'"&E2&"'!A:A"))

  5. #5
    Registered User
    Join Date
    04-23-2021
    Location
    Dorset
    MS-Off Ver
    WPS
    Posts
    5

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    John, thank you, you are a star! That's worked great. And now you've provided the answer, I can see where I was going wrong.

    Thanks you again.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    In F2 then copy down.

    =INDIRECT("'"&$E2&"'!A" &COUNTA(INDIRECT("'"&$E2&"'!A2:A2000"))+1)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    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,202

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    04-23-2021
    Location
    Dorset
    MS-Off Ver
    WPS
    Posts
    5

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Quote Originally Posted by kvsrinivasamurthy View Post
    In F2 then copy down.

    =INDIRECT("'"&$E2&"'!A" &COUNTA(INDIRECT("'"&$E2&"'!A2:A2000"))+1)
    kvsrinivasamurthy, thank you. I'm guessing I would replace the A2000 with the higher possible row number?

    In the flight data, the rows can go upto 40000 per sheet.

  9. #9
    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,202

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Yes: I tested both formulae with 42000 rows and all was OK.

  10. #10
    Registered User
    Join Date
    04-23-2021
    Location
    Dorset
    MS-Off Ver
    WPS
    Posts
    5

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Great! Thank you both for your help.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Pull the content of the last cell of a column from multiple sheets to a master front s

    Pl mark the thread solved.

+ 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. Pull same cell from multiple sheets into master column
    By mattminiat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-13-2022, 12:40 PM
  2. Copy last column from multiple sheets to a master sheet
    By TallOne in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2020, 03:37 PM
  3. [SOLVED] How to pull data from multiple sheets into one master sheet?
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-06-2017, 06:01 AM
  4. sequence content from multiple sheets into one master
    By dalerdd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2014, 04:36 PM
  5. Replies: 8
    Last Post: 05-21-2013, 10:07 AM
  6. [SOLVED] Pull data from same cell from multiple sheets into master column
    By incubi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-09-2013, 04:42 PM
  7. Replies: 3
    Last Post: 09-27-2012, 09:49 AM

Tags for this Thread

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