convert number to date format

Phill032

New Member
Joined
Nov 9, 2016
Messages
41
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
Joined
Feb 16, 2013
Messages
6,723
OK I must be missing something here, how on earth does 18222 correspond to 20 11 2017?
 

Phill032

New Member
Joined
Nov 9, 2016
Messages
41
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
Joined
Feb 16, 2013
Messages
6,723
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
Joined
Nov 9, 2016
Messages
41

ADVERTISEMENT

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.

Thanks for your help
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
5,254
Office Version
  1. 365
  2. 2010
Platform
  1. Windows

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
Joined
Feb 16, 2013
Messages
6,723

ADVERTISEMENT

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

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,082
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Trying to guess :confused:
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
Joined
Nov 9, 2016
Messages
41
Nice, not the way i was going to go about it but i think this would be better than my way

thanks again
 
Master Excel Bundle

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.

Forum statistics

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

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
Top