Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sally
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

I am using an "if" function & when it is true I want to return todays date,
all I can get it to return is =today(), please can someone suggest anything
Thanks
Sally
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

I presume you have something like:

=IF(condition,TODAY(),"")

Format the cell in date format.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sally
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

my formula lokks like below;
=if(condition,""," ","=today()")
if the cell is empty return blank if not return todays date, when using the
above formula it returns =today() instead of the date....
--
Thanks
Sally


"Pete_UK" wrote:

I presume you have something like:

=IF(condition,TODAY(),"")

Format the cell in date format.

Hope this helps.

Pete


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

Sally,

by putting =today() in quotes, you are turning this into text - the
quotes are not need, neither is the equals sign. Also, you have too
many parameters. Try something like:

=IF(A1="","",TODAY())

which means if A1 is blank then return a blank, otherwise return
today's date.

Hope this helps.

Pete

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

Hi

It must be:
=if(condition,""," ",today())


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"Sally" wrote in message
...
my formula lokks like below;
=if(condition,""," ","=today()")
if the cell is empty return blank if not return todays date, when using
the
above formula it returns =today() instead of the date....
--
Thanks
Sally


"Pete_UK" wrote:

I presume you have something like:

=IF(condition,TODAY(),"")

Format the cell in date format.

Hope this helps.

Pete






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default how can I return todays date (today() ) in an if function


Should just be something like

=IF(A110,TODAY(),"")

format as date


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=539806

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default how can I return todays date (today() ) in an if function

Some variation of this might be what you want. With it, the date will not
change tomorrow when you open the file........

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("a1").Value = "True" Then
ActiveCell.FormulaR1C1 = Date & " " & Time
End If
End Sub


Vaya con Dios,
Chuck, CABGx3



"Sally" wrote:

I am using an "if" function & when it is true I want to return todays date,
all I can get it to return is =today(), please can someone suggest anything
Thanks
Sally

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
Can a function return a Null (blank ) value? Maybe a custom functi colin_e Excel Worksheet Functions 2 March 16th 06 02:36 PM
Date formula and if function alane Excel Worksheet Functions 4 January 28th 06 01:11 AM
Return a specified date when it falls within a range.... Nokose451 Excel Discussion (Misc queries) 1 January 16th 06 10:06 PM
Match Last Occurrence of two numbers and Return Date Sam via OfficeKB.com Excel Worksheet Functions 6 April 5th 05 12:40 PM
Return a date 6 months from a date in another cell Qaspec Excel Worksheet Functions 1 January 21st 05 04:59 PM


All times are GMT +1. The time now is 02:52 AM.

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"