+ Reply to Thread
Results 1 to 13 of 13

Bar graphs in pedro

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    20

    Cool Bar graphs in pedro

    Does anyone know how to take the bar graph chart and put them in order from lowest to highest values? Is there a way to change the order in an existing bar graph or does a formula have to be entered

  2. #2
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: Bar graphs in pedro

    Quote Originally Posted by J2000k View Post
    Does anyone know how to take the bar graph chart and put them in order from lowest to highest values? Is there a way to change the order in an existing bar graph or does a formula have to be entered
    Sample file attached.

    .
    Attached Files Attached Files
    Last edited by yurttas; 09-25-2009 at 06:24 AM.

  3. #3
    Registered User
    Join Date
    09-24-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Changing bargraph to display in ascending order on existing chart

    Ok that is the basic idea for whatever reason people call it pedro..anyway how is that option embedded into the excel sheet with that pull down option from normal to ascending

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Bar graphs in pedro

    How this works:

    Your normal data is in A1:B6. This range has the range name "Normal"

    Your sorted data is in A9:B14. This range is called "Ascending"

    The source data for the chart is in A17:B22.

    Above the chart, there is a cell with data validation, type List and allowed values are "Normal" and "Ascending". These values are also the range names from above.

    The data table for the chart is filled with an formula that looks at H4, which displays either "Normal" or "Ascending". The formula then converts that text into a cell address with the use of the INDIRECT function.

    =INDIRECT(H4)

    The result of this function is the range that is named in H4.

    By selecting A17 to B22, entering =INDIRECT(H4) in A17 and confirming with CTRL-SHIFT-ENTER, the individual cells of the range named in H4 will be distributed to the selected cells. This is called an array formula.

    May take a while to get used to. Array formulas can cause major wonderment and headache, but once you understand them, they're quite handy in certain situations.

    Without array formulas, the data table could be filled with something like

    =IF($H$4="Normal",A1,A9)

    copied down and one to the right.

    If you want to use this technique with charts that display lots of different variations, the IF statement will near its capacity with seven nested IFs (in Excel 2003), but with the array approach, you can have a virtually unlimited number of data sources that can be beamed into the data table for the chart. Just give it a name and add it to the validation list.

    Good work, Yurttas!

  5. #5
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: Bar graphs in pedro

    Hi, teylyn.

    Thanks for your very nice explanation.

    .

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Bar graphs in pedro

    Just beware that the SMALL and INDEX does not handle repeated values well.

    e.g. If all the Points are 100 all the Names are A
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    09-24-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    20

    Thumbs up Re: Bar graphs in pedro

    Thanks to both of you now I just have to try it and see if this works i guess a simple click to make this chart is out the window.

  8. #8
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: Bar graphs in pedro

    Quote Originally Posted by Andy Pope View Post
    Just beware that the SMALL and INDEX does not handle repeated values well.

    e.g. If all the Points are 100 all the Names are A
    Hi, Andy Pope

    What about this...



    .
    Attached Files Attached Files

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Bar graphs in pedro

    That appears to work.

    This is my version.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-24-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Bar graphs in pedro

    So far setting up the chart in ascending order i got that now setting up the drop down arrow so i can toggle from normal to ascending is the next hurdle. If we refer to back to chart 22 for the first set of data A1 B6 what is the exact procedure to add the pull down menu

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Bar graphs in pedro

    The cell uses Data validation, list.

    Use the menu, Data > Validation...

  12. #12
    Registered User
    Join Date
    09-24-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Bar graphs in pedro

    Ok so I selected Data->Validation and selected Input Message and typed in List. Then clicked over to the Settings tab and highlighted the entire column with only the numbers values inside for the source data. This however only made a drop down of all the values i just highlighted. The goal here is to create it so i can select ascending or descending from that drop down menu and change the order and have it displayed and functioning on the chart.

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Bar graphs in pedro

    First you need to create a list of descending positions.
    Formula for F3 and copied down.

    F3: =MATCH(LARGE($D$3:$D$12,ROW()-ROW($E$2)),$D$3:$D$12,0)

    Then you need to make a new table of values next to the Ascending table.

    Copy A18:B29 to D18:E29

    change the formula in D20 and E20

    D20: =INDEX($A$3:$B$12,$F3,1)
    E20: =INDEX($A$3:$B$12,$F3,2)

    Add a new named range
    DESCENDING: =Sayfa1!$D$18:$E$29

    Select H4 and add Descending to the List.

    source: Normal,Ascending,Descending
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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