Extract specific data from large Excel data set using formulas

Silha

New Member
Joined
Jul 30, 2013
Messages
13
Hi there,

I am looking for a way of extracting specific data from a large Excel data set I have.


For example, if the below is my large data set...

TeamAccount ManagerJanFebMarTotal
ADaniel25512
BJane58316
CGill36615
AGary6118
BBrendan1337
CHillary23611
ASylvia1618
BMonica2125
CSean5218
AGraham4127
BDean62513
CSarah1539

<colgroup><col><col><col span="4"></colgroup><tbody>
</tbody>

Then, I want to apply formulas to end up with (for example) the "Total" hours worked by the different Account Managers in team A, like below:

Account ManagerTotal
Daniel12
Gary8
Sylvia8
Graham7

<colgroup><col><col></colgroup><tbody>
</tbody>

I know that I can use pivot tables to do this but I can't create specific team-based tables except by adding 'Team' category as the Report Filter. I want to be able to generate these tables to have tables for teams A, B and C sitting next to each other on the spreadsheet so they can all be seen at a glance. Can I generate these tables using a formula instead?

Thanks a lot!!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
so why don't you setup 3 pivots side by side for the three teams? Would be so much simplier
 
Upvote 0
I could do that but I am also creating corresponding charts to go with the sub-tables and using pivot tables doesn't give me any control over the formatting. Also, it seems that I can't suppress any 0 values in my charts if the chart is connected to a pivot table.
 
Upvote 0
try this

ABCDEFGHIJK
1TeamTeamTeam
2ABC
3444
4TeamAccount ManagerTotalTeamAccount ManagerTotalTeamAccount ManagerTotal
5ADaniel12BGary16CGill15
6AGary8BBrendan7CHillary11
7ASylvia8BMonica5CSean8
8AGraham7BDean13CSarah9

<tbody>
</tbody>


Formulas:
=COUNTIF(Sheet1!$A$1:$A$13,A2) copy this into E3 & I3

Formula is an array formula (curls are added by pressing Ctrl + Shift + Enter)
A5 = {=IF(ROWS(A$5:A5)<=$A$3,INDEX(Sheet1!A$2:A$16,SMALL(IF(Sheet1!$A$2:$A$16=A$2,ROW(Sheet1!$A$2:$A$16)-ROW($A$2)+1),ROWS(A$5:A5))),"")}
B5 = {=IF(ROWS(B$5:B5)<=$A$3,INDEX(Sheet1!B$2:B$16,SMALL(IF(Sheet1!$A$2:$A$16=A$2,ROW(Sheet1!$A$2:$A$16)-ROW($A$2)+1),ROWS(B$5:B5))),"")}
C5 = {=IF(ROWS(C$5:C5)<=$A$3,INDEX(Sheet1!F$2:F$16,SMALL(IF(Sheet1!$A$2:$A$16=A$2,ROW(Sheet1!$A$2:$A$16)-ROW($A$2)+1),ROWS(C$5:C5))),"")}
 
Upvote 0
Thanks so much! :)

Unfortunately, when I enter that (with my own cell references) and press CSE, it returns an error saying I typed it in wrong.

I found a similar array formula online which I also adapted to my cell references and had the same problem: =IF(ROWS(U$22:U22)<=V18,INDEX(INDIRECT(U$21),SMALL((IF(Team=$U$18, ROW(Team)-ROW($B$2)+1),ROWS(U$22:U22))),"")

Any idea what could be wrong?
 
Upvote 0
I found something that works really well, in case it is of use to anyone else.

{=IFERROR(INDEX(Project_Coordinator, SMALL(IF($I$3=Team,ROW(Team)-MIN(ROW(Team))+1,""),ROW(A1))),"")}

"Team" is the range A2:A12 in my original table example above.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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