=VALUE(TEXT((NOW()-E16)/24,"[h]"))
This is the formula I'm using now, if I have a positive number I want it to show up, if the number is negative, I don't want it to show up. Is this possible?
=VALUE(TEXT((NOW()-E16)/24,"[h]"))
This is the formula I'm using now, if I have a positive number I want it to show up, if the number is negative, I don't want it to show up. Is this possible?
You can use an IF statement to return a blank, or Coditional Formatting to hide negative amounts.
=IF(VALUE(TEXT((NOW()-E16)/24,"[h]"))<0,"",VALUE(TEXT((NOW()-E16)/24,"[h]")))
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Thanks that works perfectly. I am now running into an issue in where I tried to make it so that it won't show up if no date it there, and I get an -40981. I tried to fix it by:
=IF(VALUE(TEXT((E73-NOW())/24,"[h]"))>=0,"",VALUE(TEXT((E73-NOW())/24,"[h]"))),IF(E73,TODAY()-E73,0)
Now I get an error, I really need to take an excel course again.
Last edited by Cyberpawz; 03-13-2012 at 08:57 AM.
This may be shorter a bit:
=IF(NOW()-E16<0,"",VALUE(TEXT((NOW()-E16)/24,"[h]")))
Quang PT
Hi
Give a try to this.
=IF(OR(VALUE(TEXT((NOW()-E16)/24,"[h]"))<0,(VALUE(TEXT((NOW()-E16)/24,"[h]"))="",""),VALUE(TEXT((NOW()-E16)/24,"[h]"))))
Hope to helps you.
Regards
Fotis.
-This is my Greek whisper to Europe.
--Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Advanced Excel Techniques: http://excelxor.com/
--KISS(Keep it simple Stupid)
--Bring them back.
---See about Acropolis of Athens.
--Visit Greece.
From your post N0#4....it won't show up if no date it there, and I get an -40981.
If there is no date, Where? In which cell?
As you can understand, for all of us is very difficult, because we don't have a workbook to test our suggestions!
Try this formula
=IF(OR(E16>NOW(),E16=""),"",INT(NOW()-E16))
format formula cell as general
Audere est facere
Ok, I got this going well so far, but I am running into an issue. I have placed some conditional formatting using the equation, I am curious is there a way to make conditional formatting work so it only shows a specific word or icon if the condition is 0?
I've looked around and so far I see >= but that is it, no =.
Here is the sheet so far.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks