how to find the top 20 using fuormulra

dmasvar

New Member
Joined
Nov 17, 2004
Messages
33
ive got 2 colums basically,

first column called ID lets' say

got these numbers
290435212000
290435212001
290435212002
290435212003
290435212004
290435212005
293712282000
293712282001
293712282002
293712282003

notice the last four digits refer to year ('ve concatenate the ID with the year), as i want to appear in a third column the top 20 values related to a particular year I speciciy, in this case 2003.

the second column are just values associated with this list above.. any value for this example..

the trick is to pull out the top 20 given a particular year,

any help appreciated
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi

Assuming that the ID data is in column A and the values are in column B then in D1 try (array entered)

=LARGE(IF(RIGHT($A$1:$A$40,4)="2003",$B$1:$B$40,0),ROW())

Adjust ranges as required, and copy down.

Tony
 
Upvote 0

Forum statistics

Threads
1,211,788
Messages
6,103,970
Members
447,888
Latest member
eaydogan

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