+ Reply to Thread
Results 1 to 5 of 5

Formula to look up last cell in column on a different sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2017
    Location
    Guelph, Canada
    MS-Off Ver
    Microsoft Office 365
    Posts
    2

    Formula to look up last cell in column on a different sheet

    Hello all!

    I am trying to create a master sheet that pulls in information from other sheets in my workbook. Currently, I need a formula to pull in/look up the last cell in the column on a different sheet in the workbook. I always want the last cell with data in one specific column to pull into my Master sheet. In each sheet I have several columns with information so I cannot simply use a generic formula for the entire sheet. There will never be any blank cells without data. All the cells will have numerical values and no words. Here is an example of what I am working with and the final goal.

    Sheet2

    Column A
    AAA
    DDD
    GGG
    JJJ

    Column B
    BBB
    EEE
    HHH
    LLL

    Column C
    CCC
    FFF
    III
    MMM


    I want data from MMM to appear in my Master sheet.

    If you can understand me and could help I will greatly appreciate it!

    Thanks for your time!
    Last edited by RobynNeedsHelp; 06-07-2017 at 07:41 AM.

  2. #2
    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,270

    Re: Formula to look up last cell in column on a different sheet

    To be clear: even though you post showed only LETTERS and NO numbers in every cell, your real data contains only NUMBERS?????
    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

  3. #3
    Registered User
    Join Date
    06-07-2017
    Location
    Guelph, Canada
    MS-Off Ver
    Microsoft Office 365
    Posts
    2

    Re: Formula to look up last cell in column on a different sheet

    Yess!! Sorry for the confusion! My bad!

  4. #4
    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,270

    Re: Formula to look up last cell in column on a different sheet

    I think that you need VBA to do this. Is that OK with you?? Not sure if my VBA is up to it, but I'll try!!

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

    Re: Formula to look up last cell in column on a different sheet

    Try this out...

    Sub Method2()
        Dim ws As Worksheet
        Dim rng1 As Range
        Set ws = Sheets("Sheet1")
        Set rng1 = ws.Columns("A:Z").Find("*", ws.[a1], xlValues, , xlByRows, xlPrevious)
        If Not rng1 Is Nothing Then
            MsgBox "The value in the last cell is " & rng1.Value
        Else
            MsgBox ws.Name & " columns A:Z are empty", vbCritical
        End If
    End Sub
    Attached Files Attached Files

+ 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. [SOLVED] Formula required to match a value in sheet 1 to sheet 2 Column A and select a value from B
    By deputydoug in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2015, 08:44 AM
  2. Replies: 8
    Last Post: 03-16-2015, 08:39 AM
  3. Replies: 4
    Last Post: 02-25-2014, 10:26 PM
  4. Replies: 2
    Last Post: 11-18-2013, 07:31 AM
  5. Replies: 4
    Last Post: 11-02-2012, 04:14 PM
  6. Replies: 0
    Last Post: 05-24-2010, 05:17 PM
  7. Replies: 1
    Last Post: 10-30-2009, 10:58 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