#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Carl Hilton
 
Posts: n/a
Default grouping data

I have a worksheet with a list of names in one column and a group of
numerical scores in another column.

On a seperate worksheet, I need, a 4 wide x 2 high grid, each grid is
filled with names from the first worksheet, for those that meet a specific
range of scores. Each "grid" is say one cell wide by X cells high with one
person per cell. The ranges are such that no person would meet more that one
range.

If this can be done via worksheet functions great.

Thanks

Carl


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default grouping data

Venturing some guesses here that
something along these lines could be what you're after ..

Sample construct available at:
http://cjoint.com/?mpl7qrmqYh
Grouping_Data_Carl_Hilton_wks.xls

In Sheet1,
Names are assumed listed in A2:A11, scores in B2:B11
Let's say we want to group the names under 5 categories / cols according to
the scores, viz.:

<=55
55 to <=60
60 to <=65
65 to <=75
75


Using say, 5 empty cols to the right, cols D to H
Enter the "limits" in D1:G1, viz.: 55, 60, 65, 75
Put a label into H1: "75"

Put in D2: =IF($B2="","",IF($B2<=D$1,ROW(),""))
Put in E2: =IF(AND($B2D$1,$B2<=E$1),ROW(),"")
Copy E2 to G2
Put in H2: =IF($B2G$1,ROW(),"")
Select D2:H2, copy down to H11

In Sheet2,
Copy paste over the headers from Sheet1's D1:H1 into A1:E1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(Sheet1!$C$2:$C$11,,MATCH( A$1,Sheet1!$D$1:$H$1,0)),R
OWS($A$1:A1))),"",INDEX(Sheet1!$A$2:$A$11,MATCH(SM ALL(OFFSET(Sheet1!$C$2:$C$
11,,MATCH(A$1,Sheet1!$D$1:$H$1,0)),ROWS($A$1:A1)), OFFSET(Sheet1!$C$2:$C$11,,
MATCH(A$1,Sheet1!$D$1:$H$1,0)),0)))

Copy A2 across to E2, fill down to E11

Sheet2 will return the names listed in Sheet1's A2:A11 under the correct
cols according to the scores, with all results neatly bunched at the top of
the cols
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Carl Hilton" wrote in message
...
I have a worksheet with a list of names in one column and a group of
numerical scores in another column.

On a seperate worksheet, I need, a 4 wide x 2 high grid, each grid is
filled with names from the first worksheet, for those that meet a specific
range of scores. Each "grid" is say one cell wide by X cells high with one
person per cell. The ranges are such that no person would meet more that

one
range.

If this can be done via worksheet functions great.

Thanks

Carl




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Carl Hilton
 
Posts: n/a
Default grouping data

Excellent and quick... Thanks Max... Now I just have check out the functions
you used and LEARN!

Thanks again.

Carl


"Max" wrote in message
...
Venturing some guesses here that
something along these lines could be what you're after ..

Sample construct available at:
http://cjoint.com/?mpl7qrmqYh
Grouping_Data_Carl_Hilton_wks.xls

In Sheet1,
Names are assumed listed in A2:A11, scores in B2:B11
Let's say we want to group the names under 5 categories / cols according
to
the scores, viz.:

<=55
55 to <=60
60 to <=65
65 to <=75
75


Using say, 5 empty cols to the right, cols D to H
Enter the "limits" in D1:G1, viz.: 55, 60, 65, 75
Put a label into H1: "75"

Put in D2: =IF($B2="","",IF($B2<=D$1,ROW(),""))
Put in E2: =IF(AND($B2D$1,$B2<=E$1),ROW(),"")
Copy E2 to G2
Put in H2: =IF($B2G$1,ROW(),"")
Select D2:H2, copy down to H11

In Sheet2,
Copy paste over the headers from Sheet1's D1:H1 into A1:E1

Put in A2:
=IF(ISERROR(SMALL(OFFSET(Sheet1!$C$2:$C$11,,MATCH( A$1,Sheet1!$D$1:$H$1,0)),R
OWS($A$1:A1))),"",INDEX(Sheet1!$A$2:$A$11,MATCH(SM ALL(OFFSET(Sheet1!$C$2:$C$
11,,MATCH(A$1,Sheet1!$D$1:$H$1,0)),ROWS($A$1:A1)), OFFSET(Sheet1!$C$2:$C$11,,
MATCH(A$1,Sheet1!$D$1:$H$1,0)),0)))

Copy A2 across to E2, fill down to E11

Sheet2 will return the names listed in Sheet1's A2:A11 under the correct
cols according to the scores, with all results neatly bunched at the top
of
the cols
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Carl Hilton" wrote in message
...
I have a worksheet with a list of names in one column and a group of
numerical scores in another column.

On a seperate worksheet, I need, a 4 wide x 2 high grid, each grid is
filled with names from the first worksheet, for those that meet a
specific
range of scores. Each "grid" is say one cell wide by X cells high with
one
person per cell. The ranges are such that no person would meet more that

one
range.

If this can be done via worksheet functions great.

Thanks

Carl






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default grouping data

You're welcome, Carl !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"Carl Hilton" wrote in message
...
Excellent and quick... Thanks Max... Now I just have check out the

functions
you used and LEARN!

Thanks again.

Carl



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Grouping the numeric data stored in one column. Rachana Excel Worksheet Functions 1 October 7th 05 06:02 PM
Import Data Keeps asking for Password Dominator Excel Discussion (Misc queries) 0 June 5th 05 11:25 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM
grouping data in a pivot table William Excel Discussion (Misc queries) 2 April 6th 05 09:16 PM
Running Data Table using an input that triggers DDE linked data [email protected] Excel Discussion (Misc queries) 1 December 16th 04 11:56 AM


All times are GMT +1. The time now is 11:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"