Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Formatting a date as yyyymmdd + ##

I have the date 7/21/07(seniority date) formatted as yyyymmdd = 20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which would
further need to be able to be sorted.

Thanks,

Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Formatting a date as yyyymmdd + ##

if you want it as text
=text(H2,"yyyymmdd")&I2

"Steve" wrote:

I have the date 7/21/07(seniority date) formatted as yyyymmdd = 20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which would
further need to be able to be sorted.

Thanks,

Steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Formatting a date as yyyymmdd + ##

Almost perfect.
I have the I column formatted as 00, so that 7 =07, 13=13, etc.
The below formula is producing 2007072113 correctly when 13 is in I2, but
the incorrect 200707217 when 07 is in the I column. I need the entire # as 10
characters. ( 2007072107) - with the zero in front of the last 7.

Thanks again,

"bj" wrote:

if you want it as text
=text(H2,"yyyymmdd")&I2

"Steve" wrote:

I have the date 7/21/07(seniority date) formatted as yyyymmdd = 20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which would
further need to be able to be sorted.

Thanks,

Steve

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Formatting a date as yyyymmdd + ##

So do it in exactly the same way as you did for the date. If the formatting
of cell I2 is 00, then use that format in a TEXT function for I2, just like
you used the format of H2 in the text function for H2.
Hence:
=TEXT(H2,"yyyymmdd")&TEXT(I2,"00")
--
David Biddulph
"Steve" wrote in message
...
Almost perfect.
I have the I column formatted as 00, so that 7 =07, 13=13, etc.
The below formula is producing 2007072113 correctly when 13 is in I2, but
the incorrect 200707217 when 07 is in the I column. I need the entire # as
10
characters. ( 2007072107) - with the zero in front of the last 7.

Thanks again,

"bj" wrote:

if you want it as text
=text(H2,"yyyymmdd")&I2

"Steve" wrote:

I have the date 7/21/07(seniority date) formatted as yyyymmdd =
20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority
numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which
would
further need to be able to be sorted.

Thanks,

Steve



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Formatting a date as yyyymmdd + ##

Now it's perfect. Thanks for the help.

Steve

"David Biddulph" wrote:

So do it in exactly the same way as you did for the date. If the formatting
of cell I2 is 00, then use that format in a TEXT function for I2, just like
you used the format of H2 in the text function for H2.
Hence:
=TEXT(H2,"yyyymmdd")&TEXT(I2,"00")
--
David Biddulph
"Steve" wrote in message
...
Almost perfect.
I have the I column formatted as 00, so that 7 =07, 13=13, etc.
The below formula is producing 2007072113 correctly when 13 is in I2, but
the incorrect 200707217 when 07 is in the I column. I need the entire # as
10
characters. ( 2007072107) - with the zero in front of the last 7.

Thanks again,

"bj" wrote:

if you want it as text
=text(H2,"yyyymmdd")&I2

"Steve" wrote:

I have the date 7/21/07(seniority date) formatted as yyyymmdd =
20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority
numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which
would
further need to be able to be sorted.

Thanks,

Steve






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 329
Default Formatting a date as yyyymmdd + ##

Hi Steve,

Here's a way that keeps the result as a numeric:
=VALUE(TEXT(H2,"yyyymmdd"))*100+I2

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Steve" wrote in message ...
I have the date 7/21/07(seniority date) formatted as yyyymmdd = 20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which would
further need to be able to be sorted.

Thanks,

Steve

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Formatting a date as yyyymmdd + ##

Maybe even more perfect, keeping as numeric for sorting.

Much thanks,

Steve

"macropod" wrote:

Hi Steve,

Here's a way that keeps the result as a numeric:
=VALUE(TEXT(H2,"yyyymmdd"))*100+I2

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"Steve" wrote in message ...
I have the date 7/21/07(seniority date) formatted as yyyymmdd = 20070721
In the next column I have other numbers , e.g. 1 thru 13 ( seniority numbers)
I need in the 3rd column the seniority date 20070721 and the seniority
number 13 combined to = 2007072113

Formula =H2&I2 is producing 3928413

and

I can't figure out to get that formatting to produce 207072113, which would
further need to be able to be sorted.

Thanks,

Steve


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
convert date (YYYYMMDD) to weeknumber mark paul Excel Worksheet Functions 1 February 27th 07 12:05 PM
I need a yyyymmdd date format with no dashes EXCEL HELP PLEASE Excel Discussion (Misc queries) 2 December 21st 06 08:19 PM
Is there an Excel date format as follows: yyyymmdd? N Excel Discussion (Misc queries) 3 June 22nd 06 09:44 PM
How do you change a date that is in the yyyymmdd format to mmddyy Norton Excel Discussion (Misc queries) 2 March 8th 06 03:15 PM
basically want to go from mm/dd/yyyy to yyyymmdd clegge Excel Worksheet Functions 2 January 10th 06 04:41 PM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"