Level indicator

I couldn't manage without pivot tables!!!

Maybe I'm doing something wrong but I tried summarising some pretty extensive data (50,000 employees worth of pay data for a year) on Monday using SUMPRODUCT and the formula took all afternoon to calculate for just one month (actually I went home and left it going so not sure how long it took).

I then had a moment of clarity during the night and realised how to do it using pivots and I had the other eleven months summarised an hour and a half after getting to work the following morning.

Learn them, they're legendary :wink: !!!

Yes, I see how a pivot-table is perfect for that application...

The only challenge from my personal point of view is that I would need to fabricate data that lends itself to a pivot-table structure... and that almost defeats the purpose of the lesson. I would like to add them to my arsenal, but I have yet to come across data in my daily duties where that type of data drill-down would even be remotely useful.

Just to give a sample of my most data intensive workbook:

This is a sample from a table with 328 members, representing the coded part numbers for electrical connectors on a piece of Space Station hardware:
Node_3_Electrical_Tool_Crossref_ver_1-1.xls
ABCDEFG
1ORUNameORUPartNumberItemSchematicIDPartNumberofItemORDrawingWherePinoutSchematicisLocatedConnectorIDConnectorPartNumber
2WPAAAAA107J1NATC00T11N98PB
3WPAAAAA107J2NATC00T11N35PN
4WPAASDA108J1NATC07T15N35PN
5WPACatalyticReactorSV825455-10229SV826686-1J1NATC00T11N35PA
6WPACatalyticReactorSV825455-10231SV825503-2J1NATC00T11N35PN
7WPACatalyticReactorSV825455-11126-1SV825457-1J1NATC00T11N35PN
8WPACatalyticReactorSV825455-17047-1SV825455J3NATC00T13N35PN
Hardware


And here is a sample from one of 5 other tables on 5 sepearate sheets that have 50-250 members... this particular table represents parts numbers for Test Cables, with the part numbers for the electrical connectors on each end:
Node_3_Electrical_Tool_Crossref_ver_1-1.xls
ABCDEFG
1ConnectorID(itemside)ConnectorPartNumber(itemside)TestToolPartNumberTestToolDescriptionConnectorID(out)ConnectorPartNumber(out)Notes(fortoolorconnector)
2P1D38999/26FD35SNSV825464CT206ReactorHealthHarness#1P1TBD38999/26FD35PNValves
3VLV4D38999/26FB35SASV825464CT207CatReactorO2ManifoldCablePRIGPT06A-10-6S
4VLV5D38999/26FB35SNSV825464CT207CatReactorO2ManifoldCablePRIGPT06A-10-6S
5P1D38999/26FD35PNSV825464CT208CatReactorO2ManifoldCable#2PRIGPT06A-10-6S
6P1D38999/26FB98SASV825487CT208GLSHarness#1P1TBD38999/26FB98PAHeaters
7P2D38999/26FB98SNSV825487CT209GLSHarness#2P2TBD38999/26FB35PN
8P3D38999/26FC35SNSV825487CT210GLSHarness#3P3TBD38999/26FC35PN(9)rtdSignalsandLiquidSensor
9P1D38999/26FE35SNSV825502CT202WaterStorageHarnessP1-TBD38999/26FE35PNDon'tUseonWasteWaterORU
Cable


Now, how would a pivot table tell me that the test tool listed in row 3 of table 2 is one of several tools in that table that will connect with the hardware listed in row 5 of table 1? Once I know that I need to find all tools that have a D38999/26FB35SA connector listed in column B or F, an autofilter is almost the right tool... except that I can't get the union of matches in both columns. I ended up doing this with a whole slew of Match() and Index() formulas, that look like this: =MATCH(B3,INDIRECT($C$3&"!B1"):INDIRECT($C$3&"!B"&$A$1),0) and =MATCH($B$3,INDIRECT($C$3&"!F1"):INDIRECT($C$3&"!F"&$A$1),0) so I can obtain matches in BOTH columns, where C3 contains the name of the sheet (and yes, a year later, I DO, in fact see how I could make these formulas a little bit more compact, but I just don't feel like taking the time to make the changes in all 50 rows by 15 columns in each of 7 sheets, even though I might see a noticeable gain in calculation speed). I defy you to demonstrate how a Pivot Table would be more applicable in this situation.

