A
Alan in NJ
Any help on the following would be appreciated:
Each week I download a table with three columns and numerous rows (generally
about 300). The first column contains the name of a public company each of
which is unique (i.e., there are about 300 companies each week and there are
no duplicates). The second column contains the one of five weekdays on
which they report their earnings: (M, T, W, TH or F). The third column
contains one of three time-of-day values: AM, PM or TBD ("to be
determined").
I need to write a macro that will "look at" each of the above rows and
assign each company to a new table with 15 columns (for each of the 5 days
and 3 times of day) and two rows (a heading row indicating the day and time,
e.g., "MONDAY-AM, MONDAY-PM, MONDAY-TBD, ETC.) simply place the names of
each of the companies in the proper column (i.e., all of the companies that
report on Monday AM will be in the same column).
I know I can sort, and then merge cells, and then cut-and-paste, but that is
very time consuming. I would like to automate it.
Thanks to all for any advice.
AlanS
Each week I download a table with three columns and numerous rows (generally
about 300). The first column contains the name of a public company each of
which is unique (i.e., there are about 300 companies each week and there are
no duplicates). The second column contains the one of five weekdays on
which they report their earnings: (M, T, W, TH or F). The third column
contains one of three time-of-day values: AM, PM or TBD ("to be
determined").
I need to write a macro that will "look at" each of the above rows and
assign each company to a new table with 15 columns (for each of the 5 days
and 3 times of day) and two rows (a heading row indicating the day and time,
e.g., "MONDAY-AM, MONDAY-PM, MONDAY-TBD, ETC.) simply place the names of
each of the companies in the proper column (i.e., all of the companies that
report on Monday AM will be in the same column).
I know I can sort, and then merge cells, and then cut-and-paste, but that is
very time consuming. I would like to automate it.
Thanks to all for any advice.
AlanS