# convert number to date format

#### Phill032

##### New Member
Hi Guys,

Hopefully someone can help convert the below number into a date format.
18222
This is supposed to correspond to the 20 Nov 2017.
The full data extracted from the report is all in one single cell and each number represents a date seperated by a full stop. I just need the last date. example below

18167. 18167. 18174. 18202. 18213. 18222

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### FDibbins

##### Well-known Member
OK I must be missing something here, how on earth does 18222 correspond to 20 11 2017?

#### Phill032

##### New Member
If i knew that i wouldn't be here
Each number represents the date of a price change on the internet of stocked items.
This is the data that my reports pull out, was hoping someone would have seen something similar and have a answer..

#### FDibbins

##### Well-known Member
I get that you need an answer, but that is in no date format that I am familiar with. Excel treats dates as a number of days from 0/1/1900, so todays date of 11/26/2017 (US format) is actually 43065

So, with that said, do you have any idea what 18222 might represent? For instance, 18222 days ago was Saturday, January 06, 1968

#### Phill032

##### New Member

Yep you are right into it, it is days since the 01/01/68... just had this confirmed from our service provider.
So it is easy to work with now that i know what the numbers relate too.

#### Dave Patton

##### Well-known Member

Excel 2010
AB
131-Dec-6724837
2
31822220-Nov-17
41822321-Nov-17
5
6a
Cell Formulas
RangeFormula
B1=A1
B3=A3+\$B\$1
B4=A4+\$B\$1

If the date sequence starts at Dec 31 1967 (general format 24837),

adding 24837 to the 18222 will yield the specified date.

#### FDibbins

##### Well-known Member

OK that makes sense then. Happy to help and thanks for the feedback

#### Marcelo Branco

##### MrExcel MVP
Trying to guess
It seems that the in this system the number 1 corresponds to 1 Jan 1968.
So to get the Excel corresponded date all you have to do is add 24837 (corresponds to 31 Dec 1967)

Something like

 A​ B​ 1​ Starting Date​ 31/12/1967​ 2​ 3​ Number​ Excel Date​ 4​ 18167​ 26/09/2017​ 5​ 18174​ 03/10/2017​ 6​ 18202​ 31/10/2017​ 7​ 18213​ 11/11/2017​ 8​ 18222​ 20/11/2017​

Formula in A4 copied down
=A4+B\$1

A shot in the dark

M.

#### Phill032

##### New Member
Nice, not the way i was going to go about it but i think this would be better than my way

thanks again

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,168,184
Messages
5,857,830
Members
431,900
Latest member

### 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.

### Which adblocker are you using?

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

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