+ Reply to Thread
Results 1 to 9 of 9

true or false to disply as a sum total?

  1. #1
    Registered User
    Join Date
    03-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    16

    true or false to disply as a sum total?

    Hi, I am doing a spread sheet for work and just have a little issue. I have two time fields in the spread sheet and if one is less then the other it reads true and turns green but if it’s greater then it reads false and goes red. Is there a way of it to say how much the time is under or over the original instead or just reading true or false?

    excel.JPG

    Hope you can help

    Thanks Phil
    Last edited by NBVC; 03-04-2009 at 12:35 PM.

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

    Re: Hopefully a simple question

    Welcome to the forum,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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
    03-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    16

    re: true or false to disply as a sum total?

    Sorry hope thats oks? Can anyone still help me please?

    Thanks

    Phil

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

    re: true or false to disply as a sum total?

    Thanks for fixing the title,

    How about?

    =IF(H3<G3,-(G3-H3),H3-G3) to show in decimal format

    or if you need to show it time format:

    =TEXT(ABS(H3-G3),IF(H3<G3,"-mm:ss","mm:ss"))

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    re: true or false to disply as a sum total?

    Format the cell as TIME - 13:30 then use this formula:

    =IF(H3>G3,H3-G3,G3-H3)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    03-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    16

    re: true or false to disply as a sum total?

    Wow, awsome thanks, on some though the job was cancelled so i input N/A inboth 3G and 3H, so the result i get in the calculation is just #value. Anyway i could and a bit at the end to just input N/A?

    Thanks

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: true or false to disply as a sum total?

    Something like this:


    =IF(OR(G3="N/A",H3="N/A"),"N/A",IF(H3<G3,-(G3-H3),H3-G3))

    =IF(OR(G3="N/A",H3="N/A"),"N/A",TEXT(ABS(H3-G3),IF(H3<G3,"-mm:ss","mm:ss")))

  8. #8
    Registered User
    Join Date
    03-04-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    16

    re: true or false to disply as a sum total?

    Awsome, spot on thanks

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    re: true or false to disply as a sum total?

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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