+ Reply to Thread
Results 1 to 8 of 8

Graph: Sorting data into descending order, but including an average....

  1. #1
    Registered User
    Join Date
    11-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    2013
    Posts
    47

    Graph: Sorting data into descending order, but including an average....

    I have graphs with information that I need to sort in descending order, but I would really like the graph to include and sort the averages too. I've attached my spreadsheet because I'm sure I'm not making any sense. Basically, there are 9 sections of the lab and they are ranked on their % of "Days in the Red" on certain measures - various overdue items - and I'd like the graph to include the "Lab Average," but I don't know how to make a cell that contains the lab average also be sortable. If I don't F4 it, the cells its averaging changes; if I do F4 it, it becomes circular. I really don't want to manually have to pick which cells to average each time; it was bad enough manually sorting them into descending order that I made a very silly and simple macro button. Feel free to laugh at my unsophisticated macro/button skills.

    The first data group and graph in the example is Calibrations. Currently, there is one section at 30%, one at 10%, and seven sections at 0%, making the lab average 4%. I would love for the graph to be able to show me the 30% bar, the 10% bar, then the lab average bar of 4%, so that the other sections can easily see whether they are above or below the lab average. That's the goal of all of this.

    Is there some way to F4 the area and exclude the Column B cell corresponding to the Column A cell containing the text "Lab Average"? Here's the formula language in my head: "Average cells B49:B57, except the cell in that range that has 'Lab Average' in the corresponding row in Column A"...it makes sense in my head....

    Help!! Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Graph: Sorting data into descending order, but including an average....

    You may try this

    In column c, from C49 to C57 use average formula

    C49:
    =average($c$49:$c5$7) copied down to c57

    Add this as second series in the graph and change it to line.
    Remove average formula in column B and adjust the data

    You should have a straight line showing average over bars.

    I am unable to upload the file otherwise i will do it.

    Thanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  3. #3
    Registered User
    Join Date
    11-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    2013
    Posts
    47

    Re: Graph: Sorting data into descending order, but including an average....

    I'm not understanding First off, when I put that into c49, it's circular. And there's no data in the C column. Did you mean to say to put the averages of B49:B57 into the C column? The other problem is that I still need to be able to sort all the info into descending order, and if it's not all in a straight sortable row, I don't know how to sort it into descending order. The data changes daily, hence why I have to worry about sorting it.

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Graph: Sorting data into descending order, but including an average....

    I am sorry i cannot upload the file.

    Please see these images for illustration

    g1.JPG

    G2.JPG

    Thanks

  5. #5
    Registered User
    Join Date
    11-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    2013
    Posts
    47

    Re: Graph: Sorting data into descending order, but including an average....

    Ohh got it! Sorry, that was my bad for not understanding graphs well enough! I like this suggestion a lot! Thank you!

  6. #6
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Graph: Sorting data into descending order, but including an average....

    Thanks and glad that you like it.

    Please mark the thread as solved if you think your problem is solved.

    Regards

  7. #7
    Registered User
    Join Date
    11-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    2013
    Posts
    47

    Re: Graph: Sorting data into descending order, but including an average....

    Er...how do I do that?

  8. #8
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Graph: Sorting data into descending order, but including an average....

    click thread tools at top of your first post
    select solved
    Thanks

  9. #9
    Registered User
    Join Date
    11-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    2013
    Posts
    47

    Re: Graph: Sorting data into descending order, but including an average....

    Thanks for helping out a n00b!!

+ 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. Sorting in descending order and show duplicate values
    By cceze in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-19-2012, 09:33 AM
  2. Sorting 6 columns in descending order in succession
    By jstclair23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2012, 10:43 PM
  3. Line graph in descending order
    By jsmity in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-08-2009, 04:38 PM
  4. Line graph in descending order
    By jsmity in forum Excel General
    Replies: 2
    Last Post: 12-08-2009, 10:39 AM
  5. Sorting percentages in descending order
    By maacmaac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2008, 10:37 PM
  6. Sorting Numbers in Ascending or Descending Order
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:25 AM
  7. sorting error:in descending order
    By ananga in forum Excel General
    Replies: 2
    Last Post: 06-30-2005, 12:05 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