VBA - Populate 270 by 366 sheet from large input workbook

flynavy

New Member
Joined
Mar 18, 2015
Messages
43
Crappola! Just spent 45 minutes posting VBA question. Answered phone, yakked, Mr. Excel timed out, and I lost the Thread. So, this time - highly summarized...
Input sheet containing 150,000 + rows. Each row contains item, date, and amount. I want read each row and populate a 270 row by 366 column sheet. (270 unique items, and ... guess what... 366 unique dates!). I write like an old COBOL programmer (cuz that's what I was!). I intend to use 150,000 vlookups and same number of hlookups to get my cell row and column targets. Obviously, the amounts are additive in the output sheet. I will make it work, and it won't take a lot of time (minute or two). I'm guessing VBA was not meant to be attacked by a COBOL programmer. Any thoughts?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hello flynavy,

Is working with VBA making you long for the days of punch cards? If I could see the workbook layout it would be easier to create a solution for you with VBA.

Can you post a copy of the workbook to file share site?
 
Upvote 0
Hi Leith, will do! And thanks. Let me clean the sheets down to a manageable size and I'll see if Mr Excel has a file share apability, or if I need to use DropBox or etc. Stay tuned, and like I said, "THANKS"!
 
Upvote 0
Mr. Excel timed out, and I lost the Thread

To recover threads, after you sign in just click on your name at the top of the page. It will show you all of your recent posts.
 
Upvote 0
[TABLE="width: 589"]
<tbody>[TR]
[TD][/TD]
[TD]Col
[/TD]
[TD]Tot[/TD]
[TD][/TD]
[TD]5
[/TD]
[TD] 6
[/TD]
[TD] 7
[/TD]
[TD]8
[/TD]
[/TR]
[TR]
[TD]Row
[/TD]
[TD]Item
[/TD]
[TD]Qty
[/TD]
[TD]
[/TD]
[TD]8/18/16
[/TD]
[TD] 8/19/16
[/TD]
[TD] 8/20/16
[/TD]
[TD]8/21/16
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]BUMPERS:20-215-07
[/TD]
[TD]0
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]BUMPERS:20-215-97
[/TD]
[TD]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
[/TR]
[TR]
[TD]01/26/2017
[/TD]
[TD]BUMPERS:22-615-97
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:20-625-10
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:22-625-10
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:GP-1300
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:GP-1200
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:20-425-11
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:22-425-17
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:40-525-15
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:30-515-14
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]01/27/2017
[/TD]
[TD]BUMPERS:21-625-10
[/TD]
[TD]2
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Leith, looks a little messy. Top portion of example represents 366 by 270 output sheet. Bottom portion is input data.

Yes, boxes with punch cards turned in for a one week compile turnaround on IBM big and old iron!
 
Upvote 0
Hello flynavy,

Long live Hollerith! Thanks for posting the examples. I will work on this tomorrow.

By the way, are you retired Navy, active or other? I served from 1978 to 1984.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top