LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Bring data from header fields to the columns

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?
 
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
How to print one header over several columns of data column title print Excel Discussion (Misc queries) 1 May 28th 10 01:30 AM
Formula to bring in the header peterh Excel Worksheet Functions 1 January 19th 10 05:31 AM
Bring fields from header to columns AG[_3_] Excel Programming 3 July 20th 09 04:31 AM
how can I convert data with fields in rows to fields as columns PiyushAg Excel Discussion (Misc queries) 3 July 2nd 07 05:46 AM
compare two columns data and bring them to another work sheet EXCEL USER Excel Discussion (Misc queries) 1 February 14th 07 08:42 PM


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