+ Reply to Thread
Results 1 to 4 of 4

#DIV/0 Using Accounting formatting

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    #DIV/0 Using Accounting formatting

    I tried using the formula =IF(OR(U3="",V3=""),"",(V3-U3)/U3) but I am still getting the error. I was thinking that it's really not blank since I have the columns formatted to be "Accounting" I tried to add "$ -" that didn't work then I tried to change the format to currency and the IF to "$0.00" but that didn't work either.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: #DIV/0 Using Accounting formatting

    Formatting is a cosmetic application to a cell, it does not (generally) affect the cell contents.

    Is U3 a manual entry, or a formula? If it is a formula, what is that formula? I have a feeling that if it is a formula, it isa returning something like " " (note the space between the "s)

    The reason for #DIV/0 would be because U3 contains no vlaue
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: #DIV/0 Using Accounting formatting

    U3 is a formula =T3/3 and cell V3 is a value. I know why I am getting the error that is why I am trying to modify the formula with IF/OR. The cells in column U and V either have a dollar value or $ - when the amount is zero dollars. I am asking for help with the formula so I do not get the #DIV/0 error in cells that have $ - .

  4. #4
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: #DIV/0 Using Accounting formatting

    I solved this myself. Even though the cell show $ - if you click in the cell it shows 0 in the formula box so I changed the formula to =IF(OR(U2=0, V2=0),0,(V2-U2)/U2) and it works. Thanks for your input.

+ 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] Formatting for weight, like pecentage/money/accounting
    By DarkSoul in forum Excel General
    Replies: 15
    Last Post: 07-27-2014, 03:22 PM
  2. Problem with Accounting Formatting Option
    By jeneeva in forum Excel General
    Replies: 11
    Last Post: 09-14-2012, 11:06 PM
  3. Accounting Macro Formatting $
    By misterGwhizz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2012, 02:39 PM
  4. accounting
    By Abuali in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2010, 11:16 AM
  5. Formatting userform textbox to Accounting
    By penny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 05:29 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