Mode Ifs - just can't get it going

MJFL

New Member
Joined
Aug 4, 2022
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Afternoon all,

Long time lurker first time poster - a lot of you have already really helped me out but don't know it! Thank you one and all.

I'm at my wits end with a conditional mode query.

in column A I have the name of a product (text) There are around 1k products that show up multiple times in around 25k total rows
in column B I have the customer name there are about 200 customer names (likely not relevant).
in column C I have the number of times that product has been bought by that said customer

I'm trying to get to a point where I can how often (the mode of number of times) a product is purchased

I've tried the =mode(if(A1:A25000=A2,$C$1:$C$25000)) (as an array) but I've hit a brick wall as I think this is only looking at the one line

I had this dream there would be the equivalent of an averages I could just bung in wiht my criteria but that's not the case.

Any advice or words of wisdom gratefully received!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
MrExcelPlayground11.xlsx
ABCD
1ProductDoesn'tMatterUnits boughtMode of units bought by product
2A48
3B55
4C66
5D77
6A88
7C99
8G33
9H44
10A88
11Z66
Sheet3
Cell Formulas
RangeFormula
D2:D11D2=IFNA(MODE(FILTER($C$2:$C$11,$A$2:$A$11=A2)),C2)

Or you might have a UNIQUE list of column A elsewhere, with the mode calc there.
 
Upvote 0
Heya James - thanks for the reply sorry for my slow response - I'll give that whirl and get back to you with an update - it reads like it makes sense and should work so my fingers are firmly crossed!
 
Upvote 0
James you legend it works like a charm thank you!
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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