Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Joe Joe is offline
external usenet poster
 
Posts: 476
Default formula with date answer

can someone give me an example of a formula that will look at the contents of
one cell and if that cell is =0 then another cell will give todays date and
time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default formula with date answer

A formula can only return a result the cell in which it is contained.
Therefore, it cannot update "another cell" as you are looking for. The
formula

=IF(A1=0,NOW(),"Not Zero")

will return the current date and time (be sure to format the cell for date
and time) if A1 is 0. If A1 is not zero, it will return the text "Not Zero".
Substitute the value you want to return if A1 is not zero.

This will not, and cannot, change any other cell.


"joe" wrote in message
...
can someone give me an example of a formula that will look at the contents
of
one cell and if that cell is =0 then another cell will give todays date
and
time?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default formula with date answer

with data on E2

=IF(AND(ISNUMBER(E2),E2=0),TEXT(NOW(),"ddd,m/d/yy,h:mm"),"")
or
=IF(AND(not(IStext(E2)),E2=0),TEXT(NOW(),"ddd,m/d/yy,h:mm"),"")

"joe" wrote:

can someone give me an example of a formula that will look at the contents of
one cell and if that cell is =0 then another cell will give todays date and
time?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default formula with date answer

can someone give me an example of a formula that will look at the
contents of one cell and if that cell is =0 then another cell will
give todays date and time?


Maybe it'll meet your need to put the number in A1 and this formula in the
"other cell":
=IF(A10, NOW(), "")
You can format the other cell as "date and time" using
Format Cells Number Date
And choosing a "Type" you like.

The date and time updates when somebody makes a change in the workbook.
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
using lookup to return more than one answer in date format Geni Slaughter Excel Worksheet Functions 4 November 28th 05 06:34 PM
i edit a formula (excel) then it displays formula not answer caiman Excel Discussion (Misc queries) 2 September 9th 05 02:09 AM
i want to add a number to a date and get the date as an answer eg. traineeross Excel Worksheet Functions 2 March 9th 05 11:59 AM
I need to get this answer 8 - 1.2 = 6.2 from a formula T Excel Worksheet Functions 11 December 22nd 04 02:17 PM
If and (and) formula to allow a zero answer inthestands Excel Worksheet Functions 8 November 3rd 04 10:36 AM


All times are GMT +1. The time now is 04:11 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"