Frequent Words in a filtered list

Ovaly

New Member
Joined
Aug 4, 2010
Messages
5
Hello all, hope you guys can help. I have been all over the net searching for a resolution with no success.

I have 3 coloums of data. A - Month, B - Employee, C - Model
My problem is I would like a formula that will give me the most frequent model, ignoring hidden cells.

I am using this current formula:
=INDEX($G$14:$G$985,MODE(IF(($G$14:$G$985<>"")*ISNA(MATCH($G$14:$G$985,$G$14:$G$14,0)),MATCH($G$14:$G$985,$G$14:$G$985,0))))

But yeah, once i filter the spreadsheet it kinda becomes redundant.
I have tried UDF with visible cells only and rowheight formulas to no avail.
I have a feeling its something simple that i am missing, any help would be appreciated.

Cheers

Johnny G
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi
Have you considered using a Pivot table
That would give you a count of ALL models
 
Upvote 0
I have looked at pivot tables, but its not quite what i am after. My spreadsheet contains quite a bit of info but what i am trying to do is just give a snapshot of data so i can find trends. A formula in this case would work a lot better.

Cheers for your reply though.

Johnny G
 
Upvote 0
Control+shift+enter, not just enter:
Code:
=INDEX($G$14:$G$985,MODE(IF(SUBTOTAL(3,OFFSET($G$14,
    ROW($G$14:$G$985)-ROW($G$14),,1)),IF($G$14:$G$985<>"",
     MATCH($G$14:$G$985,$G$14:$G$985,0)))))

Note. Model entries mustn't have any wild chars round them like < and >, etc.
 
Upvote 0
Thankyou so much Aladin, works perfectly. Just out of curiosity though, is there anyway to make the array auto calculate after a filter has been changed?
Secondly i was using the following formula to work out the second most frequent word.
=INDEX($G14:$G985,MODE(IF(($G14:$G985<>"")*ISNA(MATCH($G14:$G985,B10,0)),MATCH($G14:$G985,$G14:$G985,0))))

What would i need to do to adjust the formula you gave me for this result?

Thankyou again, i was starting to pull my hair out.

Johnny G
 
Upvote 0
Ok i figured out the auto calculate problem. But if you could help to adjust the formula you gave me previously to give results for 2nd & 3rd most frequent i would be forever in your debt. (The Frequency results are in B10, B11(2nd) and B12(3rd))

Cheers

Johnny G
 
Upvote 0
Ok i figured out the auto calculate problem. But if you could help to adjust the formula you gave me previously to give results for 2nd & 3rd most frequent i would be forever in your debt. (The Frequency results are in B10, B11(2nd) and B12(3rd))

Cheers

Johnny G

B9: Most Frequent

B10, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=INDEX($G$14:$G$985,MODE(IF(SUBTOTAL(3,OFFSET($G$14,
   ROW($G$14:$G$985)-ROW($G$14),,1)),IF($G$14:$G$985<>"",
    IF(1-ISNUMBER(MATCH($G$14:$G$985,$B$9:B9,0)),
     MATCH($G$14:$G$985,$G$14:$G$985,0))))))
 
Upvote 0
Perfect... Aladin, You sir are a legend.

Thankyou for your help, I'm sure i'll be back come the next hurdle.

Cheers

Johnny G
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,821
Members
449,340
Latest member
hpm23

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