Combine Codes?

kylejs7

New Member
Joined
May 28, 2015
Messages
6
I have 2 separate codes listed below that I need to integrate together to perform my function. The first one grabs the information and inputs it into a new cell. The 2nd one sorts it in descending order. I need that 2 together but keep getting errors.


=IFERROR(INDEX($AR$1:$AR$62, SMALL(IF($AI$3=$AQ$1:$AQ$62, ROW($AQ$1:$AQ$62)-MIN(ROW($AQ$1:$AQ$62))+1, ""), ROW(F1))),"")


=IFERROR(INDEX($AR$1:$AR$62,MATCH(LARGE(IF(ISBLANK($AR$1:$AR$62),"",IF(ISNUMBER($AR$1:$AR$62),COUNTIF($AR$1:$AR$62,"<"&$AR$1:$AR$62),COUNTIF($AR$1:$AR$62,"<"&$AR$1:$AR$62)+SUM(IF(ISNUMBER($AR$1:$AR$62),1,0))+1)),ROW()-ROW($AT$1)+1),IF(ISBLANK($AR$1:$AR$62),"",IF(ISNUMBER($AR$1:$AR$62),COUNTIF($AR$1:$AR$62,"<"&$AR$1:$AR$62),COUNTIF($AR$1:$AR$62,"<"&$AR$1:$AR$62)+SUM(IF(ISNUMBER($AR$1:$AR$62),1,0))+1)),0)),”
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,415
Messages
5,837,116
Members
430,477
Latest member
roseinsydney

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