Numbers to date format

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi all,

I have a list of dates in number formate, I need a formula to view these dates in a normal date formate, can anybody help me to do that.

Date Number Actual Date Explaination
dd/mm/yyyy

109152 01/06/2009 109 = year 2009, 152 number of days
110031 31/01/2010
111365 31/12/2011

Thanks in advance
 
Hi

Similar to Marcelos's

=DATE(1900+LEFT(A1,3),1,RIGHT(A1,3))


When I am apply left digit formula, the result is coming with date formate, but I need only numaric 2 digits.

In cell A1
111004

Formula in B1
=DATE(1900+LEFT(A1,3),1,1)+RIGHT(A1,3)-1

Result in B1
04/01/2011

Formula in C1
=left(B1,2)

Result comming in C1
40

Required result
04

B1 is a date, not a string. If what you want is the day use:

=DAY(B1)
 
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
When I am apply left digit formula, the result is coming with date formate, but I need only numaric 2 digits.

In cell A1
111004

Formula in B1
=DATE(1900+LEFT(A1,3),1,1)+RIGHT(A1,3)-1

Result in B1
04/01/2011

Formula in C1
=left(B1,2)

Result comming in C1
40

Required result
04

Hi,

You cannot use LEFT to get the Day of a date, because 04/01/2011 is only a friendly viewing of the number 40547, the Serial Number for this date.

Excel, in fact, works with 40547, so when you use LEFT(B1,2) it returns 40.

To get the day of B1 try this in C1
=DAY(B1)

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,774
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top