+ Reply to Thread
Results 1 to 7 of 7

Identify cell location from last cell in row with a value greater then 0

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Identify cell location from last cell in row with a value greater then 0

    I have a simple format of Month/Yr above a count value. I want to identify the Month/Yr in sequential order that is the next month in the sequence that does not have a value. The goal is to find the next month that I will forecast and continue to move that as month end data is populated.

    JUL-18 AUG-18 SEP-18 OCT-18 NOV-18
    12345 15867 14976


    Using this sample from the sheet. I want to know which cell in row 2 is the last to have a value is greater than 0 (14976 which is in cell AQ2) and the use the offset function to return an answer which would be Oct-18 (in cell AR1) in this sample ( Over 1 and Up1)

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Identify cell location from last cell in row with a value greater then 0

    try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    note: use limited ranges instead entire rows

  3. #3
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Re: Identify cell location from last cell in row with a value greater then 0

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Hi Jose,
    The formula worked but only identified the cell value above the last entry in row 2. I added a +1 to the aggregate formula and it works perfect. Thank You

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Identify cell location from last cell in row with a value greater then 0

    Hi @spyac

    You are welcome.

    I do not see next month in the sequence ...


    Regards

  5. #5
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Re: Identify cell location from last cell in row with a value greater then 0

    Hi Jose
    I'm not familiar with the aggregate function. How do I limit the range in the formula as you suggested?

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Identify cell location from last cell in row with a value greater then 0

    Use this general example with your data in M1:ZZ....

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note the -column(M$1)+1 to adjust the start plus one for next month

  7. #7
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Re: Identify cell location from last cell in row with a value greater then 0

    Thanks again for the range adjustment method

+ 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] creating a link from a set location to a location specified in another cell (googlemaps)
    By texcel_tom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2016, 09:48 AM
  2. [SOLVED] Identify values in a cell based from another sheet and concatenate the results in one cell
    By danallamas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2015, 12:00 AM
  3. Identify cell address of cell displayed in top left-hand corner of screen
    By DD1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2014, 08:34 PM
  4. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  5. Store current cell location to use same location on other worksheet
    By jmvdholst in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2013, 09:58 AM
  6. [SOLVED] Identify a Cell When a Following Cell is a Certain Value Amount Greater
    By SKIPPER7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 12:15 PM
  7. Replies: 4
    Last Post: 08-25-2009, 06:39 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