Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default copying a date into a text string

I have a date in cell b6 (format is custom m/d/yyyy) input value is 08/23/08

In column E18, I have a formula "b6-5" (format is custom m/d;@), the purpose
of this is that the b6 date is a week ending date and e18 is the actual day
of the week.
Output value is 08/18

In cell a125, I am trying to get 08/18 to display as part of a sentence
using the following string "="that during the payroll period commencing on
"&$E$18", but what I get is this

that during the payroll period commencing on 39606

What I would like to see is this

that during the payroll period commencing on 08/18

I know that there is something wrong with my string, but I am not sure how
to correct it, any help would be greatly appreciated.

Thank you







  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copying a date into a text string

Just use TEXT to format it likewise
In A125:
="that during the payroll period commencing on "&TEXT($E$18,"m/d;@")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,800 Files:359 Subscribers:54
xdemechanik
---
"Looking for help" wrote:
I have a date in cell b6 (format is custom m/d/yyyy) input value is 08/23/08

In column E18, I have a formula "b6-5" (format is custom m/d;@), the purpose
of this is that the b6 date is a week ending date and e18 is the actual day
of the week.
Output value is 08/18

In cell a125, I am trying to get 08/18 to display as part of a sentence
using the following string "="that during the payroll period commencing on
"&$E$18", but what I get is this

that during the payroll period commencing on 39606

What I would like to see is this

that during the payroll period commencing on 08/18

I know that there is something wrong with my string, but I am not sure how
to correct it, any help would be greatly appreciated.

Thank you







  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default copying a date into a text string

Thank you for your help, it worked perfectly!

"Max" wrote:

Just use TEXT to format it likewise
In A125:
="that during the payroll period commencing on "&TEXT($E$18,"m/d;@")
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,800 Files:359 Subscribers:54
xdemechanik
---
"Looking for help" wrote:
I have a date in cell b6 (format is custom m/d/yyyy) input value is 08/23/08

In column E18, I have a formula "b6-5" (format is custom m/d;@), the purpose
of this is that the b6 date is a week ending date and e18 is the actual day
of the week.
Output value is 08/18

In cell a125, I am trying to get 08/18 to display as part of a sentence
using the following string "="that during the payroll period commencing on
"&$E$18", but what I get is this

that during the payroll period commencing on 39606

What I would like to see is this

that during the payroll period commencing on 08/18

I know that there is something wrong with my string, but I am not sure how
to correct it, any help would be greatly appreciated.

Thank you







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copying a date into a text string

Welcome
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,700 Files:359 Subscribers:55
xdemechanik
---
"Looking for help" wrote in
message ...
Thank you for your help, it worked perfectly!



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
Date in Text String AMH Excel Worksheet Functions 1 June 30th 08 03:39 PM
Date format in a text string osbornauto Excel Worksheet Functions 15 July 3rd 07 09:06 PM
Transpose a text string while copying adjacent column data to new willc Excel Worksheet Functions 5 May 31st 07 08:20 PM
Convert text string to date AK Excel Worksheet Functions 1 February 1st 06 06:27 PM
How do I convert a text string into a date? JJMCDD02 Excel Worksheet Functions 4 November 25th 05 12:35 PM


All times are GMT +1. The time now is 12:13 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"