Extraction of data using arrays

Plu2o

New Member
Joined
Nov 25, 2009
Messages
7
OK here goes. I will try and explain this the best I can.

I have a large database for equipment fault tracking. I want to filter the data to a selected few (easy done) but then I want to calculate the total time the for each particular type of fault on each piece of equipment. This is easily done in pivot charts however i need to show the results for the fault type even if there were none recorded and I also need to be able to control the colours on the chart. I have tried using array formulas however I need around 500 so excel doesnt like that. Does anyone have any other suggestions?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi,

Welcome to MrExcel.

I'm not really sure what it is you want to do!!
If you can provide a sample of your data and the expected results you will stand a better chance of getting a suitable answer, which this may not be....

Sample Data..


Excel Workbook
ABCDEF
1ID NumberNameTimeAnimalTransportDate
2AA10000tom1:10:00catBike01/01/2011
3AA10001****2:10:00dogCar02/01/2011
4AA10002Harry1:15:00HorseBus03/01/2011
5AA10003Sally10:00:00Mousetrain04/01/2011
6AA10004Mary2:20:00fishTram05/01/2011
7AA10001Jim5:40:00pigPlane01/01/2011
8AA10003Jill3:20:00PandaTut Tut07/01/2011
9AA10007Jo4:10:00TigerCoach08/01/2011
10AA10008Joe15:00:00LionCarriage09/01/2011
11AA10009Tim6:25:00BullBoat10/01/2011
12AA10010Stan1:45:00cowtrike01/01/2011
13AA10000tom8:00:00catBike12/01/2011
14AA10004Dom1:20:00dogCar13/01/2011
15AA10000Harry2:00:00HorseBus04/01/2011
Sheet1



Result



Excel Workbook
ABCD
19Unique ListAmountSort By
2*AA1000011:10:003
3*AA100017:50:004
4*AA100021:15:009
5*AA1000313:20:002
6*AA100043:40:007
7*AA100074:10:006
8*AA1000815:00:001
9*AA100096:25:005
10*AA100101:45:008
11****
12****
Sheet2


The formulas in B2:D2 need to be copied down as far as your expect results to show (the number of rows displayed in A1).

Here is a sample (VBA free) file for you to look at with a greater range of data....
Plu2o.xls

I hope this helps point you in the right direction.

Good luck.

Ak
 
Upvote 0
Thanks Akashwani.

I appreciate your time taken to answer this.
I managed to have a moment of clarity very late last night and found I could use the GETPIVOTDATA function
Basically I have created a pivot table showing duration and count for each piece of equipment with the delay cause across the top. I have then used formula
GETPIVOTDATA("Count of Duration",'Random Delays Pivot'!$A$3,"Cause",F$3,"Equipment",$A5)
This pulls the data relating to the equipment number and only looks at that particular delay.

Thanks for your time as it is interesting to see other methods of approach
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

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