View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Tyro[_2_] Tyro[_2_] is offline
external usenet poster
 
Posts: 1,091
Default how do I get time entered automatically in A1 if B1 has text

=IF(B1=1, "NOW()") does not return an error in Excel 2007, it returns the
words "NOW()" if B1 is equal to 1 and FALSE if B1 is not equal to 1. Just
as the formula specifies. Quotes make a difference. Did you want the formula
to return the date and time of day as in NOW() or did you want the literal
"NOW()". If you want the date and time of day, then =IF(B1=1, NOW()) If B1
is equal to 1 you get the date and time and if not equal to 1, the formula
returns FALSE. If you want 0 then perhaps =IF(B1=1, NOW(),0)

Tyro

"Sergeant Henderson USAF" <Sergeant Henderson
wrote in message
...
I'm creating a log sheet that will have entries every few minutes in the
second cell or column B. I need the time to be automatically entered in A
each time. Is this possible? I've tried several formulas with no luck. The
closest formula that I can get is =IF(B1=1, "NOW()") however this will
return
an error. If this were to work then a 1 would have to be entered in B1. I
tried using a wildcard with no luck also.
Time taken from the computer clock is entered as =NOW()
Please help if you can
Thanks
Tim