close

I know this is over my head and I am not sure Excel is the right
program, but I have had luck in the past with this group and figured
someone more knowledgable than me would know if it is or isn't
possible. What I have is some Categories that are made up of
subcategories and there is data associated with these subcategories,
such as # of people in each of these subcategories under the
categories. What I want to do is make the subcategories the categories
and the categories the subcategories under these new categories with
the appropriate data attached to the categories. Let me explain.

I have data like that below.

Soccer team (column A)
(column B has the grade and column c has the # of kids)
3rd grade - 10 people
4th grade - 20 people
7th grade - 15 people

Baseball team (column A)
(column B has the grade and column c has the # of kids)
4th grade - 5 people
7th grade - 10 people

I know want to run a formula in excel that will automatically give me
the following results.

3rd grade
Soccer team - 10 people

4th grade
Soccer team - 20 people
Baseball team - 5 people

7th grade
Soccer team - 15 people
Baseball team - 10 people

***note this is not the actual data I am flipping but it would work the
same exact way. It wouldn't be a big deal except that I have many many
pages of this and it takes me a couple hours to manipulate this.

Thanks in advance for the help. Please steer me in the right
direction.You could probably do this with a pivot table. I'd explain it more, but I'm
pretty tired and will probably mess up the explanation. Someone else may
be able to help there.

gt; wrote in message oups.com...
gt;I know this is over my head and I am not sure Excel is the right
gt; program, but I have had luck in the past with this group and figured
gt; someone more knowledgable than me would know if it is or isn't
gt; possible. What I have is some Categories that are made up of
gt; subcategories and there is data associated with these subcategories,
gt; such as # of people in each of these subcategories under the
gt; categories. What I want to do is make the subcategories the categories
gt; and the categories the subcategories under these new categories with
gt; the appropriate data attached to the categories. Let me explain.
gt;
gt; I have data like that below.
gt;
gt; Soccer team (column A)
gt; (column B has the grade and column c has the # of kids)
gt; 3rd grade - 10 people
gt; 4th grade - 20 people
gt; 7th grade - 15 people
gt;
gt; Baseball team (column A)
gt; (column B has the grade and column c has the # of kids)
gt; 4th grade - 5 people
gt; 7th grade - 10 people
gt;
gt; I know want to run a formula in excel that will automatically give me
gt; the following results.
gt;
gt; 3rd grade
gt; Soccer team - 10 people
gt;
gt; 4th grade
gt; Soccer team - 20 people
gt; Baseball team - 5 people
gt;
gt; 7th grade
gt; Soccer team - 15 people
gt; Baseball team - 10 people
gt;
gt; ***note this is not the actual data I am flipping but it would work the
gt; same exact way. It wouldn't be a big deal except that I have many many
gt; pages of this and it takes me a couple hours to manipulate this.
gt;
gt; Thanks in advance for the help. Please steer me in the right
gt; direction.
gt;
I know I could do this with a pivot table but didn't know if there were
actual formulas that I could possibly run. Thanks for the suggestion
though.I'm fairly certain a Pivot Table will easily handle your request.

Here's how to start:
lt;Datagt;lt;Pivot Tablegt;
Use: Excel
Select your data
Click the [Layout] button

ROW:
Drag the Team field here
Drag the Grade field below Team
Drag the Members field below the Grade field

DATA: Drag the People field here
If it doesn't list as Count of Members...dbl-click it and set it to Count
Click [OK]

Select where you want the Pivot Table...and you're done!

That will list each Grades and Members by Team and the count of Members.

To switch to the second view
Click the Pivot Table Wizard button
Click the [Layout] button
Drag the Grade field to above the Team field

Now you have Teams and Members listed by Grade

For an excellent tutorial on Pivot Tables, see MVP Debra Dalgleish's
contribution to Chip Pearson's website:
peltiertech.com/Excel/Pivots/pivotstart.htm

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Proquot; wrote:

gt; I know this is over my head and I am not sure Excel is the right
gt; program, but I have had luck in the past with this group and figured
gt; someone more knowledgable than me would know if it is or isn't
gt; possible. What I have is some Categories that are made up of
gt; subcategories and there is data associated with these subcategories,
gt; such as # of people in each of these subcategories under the
gt; categories. What I want to do is make the subcategories the categories
gt; and the categories the subcategories under these new categories with
gt; the appropriate data attached to the categories. Let me explain.
gt;
gt; I have data like that below.
gt;
gt; Soccer team (column A)
gt; (column B has the grade and column c has the # of kids)
gt; 3rd grade - 10 people
gt; 4th grade - 20 people
gt; 7th grade - 15 people
gt;
gt; Baseball team (column A)
gt; (column B has the grade and column c has the # of kids)
gt; 4th grade - 5 people
gt; 7th grade - 10 people
gt;
gt; I know want to run a formula in excel that will automatically give me
gt; the following results.
gt;
gt; 3rd grade
gt; Soccer team - 10 people
gt;
gt; 4th grade
gt; Soccer team - 20 people
gt; Baseball team - 5 people
gt;
gt; 7th grade
gt; Soccer team - 15 people
gt; Baseball team - 10 people
gt;
gt; ***note this is not the actual data I am flipping but it would work the
gt; same exact way. It wouldn't be a big deal except that I have many many
gt; pages of this and it takes me a couple hours to manipulate this.
gt;
gt; Thanks in advance for the help. Please steer me in the right
gt; direction.
gt;
gt;

gt; ... Debra Dalgleish's
gt; contribution to Chip Pearson's website:

Think it's Jon Peltier's site, not Chip's lt;ggt;
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
gt; wrote
gt; .. but didn't know if there were
gt; actual formulas that I could possibly run.

Perhaps a close-fit formulas approach ?

Assume source data is in sheet: X,
within A2:C100, eg:

Soccer 3rd grade 10 people
Soccer 4th grade 20 people
Soccer 7th grade 15 people
Baseball 4th grade 5 people
Baseball 7th grade 10 people
etc

Col A = sports
Col B = grade
Col C = people

(Data is assumed all text, placed in X
via sequential copygt;pasting from all sheets.
Order of pasting is immaterial.)

Then in another sheet: Y,

Assume listed across in B1, C1, D1, ... are the grades:
3rd grade, 4th grade, 5th grade

and listed down in A2, A3, ... are the sports:
Soccer, Baseball, ..

Put in B2, array-enter (press CTRL SHIFT ENTER):
=IF(ISNA(MATCH(1,(TRIM(X!$A$2:$A$100)=TRIM($A2))*( TRIM(X!$B$2:$B$100)=TRIM(B
$1)),0)),quot;quot;,INDEX(TRIM(X!$C$2:$C$100),MATCH(1,(TRI M(X!$A$2:$A$100)=TRIM($A2)
)*(TRIM(X!$B$2:$B$100)=TRIM(B$1)),0)))

Copy B2 across and fill down to populate

Since we're doing text matching here, to increase robustness,
TRIM(..) has been wrapped everywhere
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
Perhaps a quick sample to illustrate:
cjoint.com/?eriPkbmLUD
conorfinnegan_wks.xls
--
Max
Singapore
savefile.com/projects/236895
xdemechanik
---
YIKES! Absolutley correct, Max! ...and *Peltier* is right in the beginning of
the URL I posted: (peltiertech.com/Excel/Pivots/pivotstart.htm)

My apologies for the mix-up.

***********
Regards,
Ron

XL2002, WinXP-Proquot;Maxquot; wrote:

gt; gt; ... Debra Dalgleish's
gt; gt; contribution to Chip Pearson's website:
gt;
gt; Think it's Jon Peltier's site, not Chip's lt;ggt;
gt; --
gt; Max
gt; Singapore
gt; savefile.com/projects/236895
gt; xdemechanik
gt; ---
gt;
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()