#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Addition of Days

I've have a formula that calculates, from a date entry, the number of
days elapsed in that month. E.g. An entry of "20/12/09" will return "20"

With this NG's assistance, I achieve this with =R6-DATE(MONTH(R6),1,0)
in cell T6.

Q. How do I convert the result in T6 to a numeric. I want to add the
days remaining in the month (in cell T6) to a number elsewhere?

At the moment I'm adding a date serial number to a numeric giving a
stupid result.

Tks - Ricky
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Addition of Days

Use this instead

=DAY(R6)

and format as general

--
__________________________________
HTH

Bob

"Ricky" wrote in message
...
I've have a formula that calculates, from a date entry, the number of days
elapsed in that month. E.g. An entry of "20/12/09" will return "20"

With this NG's assistance, I achieve this with =R6-DATE(MONTH(R6),1,0) in
cell T6.

Q. How do I convert the result in T6 to a numeric. I want to add the days
remaining in the month (in cell T6) to a number elsewhere?

At the moment I'm adding a date serial number to a numeric giving a stupid
result.

Tks - Ricky



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Addition of Days

Great! Thanks Bob.

Ricky

Bob Phillips wrote:
Use this instead

=DAY(R6)

and format as general

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Addition of Days

Date serial numbers are numeric, so you can add one to the other, but I
think you must have misread the advice given on this NG.
Your formula would give 20/12/1997, or 35784 as a number, as your DATE
function is giving 12 years (the value of MONTH(R6) in the year field of the
DATE function) as the amount to subtract.

The formula you would need is =R6-DATE(YEAR(R6),MONTH(R6),0)
If you format that as General or Number it will show 20.

The DAY() suggestion in another reply is of course easier.
--
David Biddulph

"Ricky" wrote in message
...
I've have a formula that calculates, from a date entry, the number of days
elapsed in that month. E.g. An entry of "20/12/09" will return "20"

With this NG's assistance, I achieve this with =R6-DATE(MONTH(R6),1,0) in
cell T6.

Q. How do I convert the result in T6 to a numeric. I want to add the days
remaining in the month (in cell T6) to a number elsewhere?

At the moment I'm adding a date serial number to a numeric giving a stupid
result.

Tks - Ricky



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
Employee days worked (-Holidays, -weekends, Snow Days, etc) Denise Excel Discussion (Misc queries) 2 December 31st 08 04:37 PM
Calc days between two dates and exclude leap year days scoz Excel Worksheet Functions 5 November 23rd 07 03:58 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
COUNT how many ROWS ago out of 10 days that the highest high in 10 days was made rhhince Excel Worksheet Functions 1 January 14th 07 09:56 PM
row addition Threshold Excel Worksheet Functions 3 March 17th 05 08:08 PM


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