Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combining name ranges to create database. Pivot? Consolidate? I've tried and I'm stuck!

I have several name ranges with large number of rows. I cannot
aggregate my data into only the 4 columns used in the name ranges as it
would exceed 65536 rows.

Here is what name_range_1 looks like (4 columns)

date | quantity1 | quantity2 | product
4/5/04 | 2 | 4 | lemon
4/6/04 | 3 | 1 | lemon
4/8/04 | 4 | 2 | lemon
4/9/04 | 7 | 3 | lemon
etc

Here is what name_range_2 looks like (4 columns)

date | quantity1 | quantity2 | product
4/4/04 | 2 | 4 | sugar
4/6/04 | 3 | 1 | sugar
4/7/04 | 1 | 6 | sugar
4/9/04 | 5 | 2 | sugar
etc

this is how I need to data

product | lemon | lemon | sugar | sugar
date | quantity1 | quantity2 | quantity1 | quantity2
4/4/04 | | | 2 | 4
4/5/04 | 2 | 4 | |
4/6/04 | 3 | 1 | 3 | 1
4/7/04 | | | 1 | 6
4/8/04 | 4 | 2 | |
4/9/04 | 7 | 3 | 5 | 2

I spent about a day 1/2 googling with no success. I've tried to combine
the data via pivot but I failed. I could do vlookup but with so much
data, it would take forever.

I've read through John Walkenbach's bible but could not find the
answer.

Any thoughts?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Combining name ranges to create database. Pivot? Consolidate? I've tried and I'm stuck!

It sounds like SQL run on sheet ranges might be your solution.
If it doesn't fit on a sheet you could export to text and run the SQL on
text files.
Look at this posting from 2 Dec 2005 in this newsgroup: Count duplicates in
an array?

RBS


wrote in message
oups.com...
I have several name ranges with large number of rows. I cannot
aggregate my data into only the 4 columns used in the name ranges as it
would exceed 65536 rows.

Here is what name_range_1 looks like (4 columns)

date | quantity1 | quantity2 | product
4/5/04 | 2 | 4 | lemon
4/6/04 | 3 | 1 | lemon
4/8/04 | 4 | 2 | lemon
4/9/04 | 7 | 3 | lemon
etc

Here is what name_range_2 looks like (4 columns)

date | quantity1 | quantity2 | product
4/4/04 | 2 | 4 | sugar
4/6/04 | 3 | 1 | sugar
4/7/04 | 1 | 6 | sugar
4/9/04 | 5 | 2 | sugar
etc

this is how I need to data

product | lemon | lemon | sugar | sugar
date | quantity1 | quantity2 | quantity1 | quantity2
4/4/04 | | | 2 | 4
4/5/04 | 2 | 4 | |
4/6/04 | 3 | 1 | 3 | 1
4/7/04 | | | 1 | 6
4/8/04 | 4 | 2 | |
4/9/04 | 7 | 3 | 5 | 2

I spent about a day 1/2 googling with no success. I've tried to combine
the data via pivot but I failed. I could do vlookup but with so much
data, it would take forever.

I've read through John Walkenbach's bible but could not find the
answer.

Any thoughts?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Combining name ranges to create database. Pivot? Consolidate? I've

If you are beyond 65,536 then you may want to consider storing the data
somewhere else, such as in Access. Assuming that you have Access you can load
your source data into a table and then use a pivot table to retrieve the data
from the table. Doing this you can get aroud the 65,536 limit (Possibly as
high as a million records). In the pivot table wizard the first screen aske
you to select a data source and you just need to select the database type and
then find the database and table.
--
HTH...

Jim Thomlinson


" wrote:

I have several name ranges with large number of rows. I cannot
aggregate my data into only the 4 columns used in the name ranges as it
would exceed 65536 rows.

Here is what name_range_1 looks like (4 columns)

date | quantity1 | quantity2 | product
4/5/04 | 2 | 4 | lemon
4/6/04 | 3 | 1 | lemon
4/8/04 | 4 | 2 | lemon
4/9/04 | 7 | 3 | lemon
etc

Here is what name_range_2 looks like (4 columns)

date | quantity1 | quantity2 | product
4/4/04 | 2 | 4 | sugar
4/6/04 | 3 | 1 | sugar
4/7/04 | 1 | 6 | sugar
4/9/04 | 5 | 2 | sugar
etc

this is how I need to data

product | lemon | lemon | sugar | sugar
date | quantity1 | quantity2 | quantity1 | quantity2
4/4/04 | | | 2 | 4
4/5/04 | 2 | 4 | |
4/6/04 | 3 | 1 | 3 | 1
4/7/04 | | | 1 | 6
4/8/04 | 4 | 2 | |
4/9/04 | 7 | 3 | 5 | 2

I spent about a day 1/2 googling with no success. I've tried to combine
the data via pivot but I failed. I could do vlookup but with so much
data, it would take forever.

I've read through John Walkenbach's bible but could not find the
answer.

Any thoughts?


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
How do I consolidate data into ranges Jerry Excel Discussion (Misc queries) 8 July 15th 08 09:09 PM
combining pivot tables, then making a ranges. HoganD87 Excel Discussion (Misc queries) 1 September 4th 07 07:52 PM
Stuck on combining two lists with different column headers MrB1onde Excel Discussion (Misc queries) 1 August 7th 06 10:24 PM
VBA Code to create PIVOT in Excel from access database ST Excel Discussion (Misc queries) 1 July 26th 06 06:38 PM
Create Pivot from access database by VBA ST Excel Discussion (Misc queries) 0 July 26th 06 04:31 AM


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

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"