+ Reply to Thread
Results 1 to 4 of 4

Getting a #DIV/0! response when calculating percentages on a budget sheet

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    washington
    MS-Off Ver
    Excel 365
    Posts
    66

    Getting a #DIV/0! response when calculating percentages on a budget sheet

    Hi Everyone,
    I am having trouble with a #DIV/0! when calculating the percentages used and also remaining available. This happens if the Monthly Budget (column D on attached) cell is 0. Some of the catagories simply do not have a set monthly budget, but the may have an expense sometime during the year. They need to stay on the form.

    On the attached worksheet,
    Tab Feb - Column D is monthly budget, this amount comes from Tab "Budget Worksheet" column E.
    I included this sheet only as a reference where Column D was generated from. Just in case it was useful.
    Column E is where the actual amount spent is entered
    Column F is the dollar amount left of the budget or if a negative, the amount spent over the budget.
    Column G is % used
    Column H is % remaining.

    Columns J-N - Column L= Column F
    Column M = Column G
    Column N = Column H
    I have entered what I think the correct return should be.
    I have to admit that I am unsure of column N, this may be a math issue. I feel like they are right. Also for rows that have no amount in either column J or K, it would be nice to have a blank in columns M and N instead of 0%.
    Also for column M, if the amount in column K is higher than column J I feel like it should be a negative because they over spent, thats what I put in row M16 . Row M19 I left it at the 121%, just to show what I mean.

    OK, I hope I covered everything. I really feel like this should be easy. But my brain is done trying to figure it out. Thank you to everyon
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Getting a #DIV/0! response when calculating percentages on a budget sheet

    Quote Originally Posted by windrain View Post
    I am having trouble with a #DIV/0! when calculating the percentages used and also remaining available. This happens if the Monthly Budget (column D on attached) cell is 0.
    You cannot, by definition, determine a percentage of 0. That is why you get the error. All you can do it leave the result blank if the budget is 0 or blank. Example:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have to admit that I am unsure of column N, this may be a math issue. I feel like they are right. Also for rows that have no amount in either column J or K, it would be nice to have a blank in columns M and N instead of 0%.
    Formula above also covers that case. Alternatively, instead of blank you could show some sort of message to indicate that there was no budget.

    Also for column M, if the amount in column K is higher than column J I feel like it should be a negative because they over spent, thats what I put in row M16 . Row M19 I left it at the 121%, just to show what I mean.
    This is incorrect. Column M is the "% of Budget Spent." It must be 0 or positive; you cannot spend a negative amount of money. If you overspend the budget this number will be >100%. In such a case, column H "Remaining % of Budget" will be negative.

    I have tweaked your file to reflect these suggestions.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 03-19-2018 at 05:00 PM.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    washington
    MS-Off Ver
    Excel 365
    Posts
    66

    Re: Getting a #DIV/0! response when calculating percentages on a budget sheet

    Jeff-
    Oh My Goodness! That makes so much sense, I should have known that! The formulas work perfectly.
    Thank you for answering all my questions one at a time. also explaining for me. I really appreciate it.

    As I have 5 different budgets with 12 months each, I am very thankful for this. That whole #DIV drives me crazy!

    Stacey

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Getting a #DIV/0! response when calculating percentages on a budget sheet

    You're welcome! Thanks for the rep, and thanks for marking your thread Solved!

+ 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. [SOLVED] Calculating distribution of set funds according to travel budget
    By makassem in forum Excel General
    Replies: 2
    Last Post: 10-05-2017, 05:57 PM
  2. Help with calculating average response time
    By xaxa123123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-20-2017, 06:34 AM
  3. [SOLVED] Calculating a Weekly Budget from Monthly numbers ...
    By reglook0736 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-04-2017, 05:14 PM
  4. Calculating response and completion times
    By klabro in forum Excel General
    Replies: 1
    Last Post: 04-21-2017, 05:56 AM
  5. Calculating Vessel Utilization in Budget Projections
    By rhoover7420 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2014, 06:45 PM
  6. Calculating Response Time
    By Gary H in forum Excel General
    Replies: 5
    Last Post: 03-08-2006, 08:27 PM
  7. [SOLVED] Calculating monthly budget expenses
    By Warrain in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2006, 07:00 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