+ Reply to Thread
Results 1 to 29 of 29

Life expectancy chart

  1. #1
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Life expectancy chart

    Hi,
    Could someone please direct me to the best way of producing a life expectancy chart such as the one attached?
    Attached Files Attached Files

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

    Re: Life expectancy chart

    Your picture looks like a butterfly or tornado chart. Most tutorials I have seen for these charts are based on a stacked bar chart. I would start with a tutorial like this, https://best-excel-tutorial.com/56-c...utterfly-chart then adapt to your specific needs.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    That seems to be what I am after, thank you. I could not see this level of detail when I started the chart in Excel. Looks like it may take a while!
    Thanks for your help.

  4. #4
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Hi,
    Could I ask something else? I am trying to split a category into two i.e. I have two lots of data for the same year. I am having trouble separating the line into two, do you have any tips please?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Life expectancy chart

    Show us some sample data that needs to be split in an excel file. See the yellow banner at the top of this page.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    There is no tab allowing me to add chart element. I basically need to split a version of something into a and b for each year.

  7. #7
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Very crudely put:

    Eng a Eng b Scot a Scot b Wales a Wales b N Ire a N Ire b
    2009 1 2 3
    2010
    2011
    2012
    2013
    2014
    So to show two versions of England as separate lines.

  8. #8
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Ideally I would like a chart that compares the two versions, a and b, if possible. I am messing around with the charts, but they are all not the right ones!

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,904

    Re: Life expectancy chart

    Can you present the data in a worksheet and attach as asked using the yellow banner. It is difficult to manipulate the data shown as it is not separated into cells and not easily able to determine which items belong in which column. Help us to help you by giving us workable information.

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

    Re: Life expectancy chart

    I, too, am not sure I understand. The only difference between your picture and the tutorial is that you have two "stacks" for each category on each side of the butterfly, where the tutorial's chart only has one "stack" on each side. Is that what you mean by "split each category into two"? If so, then, because the butterfly chart is already a stacked bar chart, it should be as simple as adding additional data series to the chart.

    If it helps to place it in the context of the tutorial, the tutorial has their data of interest in columns B and C. Columns D, E, and F are for "dummy" data series that are used to give the butterfly effect. If the goal is to have "two stacks" on each side, then that means four columns instead of two for the data of interest. So, you would be using columns B, C, D, and E for your data of interest and column F, G, and H will contain the dummy data for the unseen dummy series. Am I guessing right? Does that help?

    Beyond that, I agree with Alansidman. It could be difficult to help you further without seeing your (dummy) data and your current attempt at the chart. That should help us to explain what you need to do differently.

  11. #11
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Sorry, I understand I am not explaining it well enough. Please see attached data example. I have two sets of information for each year and each region. I also need it for male and female. So several threads to compare on the same graph. It really doesn't matter which type, as long as it shows the trend change through the years of the two sets of information comparing the a and b, and the female and male.
    I appreciate this very much, it is important, and I have driven myself into knots now.
    Attached Files Attached Files

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

    Re: Life expectancy chart

    I'm still not sure I understand. The data in your sample file does not include any male/female indicators, so I'm not sure what you really have or how that is incorporated. I took your data and created a butterfly chart (in LO Calc, hopefully Excel will be able to read the chart information, sometimes it doesn't do it exactly right) with the "a" data on the left side of the butterfly and the "b" data on the right side of the butterfly. Time is increasing as you move up the chart. Each region is a separate data series. Is that even close to what you want to see? Where does male/female fit into the data?
    Attached Images Attached Images
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Maybe this is a better example?
    Attached Images Attached Images

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

    Re: Life expectancy chart

    That's a basic stacked column chart -- one of the basic chart types supported by Excel. Have you tried it with your data? Review this, https://www.excel-easy.com/examples/column-chart.html if you are uncertain of the basic mechanics of creating a column chart (their example is for a clustered column. the only difference for you is to select stacked column instead of clustered column).

  15. #15
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    I'll have a go, thank you. Please don't go anywhere!

  16. #16
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    How would I add two batches onto the same graph? i.e. one half showing male, one for female? I believe I need to split the data in the actual table?

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

    Re: Life expectancy chart

    I believe I need to split the data in the actual table?
    Assuming I understand, I would reply, "yes". Charts have no data analysis or generation capabilities of their own. They can only show data that you have entered/calculated in the spreadsheet. Once the necessary data are calculated/entered into the spreadsheet, then adding male/female data to the chart should be as simple as adding enough data series/legend entries to the chart and telling the chart where to find the male/female data for these data series.

  18. #18
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    I'm on the verge of tears here. It isn't enough. The clustered column, yes, but I need an extra dimension.
    It's two separate criteria for each year trending over a period of years.
    So the blue chart attached - but the cluster chart instruction does not address this. I have sets A and B which I need to compare for each UK region over a period of years. The instruction only shows for example, one set for each region over a period of years.
    Please can you help, I am stressing so much? How can I make this graph?
    Attached Images Attached Images

  19. #19
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    I think actually after all this, a line chart would be better. Two single lines going across the years, so I could compare the two. But I cannot find how to putt two separate lines.

  20. #20
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    I am attaching two graphs whose data need to be represented together on one chart. Would you have any idea which chart would best suit this please?
    Attached Files Attached Files

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

    Re: Life expectancy chart

    I'm sorry that this is frustrating, and I know that frustration makes this sort of thing harder. Take a break or something, if you need to, so you can approach this without frustration muddying things up.

    It would help if we had a better idea what data you have. You talk about having "A and B" data, and you also talk about having "male and female" data. Are these the same (A is male and B is female), are they different (there is data for A + male, A + female, B + male, B + female)? Your original example also showed region. Is your current stacked bar example for one region, or are you still wanting to combine multiple regions into a single chart, or are we now ignoring region?

    Assuming we are now working on data for a single region, two categories, with male and female within each category, here's how I would expect to create any basic Excel chart:

    1) Data entry: Enter the data like this:
    Please Login or Register  to view this content.
    2) Select this table and insert the desired chart type. Stacked column or line or area or stacked area or clustered bar or whatever chart type you want to try.

    3) Look at the chart and see if I like it. If not, I can select the chart (make sure the chart is selected and not a single data series), find the "chart type" command and change the chart type to a different basic chart type.

    4) If I cycle through all of the basic chart types and I don't like any of them, then I need to stop and think about what I like and don't like about each chart type and identify what I need different that the basic chart types don't readily offer. Then I can start exploring more advanced charting techniques to get different effects. But everything has to start by being able to create the basic chart types.

    Here's a file I created to show this. I started from your data in post #11, removed everything but the Wales data. Then I split Wales a and b into male and female for a total of 4 data columns (plus the time column to make a total of 5 columns). Filled the table with random numbers, then inserted 2 charts from the data. One is a clustered column, the other is a line. As noted in step 3, it should be easy to change either of these charts to any other basic chart type. Do either of these charts look good? If so, what looks good about them? If not, what do you need different? If you enter some reasonable values (rather than my random values) into the table, what do you see? What chart type looks good with real data? What do you want to see different?
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    More exactly, how can I put both male and female versions on the same graph, of these attached?
    Attached Files Attached Files

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

    Re: Life expectancy chart

    It should be exactly like I show in post 21 -- 4 columns of data (Wales HLE M, Wales HLE F, Wales LE @ birth M, Wales LE @ birth F) plus a leftmost column for dates. Select the resulting block of cells and insert a line chart (line without marker subtype). Is there something in your spreadsheet that prevents you from doing the same thing I did in post #21?

  24. #24
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    It looks like we are finally getting somewhere! I am attaching the graph - do you think it represents a good enough comparison between the two sets of stats and male/female, from an outside point of view?
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    It would be good to get rid of the extra green block (that I put in to split the bars), is this possible? Or can I split the date another way?

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

    Re: Life expectancy chart

    I don't know what constitutes a "good enough comparison". As an outsider, I can look at this chart and quickly see:

    1) LE is consistently larger (about 20 units) than HLE for both genders.
    2) There appears to be little or no trend through time for each group.
    3) Female LE and HLE are consistently a little bit higher than male LE and HLE.

    If there are other things you want me to see, I don't see them right away as an outsider.

    I did not see an extra green block, but I assume you mean the "series 3" gray blocks. You can "hide" the columns in the chart by selecting the data series and formatting the series so it has no border and no fill -- effectively rendering it invisible. You can remove the "series 3" legend entry by selecting the legend, then click on the "series 3" legend entry, then press delete.

  27. #27
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    Thanks! How would I add a figure to show a difference in numbers? e.g. please see attached. I think this may be the last thing I ask you - hopefully!!
    Attached Images Attached Images

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

    Re: Life expectancy chart

    How exactly must you match the picture? Easiest, though it would not exactly match, would be to:

    1) Calculate the desired differences in an adjacent column in the spreadsheet.
    2a) Add error bars to one of the data series (error bar help file: https://support.microsoft.com/en-us/...5-864049a145f0 ).
    2b) Format the error bars to have only positive (left column data series) or negative (right column data series) error bars.
    2c) While formatting the error bars, select "custom values" and choose the spreadsheet column calculated in step (1) for the error values.
    3) Add data labels to the chosen data series https://support.microsoft.com/en-us/...2-f467c9f4eb2d choose "values from cells", and, again, select the column calculated in step (1).

    Will that be close enough, or do we need to get more complicated in order to more exactly match the picture?

  29. #29
    Registered User
    Join Date
    08-18-2021
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    22

    Re: Life expectancy chart

    I will have a go and see what happens, it's a shame I'm not in the US, I owe you a serious amount of drinks!!

+ 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: 7
    Last Post: 06-09-2020, 04:20 AM
  2. Equipment End of Life (Useful Life) Financial Model
    By msalib888 in forum Excel General
    Replies: 0
    Last Post: 09-05-2019, 07:41 PM
  3. Formula for Rolling Cost on Life Expectancy
    By pbundrant in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-05-2018, 01:10 PM
  4. Who needs to get a life?
    By Tony Valko in forum The Water Cooler
    Replies: 22
    Last Post: 01-04-2017, 10:09 AM
  5. Where have you been all my life?
    By HGL in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 09-01-2015, 03:25 AM
  6. Stuck in Most complex chart of my life
    By vikramkalsan in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-11-2013, 11:28 AM
  7. Excel Life
    By mikerickson in forum Excel General
    Replies: 0
    Last Post: 05-15-2007, 04:52 PM

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