#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Date Formula

Please Help. I have two cells, A1, B1. In B1 I want the current date if A1
is populated. If A1 is not populated I would like the message "< Input" in
B2.

Here is my formula in B1: =IF(A1="","< Input",TODAY())

It should be so simple, but I can't seem to make it work. Can anyone tell
me what is wrong?? Thanx for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Date Formula

I don't see anything wrong with the formula.
Make sure you set your calculation to Automatic.


"Grumpy" wrote:

Please Help. I have two cells, A1, B1. In B1 I want the current date if A1
is populated. If A1 is not populated I would like the message "< Input" in
B2.

Here is my formula in B1: =IF(A1="","< Input",TODAY())

It should be so simple, but I can't seem to make it work. Can anyone tell
me what is wrong?? Thanx for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
jim jim is offline
external usenet poster
 
Posts: 3
Default Date Formula

in cell b1:

=IF(ISBLANK(A1),"< Input",TODAY())

format b1 to suit

Jim

"Grumpy" wrote in message
...
Please Help. I have two cells, A1, B1. In B1 I want the current date if
A1
is populated. If A1 is not populated I would like the message "< Input"
in
B2.

Here is my formula in B1: =IF(A1="","< Input",TODAY())

It should be so simple, but I can't seem to make it work. Can anyone tell
me what is wrong?? Thanx for your help.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 464
Default Date Formula

Your formulas works for me. Be aware though, ="" is NOT the same as A1 being
empty as a formula (in which case the cell is not empty) can return ""
(empty text). You MIGHT need;

=IF(ISBLANK(A1),"< Input",TODAY())



--
Regards
Dave Hawley
www.ozgrid.com
"Grumpy" wrote in message
...
Please Help. I have two cells, A1, B1. In B1 I want the current date if
A1
is populated. If A1 is not populated I would like the message "< Input"
in
B2.

Here is my formula in B1: =IF(A1="","< Input",TODAY())

It should be so simple, but I can't seem to make it work. Can anyone tell
me what is wrong?? Thanx for your help.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date Formula

Maybe you have a space character in A1.

You could select A1 and hit the delete key on the keyboard to clear the contents
of that cell.

Or you could change your formula:
=if(trim(a1)="","< Input",Today())

If this doesn't help, make sure that you have calculation turned to automatic.
In xl2003 menus, it's under:
Tools|Options|Calculation tab

===
Just an aside, if A1 has something in it, your formula will return the current
date -- each day it'll change.

If you want that date to be static, you'll need a different approach.

Take a look at JE McGimpsey's site:
http://www.mcgimpsey.com/excel/timestamp.html
for a macro approach.

Grumpy wrote:

Please Help. I have two cells, A1, B1. In B1 I want the current date if A1
is populated. If A1 is not populated I would like the message "< Input" in
B2.

Here is my formula in B1: =IF(A1="","< Input",TODAY())

It should be so simple, but I can't seem to make it work. Can anyone tell
me what is wrong?? Thanx for your help.


--

Dave Peterson
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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM


All times are GMT +1. The time now is 08:25 PM.

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

About Us

"It's about Microsoft Excel"