Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Consolidating Unequal Lists

Hello,
I have 2 lists of data in different worksheets of the same workbook
similar to below:

Product City
Apples London
Oranges Birmingham
Pears Manchester


I want to create 1 list (2 columns) in 1 worksheet that looks like:


Product City
Apples London
Apples Birmingham
Apples Manchester
Oranges London
Oranges Birmingham
Oranges Manchester
Pears London
Pears Birmingham
Pears Manchester


I can do this if I use MSQuery, but the spreadsheet is going to be
deployed to multiple locations and saved in different server locations
so the query falls over at this point.
Can anyone please help with the VBA to accomplish this?


Many thanks


Roy



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Consolidating Unequal Lists

Check out the topic "Copy from row 2 till the last row with data" at the
below link by Ron de Bruin

http://www.rondebruin.nl/copy2.htm

--
Jacob (MVP - Excel)


"royhamill" wrote:

Hello,
I have 2 lists of data in different worksheets of the same workbook
similar to below:

Product City
Apples London
Oranges Birmingham
Pears Manchester


I want to create 1 list (2 columns) in 1 worksheet that looks like:


Product City
Apples London
Apples Birmingham
Apples Manchester
Oranges London
Oranges Birmingham
Oranges Manchester
Pears London
Pears Birmingham
Pears Manchester


I can do this if I use MSQuery, but the spreadsheet is going to be
deployed to multiple locations and saved in different server locations
so the query falls over at this point.
Can anyone please help with the VBA to accomplish this?


Many thanks


Roy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Consolidating Unequal Lists

Hi Jacob,
Thanks for this and I can see some code in there which will be useful to me
for other things, but when I run the example you suggested, I get the
following list

Apples
Oranges
Pears
London
Birmingham
Manchester

As you can see, it does not give me the list I require. Any suggestions?

Thanks in advance

Roy

"Jacob Skaria" wrote:

Check out the topic "Copy from row 2 till the last row with data" at the
below link by Ron de Bruin

http://www.rondebruin.nl/copy2.htm

--
Jacob (MVP - Excel)


"royhamill" wrote:

Hello,
I have 2 lists of data in different worksheets of the same workbook
similar to below:

Product City
Apples London
Oranges Birmingham
Pears Manchester


I want to create 1 list (2 columns) in 1 worksheet that looks like:


Product City
Apples London
Apples Birmingham
Apples Manchester
Oranges London
Oranges Birmingham
Oranges Manchester
Pears London
Pears Birmingham
Pears Manchester


I can do this if I use MSQuery, but the spreadsheet is going to be
deployed to multiple locations and saved in different server locations
so the query falls over at this point.
Can anyone please help with the VBA to accomplish this?


Many thanks


Roy



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Consolidating Unequal Lists

Try using pivot table with consildated regions -- using pivot table wizard

"royhamill" wrote in message
...
Hi Jacob,
Thanks for this and I can see some code in there which will be useful to
me
for other things, but when I run the example you suggested, I get the
following list

Apples
Oranges
Pears
London
Birmingham
Manchester

As you can see, it does not give me the list I require. Any suggestions?

Thanks in advance

Roy

"Jacob Skaria" wrote:

Check out the topic "Copy from row 2 till the last row with data" at the
below link by Ron de Bruin

http://www.rondebruin.nl/copy2.htm

--
Jacob (MVP - Excel)


"royhamill" wrote:

Hello,
I have 2 lists of data in different worksheets of the same workbook
similar to below:

Product City
Apples London
Oranges Birmingham
Pears Manchester


I want to create 1 list (2 columns) in 1 worksheet that looks like:


Product City
Apples London
Apples Birmingham
Apples Manchester
Oranges London
Oranges Birmingham
Oranges Manchester
Pears London
Pears Birmingham
Pears Manchester


I can do this if I use MSQuery, but the spreadsheet is going to be
deployed to multiple locations and saved in different server locations
so the query falls over at this point.
Can anyone please help with the VBA to accomplish this?


Many thanks


Roy





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
Unequal Product Sum Aitchy Excel Worksheet Functions 3 April 6th 07 12:28 PM
Consolidating Lists on Information Randy Brown Excel Programming 1 November 1st 06 05:08 PM
Matching Lists Where List Size is Unequal zgall1 Excel Discussion (Misc queries) 1 February 16th 06 11:21 PM
unequal sign et Excel Discussion (Misc queries) 2 February 6th 05 11:17 PM
Unequal Sign et Excel Discussion (Misc queries) 1 February 5th 05 04:30 AM


All times are GMT +1. The time now is 11:11 AM.

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"