Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Date from imported file

I have an imported file. The date of the file in D4 is 02/08/2007 -
02/15/2007. I am matching rows to each date, and to capture the beginning
date, in Q4 I have a formula =LEFT(D4,10). The result is 02/08/2007. Q1 =
Q4 (but formatted to drop the leading 0's). Here is the problem. When I put
in the formula =IF($B18=$Q1,$K18,"") I get a blank. But - if I TYPE in
2/8/2007 in Q1, I get the contents of B18. I have copied Q1 and past special
/ values - still get a blank.

Any ideas?

CaroleO

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Date from imported file

I think you havve two problems

1) to get leading zeroes in date youcan uuse a custom format in the format
Menu under numbers custom. Creatte a custom format mm/dd/yyyy. You are only
get one 'm' not two 'mm'. You can also do this with the Text() function and
put the custom format into this function

2) The second problem you are having is mixing a string format containng the
time and a time format. You cannot take a time formatt and use the string
function Left().

"CaroleO" wrote:

I have an imported file. The date of the file in D4 is 02/08/2007 -
02/15/2007. I am matching rows to each date, and to capture the beginning
date, in Q4 I have a formula =LEFT(D4,10). The result is 02/08/2007. Q1 =
Q4 (but formatted to drop the leading 0's). Here is the problem. When I put
in the formula =IF($B18=$Q1,$K18,"") I get a blank. But - if I TYPE in
2/8/2007 in Q1, I get the contents of B18. I have copied Q1 and past special
/ values - still get a blank.

Any ideas?

CaroleO

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
dealing with csv imported file in excel [email protected] Excel Discussion (Misc queries) 2 July 25th 06 12:12 PM
imported doc from pdf file, want to seperate text & date in cells Christian Excel Discussion (Misc queries) 2 February 2nd 06 08:13 PM
CSV file Imported to Excel JMay Excel Discussion (Misc queries) 3 December 7th 05 04:21 PM
can I display the file name of the imported text file in another c John-G Excel Discussion (Misc queries) 0 May 13th 05 03:38 PM
Macros disappear after a file is imported Brent E Excel Discussion (Misc queries) 1 December 18th 04 12:25 AM


All times are GMT +1. The time now is 12:36 PM.

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

About Us

"It's about Microsoft Excel"