# Combine Codes?

#### kylejs7

##### New Member
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

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.
1

Replies
0
Views
379
Replies
3
Views
339
Replies
8
Views
379
Replies
3
Views
346
Replies
3
Views
375

1,214,657
Messages
6,120,777
Members
448,991
Latest member
Hanakoro

### 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.

### Which adblocker are you using?

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

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