#1   Report Post  
Nigel
 
Posts: n/a
Default format date in excel

hi,

Can you format a date in a formula to recognise the date only? i have a
column with the day number only and need to calculate the figure directly to
the right as this day number reaches todays date.
example:

day cost to date
12 £60.00

if todays date was 11th september, to date would be empty but if todays date
was 12th september, to date would have the figure £60.00 in it.


thanks in advance,

N.S.
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

in the To Date column - assume it is C2

=(if(day(today())<=A2,B2,"")

"Nigel" wrote:

hi,

Can you format a date in a formula to recognise the date only? i have a
column with the day number only and need to calculate the figure directly to
the right as this day number reaches todays date.
example:

day cost to date
12 £60.00

if todays date was 11th september, to date would be empty but if todays date
was 12th september, to date would have the figure £60.00 in it.


thanks in advance,

N.S.

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

oops - that was backwards:

=(if(day(today())=A2,B2,"")

"Duke Carey" wrote:

in the To Date column - assume it is C2

=(if(day(today())<=A2,B2,"")

"Nigel" wrote:

hi,

Can you format a date in a formula to recognise the date only? i have a
column with the day number only and need to calculate the figure directly to
the right as this day number reaches todays date.
example:

day cost to date
12 £60.00

if todays date was 11th september, to date would be empty but if todays date
was 12th september, to date would have the figure £60.00 in it.


thanks in advance,

N.S.

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
date format in Excel 2003 Chunt Excel Discussion (Misc queries) 1 September 15th 05 01:09 AM
Format date in excel 2000 like '31st January 2005' Malcolm Agingwell Excel Discussion (Misc queries) 2 July 13th 05 11:21 AM
Format date in excel 2000 like '31st January 2005' Malcolm Agingwell Excel Discussion (Misc queries) 1 June 29th 05 02:34 PM
Format date in excel 2000 like '31st January 2005' Malcolm Agingwell Excel Discussion (Misc queries) 1 June 29th 05 11:01 AM
Excel Query Wizard Date Format aldsv Excel Discussion (Misc queries) 1 May 31st 05 12:44 PM


All times are GMT +1. The time now is 08:07 AM.

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"