Need Help Removing Rows, Keeping Highest Score, and Counting Records (Optional)

myacovone

New Member
Joined
Sep 22, 2014
Messages
5
Here's what I need to do:

This is the raw data I have to work with:

Name Score
Tom0
Tom50
Tom75
Tom100
Tom90
Rick80
Harry100
Harry95
And... Here's how I want it to look
Name Highest Score
Tom100
Rick80
Harry100
If that's all I can figure out, that would be great. It would be even better if I could produce this:
Name Highest ScoreAttempts
Tom1005
Rick801
Harry1002

<tbody>
</tbody>

Looking forward to your responses. Thanks!!

Mark
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Note that the formula in E2 is an array formula (confirm with ctrl+shift+enter). Copy all formulas down.
Excel Workbook
ABCDEF
1NameScoreNameBestAttempts
2Tom0Tom1005
3Tom50Rick801
4Tom75Harry1002
5Tom100
6Tom90
7Rick80
8Harry100
9Harry95
Sheet1
 
Upvote 0
Joe, this is exactly what I need. However, I'm new to Array Formulas and not exactly sure what to do (also I'm on a Mac). Any advice would be appreciated. Thank you!

Mark

Note that the formula in E2 is an array formula (confirm with ctrl+shift+enter). Copy all formulas down.
Sheet1

*ABCDEF
1NameScore*NameBestAttempts
2Tom0*Tom1005
3Tom50*Rick801
4Tom75*Harry1002
5Tom100****
6Tom90****
7Rick80****
8Harry100****
9Harry95****

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E2{=MAX(IF($A$2:$A$9=D2,$B$2:$B$9))}
F2=COUNTIF($A$2:$A$9,D2)

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
Joe, this is exactly what I need. However, I'm new to Array Formulas and not exactly sure what to do (also I'm on a Mac). Any advice would be appreciated. Thank you!

Mark
I don't use a MAC but i think this will do it.
In whatever cell you want to enter the formula that's in E2 in my example, enter:

=MAX(IF($A$2:$A$9=D2,$B$2:$B$9))
(extend or compress the ranges as needed to cover all the raw data)

then instead of just pressing the "Enter" key as you would do for a regular formula, hold down the Command key and press enter. If you look in the formula bar you should now see curly braces - { and } surrounding the entire formula.
You can now copy or drag the formula down to cover your name list just like a regular formula.
 
Upvote 0
Thanks Joe... I'm getting closer... I definitely have the formula entered correctly but when I drag it down I'm just getting zeros in the columns. May try to do this on a PC to see if my results are any different. Thanks again.

I don't use a MAC but i think this will do it.
In whatever cell you want to enter the formula that's in E2 in my example, enter:

=MAX(IF($A$2:$A$9=D2,$B$2:$B$9))
(extend or compress the ranges as needed to cover all the raw data)

then instead of just pressing the "Enter" key as you would do for a regular formula, hold down the Command key and press enter. If you look in the formula bar you should now see curly braces - { and } surrounding the entire formula.
You can now copy or drag the formula down to cover your name list just like a regular formula.
 
Upvote 0
Thanks Joe... I'm getting closer... I definitely have the formula entered correctly but when I drag it down I'm just getting zeros in the columns. May try to do this on a PC to see if my results are any different. Thanks again.
Are you using absolute references for the ranges occupied by your raw data (name and score)? Is Calculation set to Automatic?
 
Upvote 0
I'm using the formulas exactly as you kindly provided above. And I just checked Calculation and it's set to Automatic. Is there a way to upload the sample file here?
 
Upvote 0
I'm using the formulas exactly as you kindly provided above. And I just checked Calculation and it's set to Automatic. Is there a way to upload the sample file here?
Check your Mr. Excel Inbox - I will give you an email address where you can send your file.
 
Upvote 0

Forum statistics

Threads
1,203,461
Messages
6,055,559
Members
444,798
Latest member
PAO1609

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