Getting the mode from a varied list

smiths87

Board Regular
Joined
Aug 7, 2006
Messages
106
Hey,
For some reason I'm not seeing how to do this, but I think it will probably be easy for a multitude of you. I have a list in column A of identifier numbers, and a corresponding price in column B. I need to extract the mode of each identifier's price.

111 $2.50
222 $3.00
333 $2.65
333 $2.65
333 $2.72
444 $1.50
444 $1.50

So I take the list in column A, copy it somewhere else and remove duplicates, and when I put a formula off to the side for 333, I want the return value to be 2.65. Just can't quite rap my head around how to do it at the moment. Any help is appreciated, thanks.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You could use this CSE formula
=MODE(IF(A1:A7=333,B1:B7))

entered with Ctrl-Shift-Enter (Cmd+Return for Mac)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,927
Members
449,094
Latest member
teemeren

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