Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2008

Tip: Looking for answers? Try searching our database.

Convert date to number

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
@Homeonthecouch - 19 Apr 2008 09:23 GMT
I am wanting to convert date using the today() function to the date only for a sum.
e.g. A1 =Today()
B1= 300
C1= B1/A1

The cell that divides would be where the date conversion is made.

Hope that makes sense

Any help is appreciated

Andrew
Niek Otten - 19 Apr 2008 09:36 GMT
Hi Andrew,

The date is a number already. Just format A1 as General and you'll see the date serial number.
What do you want to achieve? If you need the date number without the year:
=A1-DATE(YEAR(A1),1,1)+1, Format as General or number (Excel will format it automatically as date, which is not what you need)

If you just want to show the date without a year, format it Custom as mm dd or something similar
Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

|I am wanting to convert date using the today() function to the date only for a sum.
| e.g. A1 =Today()
[quoted text clipped - 8 lines]
|
| Andrew
Rick Rothstein (MVP - VB) - 19 Apr 2008 10:26 GMT
I think this should do what you want...

C1:     =B1/N(A1)

Rick

>I am wanting to convert date using the today() function to the date only
>for a sum.
[quoted text clipped - 9 lines]
>
> Andrew
Martin Fishlock - 19 Apr 2008 16:09 GMT
Hi Couchie,

Today() returns a number that is x number of days from 1/1/1900 and then
format it as a date. If you set it as general format you will see the number
for today.

So if you have today() on the April 19th, 2008 the number is 39557.

So I'm not sure what you want with 300/39557 or a similar number.

Therefore I'm not sure what you wamt to do.

Please explain further.
Signature

Hope this helps
Martin Fishlock, www.nyfconsultants.com, Bangkok, Thailand
Please do not forget to rate this reply.

> I am wanting to convert date using the today() function to the date only for a sum.
> e.g. A1 =Today()
[quoted text clipped - 8 lines]
>
> Andrew
@Homeonthecouch - 19 Apr 2008 17:20 GMT
Ah is see I haven't explained this clearly.
If today = 10/4/2008 I want the value of A1 to just equal the day 19.
Then the sum in cell C1 would be 300/19 or tomorrow it would be 300/20

Hope this explains it a little clearer.

Andrew

I am wanting to convert date using the today() function to the date only for a sum.
e.g. A1 =Today()
B1= 300
C1= B1/A1

The cell that divides would be where the date conversion is made.

Hope that makes sense

Any help is appreciated

Andrew
Rick Rothstein (MVP - VB) - 19 Apr 2008 17:46 GMT
I'm assuming your saying if 10/4/2008 then the day is 19 was a mistyping of
the number 10. Try putting this in C1...

C1:      =B1/DAY(A1)

Rick

> Ah is see I haven't explained this clearly.
> If today = 10/4/2008 I want the value of A1 to just equal the day 19.
[quoted text clipped - 17 lines]
>
> Andrew
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.