I grant you that pivot tables are amazingly powerful for drill-down of large data sets... but I guess I'm still stuck on the fact that if you don't need to do data drill downs, and/or your data sets are TINY, a pivot-table is at best too big of a hammer, at worst it just isn't applicable.

I do, however, appreciate your opinion, and as I said to greg: now that I have a better appreciation for what they are good for, I will be keeping pivot tables in reserve for a time when I may find them useful.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I agree. A pivot table won't really help there. You could use one, but it wasn't designed to solve the kind of question you are asking.

As soon as you start intensively using INDEX/MATCH and VLOOKUP, what you really want is a basic MSAccess database...
 
As soon as you start intensively using INDEX/MATCH and VLOOKUP, what you really want is a basic MSAccess database...

Yup. I weighed the pros and cons of an Access database when I first started building the file, realizing that Access would probably be the better way to go. In the end, I figured that I could save time by staying in an environment that I was a little bit more familiar with (Excel). At the time, I was a new employee here with my first access to Access... at my previous company, they didn;t allow anybody except IT to have access to Access because then people would have too much access to the data, and that would be bad since IT hadn't taken any measures to protect the data from corruption or damage.

Perhaps if I get brought onboard for the next big contract, someone will give me resources to develop this concept in a better environment (Access)... as it was, I built the current file in my copious amounts of free time :LOL:
 
I always worry when I start building and solving things in my 'free time'. It get all pleased with myself and then bothered that I should have been playing golf / driking / watching football instead.

way to go off thread.
so to get back on...

With regards to VBA, I have always thought (as when learning any language) the skills should be broken down into Reading, Writing, Listening and Speaking. You are then graded as Basic, Conversational, Fluent. Listening and Speaking may sound a bit strange, but I'd explain them as follows.

Reading - See code and know what it does.
Writing - Write code from altering the macro recorder to going from scratch
Listening - You are told things like Event, Object and how a macro works and understand
Speaking - As per listening.

Back on thread...
 
I always worry when I start building and solving things in my 'free time'. It get all pleased with myself and then bothered that I should have been playing golf / driking / watching football instead.
[/qoute]

Well, my use of the phrase Copious Amounts of Free Time was an obscure reference to a Tom Lehrer song.

way to go off thread.

This is the lounge, how does one go off-topic? Isn't casual conversatin a series of tengential remarks?
so to get back on...

With regards to VBA, I have always thought (as when learning any language) the skills should be broken down into Reading, Writing, Listening and Speaking. You are then graded as Basic, Conversational, Fluent. Listening and Speaking may sound a bit strange, but I'd explain them as follows.

Reading - See code and know what it does.
Writing - Write code from altering the macro recorder to going from scratch
Listening - You are told things like Event, Object and how a macro works and understand
Speaking - As per listening.

Back on thread...

Is THAT what this thread was about?
 
The Tom Lehrer reference went whizzing me by. Best I could do was to use apostrophes.

I only berated myself for going off-topic because I wanted to bring my brilliant VBA suggestion into the conversation.

My bonfire is now just smouldering. :)
 
I did NOT intend to damp down your fire. Let it flare up, hot and bright! Your knowledge is a candle, let others be illuminated by it!

Feel better? :)

Seriously, if you think thread is off topic, check out the one where I asked about the MrExcel MVP designation the other day... Greg Truby threw this one off into a tail-spin on the 4th post...
 
Feel better?

much. thank you. But now instead of bringing my idea to the fore, I am going to bury it under an avalanche of posts.

now I hope you have understood my sarcasm, as unfortunately you cannot see my cheeky grin as I write.
So, to fulfil my ambition - how do you represent sarcasm and the like in the forum to let others know you are only joking?
 
Oh, I spotted the sarcasm immediately, which is why I responded in kind. maybe we need some new emoticons... though I am still sure what an ironic emoticon would look like... make a smiley face wearing a pieces of Chain Maille (remember, you can combine Irony and Carbony to make Steely)
 

Forum statistics

Threads
1,216,583
Messages
6,131,557
Members
449,655
Latest member
Anil K Sonawane

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