+ Reply to Thread
Results 1 to 14 of 14

Display Negatives as Positives in Column Chart

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Display Negatives as Positives in Column Chart

    I'm hoping to show a graph with positive and negative values, but I hate what it looks like when the zero is in the middle of the axis. What I'd like to do is show negative values going in the same direction as the positive values, but with inverted colors (which I know how to do). The only problem is that I need data labels as well.

    Please help, thank you!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    Could we have some sample data in a workbook?

    BSB

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

    Re: Display Negatives as Positives in Column Chart

    I always thought this was as simple as setting the "horizontal axis crosses at" property of the vertical axis to something suitable. Since "at axis minimum" is not one of the options, you would simply choose a value smaller than the smallest value you would ever expect to see.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    Is this anywhere near what you need?

    It uses a couple of helper columns that could easily be hidden away.

    BSB.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Display Negatives as Positives in Column Chart

    Quote Originally Posted by BadlySpelledBuoy View Post
    Is this anywhere near what you need?

    It uses a couple of helper columns that could easily be hidden away.

    BSB.
    This is a great start, but I need to display data labels, so i don't think this will work :/

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

    Re: Display Negatives as Positives in Column Chart

    I'm not sure why BSB's suggestion prevents you from adding data labels? I can add data lables just fine. The columns that would correspond to empty string "" show up as 0 in the data label, but this can be controlled by using a number format that suppresses the display of 0's. Using NA() (to return the N/A error) instead of "" also seems to suppress the display of data labels at those points.

    If this is what you are looking for, perhaps you can explain what difficulty you are having in adding the data labels.

  7. #7
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Display Negatives as Positives in Column Chart

    Quote Originally Posted by MrShorty View Post
    I'm not sure why BSB's suggestion prevents you from adding data labels? I can add data lables just fine. The columns that would correspond to empty string "" show up as 0 in the data label, but this can be controlled by using a number format that suppresses the display of 0's. Using NA() (to return the N/A error) instead of "" also seems to suppress the display of data labels at those points.

    If this is what you are looking for, perhaps you can explain what difficulty you are having in adding the data labels.
    Sorry, should have been more clear. I need data labels that show the negative value. ie - "-15" instead of "15"

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    How about using a secondary axis and reversing its order?

    See Sheet2 in the attached.

    BSB
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Display Negatives as Positives in Column Chart

    Quote Originally Posted by BadlySpelledBuoy View Post
    How about using a secondary axis and reversing its order?

    See Sheet2 in the attached.

    BSB
    Absolutely genius. I love this forum.

  10. #10
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    Happy to help.

    Format the data labels as Custom and add #"" to the list to suppress the zero values showing.

    BSB.

  11. #11
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Display Negatives as Positives in Column Chart

    Quote Originally Posted by BadlySpelledBuoy View Post
    Happy to help.

    Format the data labels as Custom and add #"" to the list to suppress the zero values showing.

    BSB.
    I'm actually using percentages without decimals, so these all rounded to zero and thus disappeared. Any solution to that?

  12. #12
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    Have you tried MrShorty's suggestion of using NA() to suppress zeros rather than the formatting method?

    Difficult so suggest anything else without seeing the file.

    BSB

  13. #13
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: Display Negatives as Positives in Column Chart

    The NA() did not work unfortunately. It actually displayed the #N/A

  14. #14
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Display Negatives as Positives in Column Chart

    Hmmmm... Stumped by that one for the time being I'm afraid.
    I shall have a think about it and come back if I work it out.

    BSB.

+ 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. Write negatives against positives in the same column
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-03-2015, 07:06 AM
  2. [SOLVED] Best Chart for mix of positives and negatives
    By Eric S in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-24-2013, 11:00 AM
  3. [SOLVED] Best Chart for mix of positives and negatives
    By Eric S in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-22-2013, 10:37 PM
  4. Negatives to Positives, Positives to Negatives
    By Virginia Woolf in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2007, 08:59 PM
  5. [SOLVED] Positives and Negatives
    By Niagera College Student in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2005, 06: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