Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default Formatting Date Cell with No Values

Im using the TransferSpreadsheet Action in my access macro db to
automatically transfer data to an Excel spreadsheet. The data gets
transferred to the worksheet €śqryRequirement _Status_NotComp_b€ť (Sheet 1).
In my adjacent worksheet €śNot Completed Requirement€ť (Sheet 2), have
formulated cells to copy data from Sheet 1. One column heading is €śDate
Completed€ť. The following formula is in the date cell of Sheet 2:
=+qryRequirement_Status_NotComp_b!F2; formatted as date fields. Excel 2003

In Sheet 1, not all the cells under the DateCompleted contain values. When
the data gets copied to Sheet 2, those date values that are empty in Sheet 1
result in a 0 (zero) in Sheet 2; resulting in 1/0/00. I want those cells
with no values to remain empty in Sheet 2. I havent used any coding in
Excel, and was wondering if there is a way to get this accomplished. Any
suggestions would be helpful.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Formatting Date Cell with No Values

One way would be to change your reference formula to include an IF statement
to trap for the blank cells on the first sheet. For instance:

=IF(qryRequirement_Status_NotComp_b!F2="","",qryRe quirement_Status_NotComp_b!F2)

(I'm not sure why you had a "+" sin in front of your reference, assumed it
was an error).

Hope that helps.

"Curtis" wrote:

Im using the TransferSpreadsheet Action in my access macro db to
automatically transfer data to an Excel spreadsheet. The data gets
transferred to the worksheet €śqryRequirement _Status_NotComp_b€ť (Sheet 1).
In my adjacent worksheet €śNot Completed Requirement€ť (Sheet 2), have
formulated cells to copy data from Sheet 1. One column heading is €śDate
Completed€ť. The following formula is in the date cell of Sheet 2:
=+qryRequirement_Status_NotComp_b!F2; formatted as date fields. Excel 2003

In Sheet 1, not all the cells under the DateCompleted contain values. When
the data gets copied to Sheet 2, those date values that are empty in Sheet 1
result in a 0 (zero) in Sheet 2; resulting in 1/0/00. I want those cells
with no values to remain empty in Sheet 2. I havent used any coding in
Excel, and was wondering if there is a way to get this accomplished. Any
suggestions would be helpful.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 181
Default Formatting Date Cell with No Values

Yes, your post did exactly what I wanted. I copied this formula into the
Date Completed cell of Sheet 2 and only blank cells remained for those blank
cells in Sheet 1. Thanks for your professional reponse! (the + symbol was
there to "copy" the contents of the same cell in Sheet 2)....

"andy62" wrote:

One way would be to change your reference formula to include an IF statement
to trap for the blank cells on the first sheet. For instance:

=IF(qryRequirement_Status_NotComp_b!F2="","",qryRe quirement_Status_NotComp_b!F2)

(I'm not sure why you had a "+" sin in front of your reference, assumed it
was an error).

Hope that helps.

"Curtis" wrote:

Im using the TransferSpreadsheet Action in my access macro db to
automatically transfer data to an Excel spreadsheet. The data gets
transferred to the worksheet €śqryRequirement _Status_NotComp_b€ť (Sheet 1).
In my adjacent worksheet €śNot Completed Requirement€ť (Sheet 2), have
formulated cells to copy data from Sheet 1. One column heading is €śDate
Completed€ť. The following formula is in the date cell of Sheet 2:
=+qryRequirement_Status_NotComp_b!F2; formatted as date fields. Excel 2003

In Sheet 1, not all the cells under the DateCompleted contain values. When
the data gets copied to Sheet 2, those date values that are empty in Sheet 1
result in a 0 (zero) in Sheet 2; resulting in 1/0/00. I want those cells
with no values to remain empty in Sheet 2. I havent used any coding in
Excel, and was wondering if there is a way to get this accomplished. Any
suggestions would be helpful.

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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
apply conditional formatting to negative cell values dona Excel Discussion (Misc queries) 2 March 10th 06 12:04 PM
Can I sort values only & leave orginal cell formatting? Alyssa Excel Discussion (Misc queries) 1 March 8th 06 04:26 AM
formatting date-time values in macro scw-tzg Excel Worksheet Functions 2 November 14th 05 09:21 PM
Formatting a date/time cell Frank D. Nicodem, Jr. Excel Discussion (Misc queries) 1 October 4th 05 07:48 PM


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