+ Reply to Thread
Results 1 to 10 of 10

IF Statement

  1. #1
    Registered User
    Join Date
    08-05-2004
    Posts
    10

    IF Statement

    Here is what I have in one cell:

    =IF(H5=0, "BALANCED","NOT BALANCED")

    Cell H5's value is $0.00.

    Yet...it is saying Not Balanced.

    Any help is appreciated.

    Thanks!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe H5 is entered as text?

    Try re-typing the 0 in H5.

    If that doesn't work....select H5 and go to Data|Text to Columns and just click Finish.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-05-2004
    Posts
    10
    Neither worked.

    H5 is a formula too...the difference of two other cells.

    I've tried changing H5 to text, to number, to currency(which is what I want).
    I've tried difference formulas in H6:

    =IF(H5=0, "BALANCED","NOT BALANCED")

    =IF(H5=0.00, "BALANCED","NOT BALANCED")

    Still does not work.

    I also tried what you suggested: Data, Text to Column, Finish; but nothing happened.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    So is H5 exactly 0?

    Probably not.... try =IF(ROUND(H5,0)=0, "BALANCED","NOT BALANCED")

  5. #5
    Registered User
    Join Date
    08-05-2004
    Posts
    10
    Yes, H5 is exactly 0.

    H5 is =C4+H4
    where C4 is a positive number and H4 is a negative number.
    C4 = $50.00
    H4 = -$50.00

    Where H5 = $0.00

    And H6 should say Balanced

  6. #6
    Registered User
    Join Date
    08-05-2004
    Posts
    10
    In addition, I've created 4 spreadsheets for reconciling. 2 of them work and 2 of them do not work. The ones that do not work have this problem. All 4 of them have the exact formulas.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    So the Round() formula didn't work?

    possible to attach sheet here?

  8. #8
    Registered User
    Join Date
    08-05-2004
    Posts
    10
    The Round did work, but why would it do this on 2 worksheets and not the other 2 I created. Same formulas and formats applied.

    Thanks for you help!

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Somewhere along the line of where the precedent cells are, there is a precision issue... check all precedent cells to see what the exact numbers are (in the formula bar).

  10. #10
    Registered User
    Join Date
    08-05-2004
    Posts
    10
    Thanks for the help

+ 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