Fetch the player's name with lowest score

Kamal GKJ

New Member
Joined
Aug 17, 2017
Messages
32
Hi Friends,

There are 4 peoples, I need to find the min score the people has claimed and add this player name to the list(Loop). It must get upgraded each and every time its updated.

Ex. Pivot data
Name Score
arauv 1
ragav 2
rithu 4
maya 3


Data Dump:
Sl no Name
1 arauv
2 ragav
3 rithu
4 maya
. .
. .
. .
55 ?(the name with lowest score).
Note: 1) This should be able to reflect in google sheet, 2) I have used the syntax (Index(match(max())).
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
whenever you update the table, the result should add in a new row, macro is must I believe. I will update you on this.
 
Upvote 0
Sub abc()


Dim x As Double
Dim y As Integer
Dim z As String
Dim c As Integer


Sheets("Sheet1").Select


x = Application.WorksheetFunction.Min(Range("B2:B5").Value)
y = Application.Match(x, Range("B2:B5").Value, 0)
z = Range("A1").Offset(y, 0).Value


c = Application.WorksheetFunction.CountA(Range(Cells(10, 1), Cells(10000, 1)))


Range("A10").Offset(c, 0).Value = c
Range("A10").Offset(c, 1).Value = z


End Sub

you have 4 names A2 to A5 and score in B2 to B5

type any text say 'Count' in A10

run this macro each time when there is an update in scores, you will get the results below A10. your sheet name should be 'Sheet1'
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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