+ Reply to Thread
Results 1 to 5 of 5

Finding the (Dynamic) End of a Horizontal Range

  1. #1
    Registered User
    Join Date
    06-12-2016
    Location
    Ann Arbor, MI
    MS-Off Ver
    2010
    Posts
    6

    Finding the (Dynamic) End of a Horizontal Range

    Hi All,

    This one seems so obvious to me and yet I'm having the hardest time using the right combination of HLOOKUP, MATCH, et al.

    I'm working on a makeshift Gantt chart for a project management, uh, project and I just can't seem to find the right formula to determine end date. Basically, we've got a series of projects that all have different work rates and start dates, and we have a limited daily capacity to work on those projects. This capacity can be adjusted, however, and depending on how its adjusted, the end dates of these projects can change.

    What I need is a formula that will capture what that end date is. Since the date is the top row of my chart, my objective is essentially "find the top row of the last non-zero value in a range given the top row of the first non-zero value in that range". Let me know if you need a visual aid or any additional information and thank you so much in advance!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding the (Dynamic) End of a Horizontal Range

    Not real clear what you want.

    Maybe this...

    Return the last (right-most) non zero entry.

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    88
    11
    58
    86
    0
    67
    62
    0
    0
    0
    2
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    3
    62


    This formula entered in A3:

    =LOOKUP(2,1/(A1:J1<>0),A1:J1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Finding the (Dynamic) End of a Horizontal Range

    Hi and welcome to the forum

    It would help if you could upload the workbook and manually add the result(s) you expect to see. Clearly explain which cells are the results and if it's not blindingly obvious how you arrived at the results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-12-2016
    Location
    Ann Arbor, MI
    MS-Off Ver
    2010
    Posts
    6

    Re: Finding the (Dynamic) End of a Horizontal Range

    Ah! The right-most non-zero entry! I spent so much time thinking it had to correspond with the date that I didn't even consider it could be easier than that. Thank you very much!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding the (Dynamic) End of a Horizontal Range

    You're welcome. Thanks for the feedback!

+ 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. Dynamic Trendline by horizontal data.
    By 200yrs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-12-2015, 10:05 AM
  2. Finding Last Three Values From Dynamic Table Range in Excel
    By s2jrchoi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-27-2015, 02:01 AM
  3. Dynamic Chart Range for Horizontal values
    By phill_howz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-03-2014, 11:47 AM
  4. [SOLVED] Finding Min/Max for Dynamic Date Range
    By Swept in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-20-2013, 06:38 AM
  5. Dynamic Horizontal + Vertical chart
    By kluchy in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-13-2013, 07:59 AM
  6. [SOLVED] Finding dynamic range
    By hardik.r.shah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2012, 01:30 AM
  7. Horizontal Bar Chart - Dynamic?
    By theghost in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 09-24-2009, 02:41 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