# re-order a list based on different citeria

Status
Not open for further replies.

#### petethecat

##### Board Regular
A little while ago i was give this formula to help me re-order a list based on the fact that it is mixed letters & numbers. IE if a letter "R" is in the list then it becomes 1, if in the same list a 1 appears this becomes a 2 & so on

=IF(A1="R",1,IF(A1=0,MAX(A\$1:A\$11)+COUNTIF(A\$1:A1,0)+1,A1+1))

What i want to do is change this formula so that it gives me a list, in ascending order if there is NO LETTER "R" (or indeed any letter).

So if there is an "R" this would be the first & any numbers would be plus one - so 1 would be 2, 2 would be 3 etc.

If there are no letters then it reverts to the number sequence. IE 1 is 1, 2 is 2 etc.

Any help is greatly appreciated!

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### Fluff

##### MrExcel MVP, Moderator
Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

Status
Not open for further replies.

Replies
3
Views
77
Replies
12
Views
398
Replies
2
Views
104
Replies
29
Views
2K
Replies
7
Views
132

1,148,108
Messages
5,744,873
Members
423,907
Latest member
zerocool88

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