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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,017
You could use this CSE formula
=MODE(IF(A1:A7=333,B1:B7))

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

Watch MrExcel Video

Forum statistics

Threads
1,132,743
Messages
5,655,036
Members
418,171
Latest member
ramiroayala

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
Top