PC Review


Reply
Thread Tools Rate Thread

Bring data from header fields to the columns

 
 
AG
Guest
Posts: n/a
 
      16th Jul 2009
Hi all,
I need help on automating the following:
everyday I get as EXCEL report in the format as described below
title1: abc
title2: xyz
1 Name1 Id1 Qty1 Cust1 Diff1
2 Name2 Id2 Qty2 Cust2 Diff2
3 Name3 Id3 Qty3 Cust3 Diff3
...
...
title1: pqr
title2: def
1 Name4 Id4 Qty4 Cust4 Diff4
2 Name5 Id5 Qty5 Cust5 Diff5
the number of records under each title1 and title2 vary each day.
I would like to have the output as below:
1 abc. xyz. Name1 Id1 Qty1 Cust1 Diff1
2 abc. xyz. Name2 Id2 Qty2 Cust2 Diff2
3 abc. xyz. Name3 Id3 Qty3 Cust3 Diff3
4 pqr. def. Name4 Id4 Qty4 Cust4 Diff4
5 pqr. def. Name5 Id5 Qty5 Cust5 Diff5
that is I want the output to be nicely arranged in the columns with
the title1 and title2 info also captured in the columns as opposed to
as headers. Again the length of the report varies and also the number
of records within each title1 & title2.
Can someone please help me with a code to automate this task? Thanks
a
lot in advance for looking into this.
Regards,
ag
 
Reply With Quote
 
 
 
 
AG
Guest
Posts: n/a
 
      17th Jul 2009
Hi Guys,
I'll really appreciate any help on this. Thanks.

 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      17th Jul 2009
what is the question?

"AG" <(E-Mail Removed)> wrote in message
news:11a36be5-aabd-4344-896b-(E-Mail Removed)...
> Hi Guys,
> I'll really appreciate any help on this. Thanks.
>

 
Reply With Quote
 
AG
Guest
Posts: n/a
 
      17th Jul 2009
Hi Patrick,

The question is ... that I want to write a macro to make my data in an
excel report from the below:

title1: abc
title2: xyz
1 Name1 Id1 Qty1 Cust1 Diff1
2 Name2 Id2 Qty2 Cust2 Diff2
3 Name3 Id3 Qty3 Cust3 Diff3
...
...
title1: pqr
title2: def
1 Name4 Id4 Qty4 Cust4 Diff4
2 Name5 Id5 Qty5 Cust5 Diff5

To the output format -

1 abc. xyz. Name1 Id1 Qty1 Cust1 Diff1
2 abc. xyz. Name2 Id2 Qty2 Cust2 Diff2
3 abc. xyz. Name3 Id3 Qty3 Cust3 Diff3
4 pqr. def. Name4 Id4 Qty4 Cust4 Diff4
5 pqr. def. Name5 Id5 Qty5 Cust5 Diff5

That is, I need to bring the title1 and title2 values also as one
column as opposed to it being in the header. Also, note that the
number of records within each title vary on daily reports and also the
number of titles appearing on the report also vary.

Can you please help?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print one header over several columns of data column title print Microsoft Excel Misc 1 28th May 2010 01:30 AM
Bring fields from header to columns AG Microsoft Excel Programming 3 20th Jul 2009 04:31 AM
how can I convert data with fields in rows to fields as columns =?Utf-8?B?UGl5dXNoQWc=?= Microsoft Excel Misc 3 2nd Jul 2007 05:46 AM
compare two columns data and bring them to another work sheet =?Utf-8?B?RVhDRUwgVVNFUg==?= Microsoft Excel Misc 1 14th Feb 2007 08:42 PM
Populate fields in Form Header based on header fields in startup f =?Utf-8?B?UGF0IERvb2xz?= Microsoft Access Forms 0 7th Jan 2005 03:19 PM


Features
 

Advertising
 

Newsgroups
 


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