+ Reply to Thread
Results 1 to 6 of 6

Find cell location of very last non blank cell in range

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Find cell location of very last non blank cell in range

    Hi there,

    I'm really struggling to get this working myself so I'm hoping someone can help me out please.

    The spreadsheet I use has a range of numbers in a list (in no particular order).

    I can pull the actual last value using:

    =LOOKUP(2,1/(NOT(ISBLANK(G30:G46))),G30:G46)
    However, ideally, I need to get the actual cell address of this value so I can use an Indirect function on another part of my spreadsheet.

    I've tried the following but this doesn't work;

    =CELL("address",LOOKUP(2,1/(NOT(ISBLANK(G6:G22))),G6:G22))
    Does anyone please have a suggestion on how I can achieve to pull the last cell address based on the above?

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    04-12-2014
    Location
    Northampton, England
    MS-Off Ver
    Excel 2011
    Posts
    1

    Re: Find cell location of very last non blank cell in range

    Try this...

    =MATCH(LOOKUP(2, 1/(NOT(ISBLANK($C$8:$C$20))), $C$8:$C$20),C:C, 0)

    Thanks

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Find cell location of very last non blank cell in range

    Try this

    Formula: copy to clipboard
    =ADDRESS(LOOKUP(2,1/(NOT(ISBLANK(G6:G22))),ROW(G6:G22)),COLUMN(G6:G22))
    Dave

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Re: Find cell location of very last non blank cell in range

    Quote Originally Posted by FlameRetired View Post
    Try this

    Formula: copy to clipboard
    =ADDRESS(LOOKUP(2,1/(NOT(ISBLANK(G6:G22))),ROW(G6:G22)),COLUMN(G6:G22))
    Many thanks this one did the trick.

    Thanks everyone for their input!

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Find cell location of very last non blank cell in range

    You're welcome. Thanks for the feedback and rep.

  6. #6
    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: Find cell location of very last non blank cell in range

    Can you not use your original formula as a term (INSTEAD of a cell address) in your other formula? Depending on what you're doing, you may not need INDIRECT at all.
    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

+ 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] Find blank cell and merge a range
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2014, 06:05 PM
  2. [SOLVED] Alter Macro from "Find cell location if blank" T o "Find cell location if "MyWord"
    By capson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2014, 09:47 AM
  3. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  4. Find Blank Cell in Range Without Loop
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2010, 09:57 AM
  5. find the blank cell in range and replace it
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2008, 03:11 AM
  6. find next blank cell within range
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-18-2008, 09:53 AM
  7. Find first blank cell in range
    By Sean Anderson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2007, 10:49 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