Most frequently used word - subject to a particular filter

Excelina1234

New Member
Joined
Nov 10, 2014
Messages
23
Hi All,

If you know about Index, Mode, Match ("IMM") as an alternative to finding the most frequently used piece of *text* in a particular range (as opposed to simply using mode for a range comprising of *numbers*) you may be able to help me!

What I am trying to do is take IMM to the next level. Essentially, I have a range of text cells which correspond to different categories (illustrated below):

Category Text
France Train
France Bike
France Train
France Train
Belgium Bike
Belgium Bike
Belgium Bike

So - although Bike is the most frequent word - I want to retrieve the most frequent word for *France only* (in this case Train).

Is there any way we can develop the IMM formula to make it more specific so as to retrieve the word Train for France and Bike for Belgium?

Thanks a lot!
 
Got it, thanks Andrew! Only two more things:

1. If a particular client category doesnt have more than 1 or 2 values, the formula retrieves #N/A. Is there a way to fix this?

2. How should I change the formula so that I can have two filters for each client: EB_Geography and EB_Currency? I've tried to do but it doesnt seem to work =INDEX(EB_Geography,MODE(IF(EB_Client=E3&EB_Currency=F3,MATCH(EB_Client&EB_Geography&EB_Currency,EB_Client&EB_Geography&EB_Currency,0))))

Thanks Andrew
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The formula will return #N/A if there is no mode.

To add a criterion for currency try:

=INDEX(EB_Geography,MODE(IF(EB_Client=E3,IF(EB_Currency=F3,MATCH(EB_Client&EB_Geography&EB_Currency,EB_Client&EB_Geography&EB_Currency,0)))))
 
Upvote 0

Forum statistics

Threads
1,216,503
Messages
6,131,020
Members
449,615
Latest member
Nic0la

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