vba to find mode value for several arrays of different lengths

rossbritton26

New Member
Joined
Jul 28, 2011
Messages
33
Hi,

I have a spreadsheet with approx 10,000 rows, with each "person" in the spreadsheet taking up between 1 and 38 rows, depending on who they are.
In column "GR" i have a text value for each entry relating to that "persons" position.
I am trying to produce a s/sheet which has one row for each person and shows me the most frequent (mode) position for that person, no matter how many entries they have.

I think this should be possible with a not too complicated piece of vba, any ideas?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello there

Did you look at a pivot table and its functionality?
I would not use VBA-code here.
 
Upvote 0

Forum statistics

Threads
1,196,265
Messages
6,014,324
Members
441,816
Latest member
Klingon1960

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