#1   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default IF formula for time


I have cells A1 & B1. What I want is when I put "1" into A1, for B1 to
show the current time. Can I use an IF formula? =IF(A1 =
1,"????","")

Thanks,


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539501

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default IF formula for time

=IF(A1=1,NOW(),"")

Format as Time

--
Kind regards,

Niek Otten

"fastballfreddy" wrote in message
news:fastballfreddy.27dn3m_1146903901.218@excelfor um-nospam.com...
|
| I have cells A1 & B1. What I want is when I put "1" into A1, for B1 to
| show the current time. Can I use an IF formula? =IF(A1 =
| 1,"????","")
|
| Thanks,
|
|
| --
| fastballfreddy
| ------------------------------------------------------------------------
| fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
| View this thread: http://www.excelforum.com/showthread...hreadid=539501
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default IF formula for time


Thanks for the reply Niek. I tried that before and it's not working for
what I want it to do.

What I am trying to do is I have a list of 100 #s in column A. Once I
get done working the first # (in A1). I want to put "1" in B1. Once
"1" is entered I want C1 to show the current time. I'll repeat the
steps, finish A2, put "1" in B2 and the current time will show in C3.


With the previous formula: =IF(A1=1,NOW(),"")

C1, C2, C3 and so on would be the same time, updating everytime you
input a "1" if the time change. Is there something that can be changed
w/ the current formula, or is there another formula out there?

Thanks,


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539501

  #4   Report Post  
Posted to microsoft.public.excel.misc
SLAnt
 
Posts: n/a
Default IF formula for time


I think a macro is needed he-

Right click on the sheet you are using
select View Code
in the first dropdown box towards the top of the page select Worksheet
in the one to the right select selection change
then ensure the code window below displays the following code(copy and
paste the bits you need)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If ActiveCell.Value = 1 And ActiveCell.Column = 2 And
IsEmpty(ActiveCell.Offset(0, 1)) Then
ActiveCell.Offset(0, 1) = Now()
End If
End Sub

somethinglikeant


--
SLAnt
------------------------------------------------------------------------
SLAnt's Profile: http://www.excelforum.com/member.php...o&userid=34184
View this thread: http://www.excelforum.com/showthread...hreadid=539501

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"