+ Reply to Thread
Results 1 to 2 of 2

Plotting age along a horizontal axis in graph

  1. #1
    Registered User
    Join Date
    10-05-2018
    Location
    London, England
    MS-Off Ver
    10
    Posts
    1

    Plotting age along a horizontal axis in graph

    Hi everyone,

    I am hoping that someone can help me.

    I am new to the forum, and have an problem with a spreadsheet I am creating for my work.

    I am currently creating a cash-flow modelling tool within Excel, analysing fund values based on certain assumed growth rates. I have created a bar chart to show the value of fund increasing each year, (easy stuff).

    The spreadsheet calculates a starting point on the horizontal axis on an individuals current age, by entering a date of birth, and then displays the graph from that age onward. I would ideally like the graph's horizontal axis to stop at age 100, no matter the individuals current age.

    For example, for a 40 year old, the graphs horizontal axis will show 60 years to age 100, at 50, the next 50 years, etc.

    At the moment the chart runs for a preset number of rows, only 1 > 100 for example. To show to age 100, I have to manually adjust the row to stop at age 100. This is not ideal as the chart has multiple inputs and therefore each one needs to be adjusted every time.

    Is it possible, to set the horizontal axis within an excel graph to stop given a cells value, i.e. to 100. The graph would then only show the corresponding number of bars between current age up to 100.

    Hope that someone can help.

    Many thanks in advance.

    - Neil

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Plotting age along a horizontal axis in graph

    It sounds like you want a "dynamic chart" using a "dynamic named range". Most example use the OFFSET() function, and most examples are built on a COUNT() function (counting the number of filled cells). In your case, you might use a COUNTIFS() function (to count how many entries are below 100) or a lookup function (where is the 100 entry in the range), but the overall idea should work.

    If you are unfamiliar with dynamic charts and dynamic named ranges, there are many tutorials on the internet.
    https://www.excel-easy.com/examples/...med-range.html
    http://best-excel-tutorial.com/56-ch...-dynamic-chart
    https://chandoo.org/wp/dynamic-chart-data-series/
    or put "dynamic chart excel" into your favorite search engine.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Replies: 4
    Last Post: 07-30-2015, 01:58 PM
  2. Plotting graph with 'Text' on x axis
    By brad999 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-01-2014, 07:29 AM
  3. Bubble Graph Help please. Plotting X and Y Axis (not with numbers)
    By HarryC in forum Excel Charting & Pivots
    Replies: 13
    Last Post: 10-31-2013, 05:52 AM
  4. Plotting 2 bars and 2 lines in a 2 y-axis graph
    By patricia.junkes in forum Excel General
    Replies: 2
    Last Post: 07-08-2011, 03:33 AM
  5. plotting bar graph with dates axis
    By Rezez88 in forum Excel General
    Replies: 3
    Last Post: 01-13-2011, 04:02 AM
  6. Replies: 1
    Last Post: 04-19-2010, 10:20 AM
  7. How do I use two different sets of data for X axis when plotting graph?
    By trinaloup in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-09-2009, 07:23 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