+ Reply to Thread
Results 1 to 6 of 6

Charting negative information.

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Charting negative information.

    I apologize in advance for this long post. I'll try to be as brief as I can.

    I'm working on a budget spreadsheet, which is used to make an interactive chart for my users. I've attached an example of the spreadsheet and chart. Column A through G have the budget information. This data is for the my users to see if they want to see detail. The chart they normally look at is populated by the values in columns N through T, which are all calculations to show percentages.

    My chart is a stacked bar chart, filled with the percentages of Expensed, Encumbered, Pre-Encumbered, and Unobligated. As long as Unobligated is zero or above, my chart looks good.

    The problem comes in when someone overspends, so their unobligated goes into negative numbers. That drives my chart below the zero line, which I don't want to see.

    I THINK I may have a solution, but am unsure how to implement it, or what the repercussions might be. It involves adding another series to my chart, "Expended Exceeds Budget"

    I thought in column U I could have a formula that looks at Unobligated, and if Unob is less than zero, the value in U would be 100%. Then, I'd use Conditional Formatting to look for !00% in column U, and so replace the formulas in columns Q-T (for only those lines) to Zero, so my chart would show a solid black bar, indicating my customer has exceeded the budget.

    I think this would work, but am unsure on the conditional Formatting part (not familar enough with it). Would the conditional formatting REPLACE the formulas, or would it overlay the formulas with a zero value? if the former, I'd have to recreate the formlas for those lines every time I updated the data (and we're looking at getting a daily feed to update the values). So, I'd need to have a macro to replace those formulas every time data is updated.

    I'd appreciate any help I can get on this, and if you have a better idea on how to accomplish this I'm eager to listen.

    Thanks,
    John
    Attached Files Attached Files
    Last edited by jomili; 03-07-2011 at 09:40 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Charting negative information.

    Would help you making Fixed value instead of Automatic on Axis (Right click on Axis number -> Format Axis -> Minimum Fixes = 0 ?

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Charting negative information.

    I'm not sure what that would do. Please explain.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Charting negative information.

    Won't show negative values...
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Charting negative information.

    That's what I thought. That would solve the problem of dipping below my zero line, but doesn't allow me to show that this account has actually exceeded their budget. and gives the idea that there's still more budget to expend (because Expense bar doesn't rise to top, which is 100%),

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Charting negative information.

    Sorry it's been so long since I've posted. I solved my own problem using a two step approach with the two macros below. My thought is; I EITHER want the expensed, encumbered, and unobligated to show, OR I want the column to show that the budget has been exceeded. So, if Unobligated is 0 or greater, nothing should show for Exceeds budget. However, if Unobligated is less than 0, then I don't want anything to show for Expensed or Encumbered, but instead to show 100% of "Exceeds Budget".

    The order they work in is:
    1) Refresh the data (no macro for that yet)
    2) Restore the formulas
    3) Fix values in case of overspend

    Please Login or Register  to view this content.

+ 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