Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to align multiple files by rowdates

I have 3 workbooks open and each has dates in column A with other
information in the other columns. The problem is each date is used several
times. I would like to be able to combine the 3 files and have the first
use of each date line up across. Right now, I have all 3 open and arranged
vertically. I am aligning the 2nd with the 3rd file first, th-n the first
with the 2nd. For instance, A918 in the 2nd is 2004-08-19, I then look over
in the 3rd and see that 2004-08-09 there is in A924, then I go back to the
2nd, highlight the row with A918 and insert 5 rows (one less than the
difference) - which makes the first instance of 2004-08-19 line up between
the 2nd and 3rd files. I'm sure this can be handled with a Macro, but I
don't know how to set it up. There are over 7000 columns, so it would
REALLY help! Thanks for any help!

LM


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Macro to align multiple files by rowdates

2004-08-19 is this stored as a date serial or is it stored as a text
string. If you formatted the cell as general does it appear as: 38218 or as
2004-08-19 and is this true for all the dates in all the workbooks.

Are the sheets the first sheet in each of the workbooks?

Assume the dates are sorted by date in ascending order?

multiple rows with the same dates would stay contiguous?

--
Regards,
Tom Ogilvy




"Larry M" wrote:

I have 3 workbooks open and each has dates in column A with other
information in the other columns. The problem is each date is used several
times. I would like to be able to combine the 3 files and have the first
use of each date line up across. Right now, I have all 3 open and arranged
vertically. I am aligning the 2nd with the 3rd file first, th-n the first
with the 2nd. For instance, A918 in the 2nd is 2004-08-19, I then look over
in the 3rd and see that 2004-08-09 there is in A924, then I go back to the
2nd, highlight the row with A918 and insert 5 rows (one less than the
difference) - which makes the first instance of 2004-08-19 line up between
the 2nd and 3rd files. I'm sure this can be handled with a Macro, but I
don't know how to set it up. There are over 7000 columns, so it would
REALLY help! Thanks for any help!

LM



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Macro to align multiple files by rowdates

2004-08-19 is stored as Number/General (this info. was exported from an
Oracle database into excel for me and was shown as 20040819 - I custom
formatted it to add the "-"). All 3 workbooks are the same format.

Each sheet is the first and only one in each workbook.

The "dates" are sorted in ascending order.

Multiple rows with the same dates are contiguous.

Thanks for trying to help!
"Tom Ogilvy" wrote in message
...
2004-08-19 is this stored as a date serial or is it stored as a text
string. If you formatted the cell as general does it appear as: 38218 or
as
2004-08-19 and is this true for all the dates in all the workbooks.

Are the sheets the first sheet in each of the workbooks?

Assume the dates are sorted by date in ascending order?

multiple rows with the same dates would stay contiguous?

--
Regards,
Tom Ogilvy




"Larry M" wrote:

I have 3 workbooks open and each has dates in column A with other
information in the other columns. The problem is each date is used
several
times. I would like to be able to combine the 3 files and have the
first
use of each date line up across. Right now, I have all 3 open and
arranged
vertically. I am aligning the 2nd with the 3rd file first, th-n the first
with the 2nd. For instance, A918 in the 2nd is 2004-08-19, I then look
over
in the 3rd and see that 2004-08-09 there is in A924, then I go back to
the
2nd, highlight the row with A918 and insert 5 rows (one less than the
difference) - which makes the first instance of 2004-08-19 line up
between
the 2nd and 3rd files. I'm sure this can be handled with a Macro, but I
don't know how to set it up. There are over 7000 columns, so it would
REALLY help! Thanks for any help!

LM





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
Macro: Filter Multiple header then extract to Multiple Files [email protected] Excel Discussion (Misc queries) 9 December 8th 06 10:44 PM
Align information in multiple sheets L Martin Excel Discussion (Misc queries) 7 August 7th 06 07:44 PM
Macro to align & compare multiple columns with several rows Manav Ram via OfficeKB.com Excel Programming 4 March 7th 05 08:35 PM
Macro to align and compare multiple rows and columns Manav Ram via OfficeKB.com New Users to Excel 1 March 5th 05 12:38 AM
Import multiple files macro can't find files Steven Rosenberg Excel Programming 1 August 7th 03 01:47 AM


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