+ Reply to Thread
Results 1 to 12 of 12

Want chart that shows when people were active over the years

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    42

    Want chart that shows when people were active over the years

    I need to create a chart that shows when people were active over the years. It should have the years on the horizontal axis and the people on the vertical axis. There would then be a horizontal line showing when the person was active, one line for each person. A plus would be to have a count of the active members for each year at the top, if that is possible.

    Here is some sample data
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Want chart that shows when people were active over the years

    I'm not sure how you would do this as a "chart" but I've created a Gantt type chart which might be what you need.

    I created the years in cells across Row 1, then a formula for each person to put a 1 in the cell if they were active in that year. I then used conditional formatting to colour cells which contain a 1.

    The total is just a SUM formula in Row 2.
    Attached Files Attached Files
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    42

    Re: Want chart that shows when people were active over the years

    Thanks for your response. I appreciate it. I believe I chose the wrong words. Perhaps I should call it a graph. I would like to have lines that show when the member was active. In general lay out, what you put on there is great, but I need just need it in graph form.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Want chart that shows when people were active over the years

    See if the attached is what you want. I've put this formula in E1:

    =MIN(B$2:B$5)

    to find the earliest year, and this in F1:

    =IF(E1="","",IF(E1<MAX($C$2:$C$5),E1+1,""))

    which when copied across will give you successive years up to the latest year in column C.

    I've used this formula in E1:

    =IF(E$1="","",IF($B2>E$1,"",IF($C2<E$1,"","x")))

    which you can copy across and down as required - it will result in x in the cells which fall between the start and end dates. I've shown this as a solid bar of colour using Conditional Formatting with this formula:

    =E1="x"

    and setting both the foreground and background colour the same.

    Hope this helps.

    Pete

    EDIT: Ah, I see you've already had a response along the same lines.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-05-2014
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    42

    Re: Want chart that shows when people were active over the years

    Thanks for the reply. I really need this in graph form and not an excel table form. Definition of the exact start and end years is less important. Essentially, this is being put into a report of membership which needs to occupy about the top half of an A4 page in portrait. I figured I would probably have the x axis display the years in increments of 5.

  6. #6
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Want chart that shows when people were active over the years

    Looks like Pete and I came up with pretty much the same answer

    Sorry, I don't know of any type of graph which would allow you to have years on the x axis and names on the y axis.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Want chart that shows when people were active over the years

    Okay, see if the attached is what you want. I've left the earlier one there.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-05-2014
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    42

    Re: Want chart that shows when people were active over the years

    Quote Originally Posted by Pete_UK View Post
    Okay, see if the attached is what you want. I've left the earlier one there.

    Hope this helps.

    Pete
    Pete, that is exactly what I need. Can you tell me how to make that for the actual dataset I have?

  9. #9
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Want chart that shows when people were active over the years

    Brilliant solution Pete!

    I just made one small mod to your formula in column D:

    =IF(C2>B2,C2-B2,1)

    ... it just made the bars end in the correct year, but also took care of the one where First Year and Last Year were the same.

    That's definitely going in my "solutions" library

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Want chart that shows when people were active over the years

    It's a 2-D stacked bar graph, using columns B and D (difference) as the source data. I've set the colour of the 1st series (B) to No fill, and I have manually set the starting year as 1970 to 2015 with an increment of 5. The Y-axis values are the names in column A.

    I can't think of a way to get the numbers per year - maybe you can have a text box with those values to sit over the graph (and scale manually).

    Hope this helps.

    Pete

  11. #11
    Registered User
    Join Date
    08-05-2014
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    42

    Re: Want chart that shows when people were active over the years

    Thanks a lot Pete!

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Want chart that shows when people were active over the years

    You're welcome - thanks for the reps.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ 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: 1
    Last Post: 04-07-2016, 06:37 PM
  2. Adding a column that shows years and months a customer has been with us
    By Rachel Catalogues in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-10-2015, 08:48 AM
  3. Calculate Active years on certain time moments
    By Pokemoen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2014, 10:43 AM
  4. Need help counting years a customer has had policies active
    By RichLemon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-11-2013, 11:01 PM
  5. Replies: 2
    Last Post: 10-16-2012, 11:40 AM
  6. Formula to only show active people?
    By mv835 in forum Excel General
    Replies: 3
    Last Post: 08-23-2009, 11:01 AM
  7. Replies: 0
    Last Post: 04-11-2005, 01:06 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