Little_Tiger
New Member
- Joined
- May 7, 2018
- Messages
- 10
Does anyone could help me with the following:
I have the following table
A B C D E F
<colgroup><col span="3"><col><col span="5"></colgroup><tbody>
</tbody>
With the formula in C, it is possible to sort column B based on the value in column A. However, as you can see, the first 3 rows in Column C are all "2". (Column F is the correct way Column C should be sorted). This is wrong, as Column F shows. In Column D, I can find the duplicates, and in which respective Cell the duplicates are.
How can I combine the 2 formula, so that if there a duplicate that is move the next one to return the correct value from column B. In principle, I'm trying to get a formula to returns column F.
Thanks
-=LT=-
I have the following table
A B C D E F
Value | ToSort | Normal | Duplicate number ROW() | Correct | ||||
5 | 1 | 2 | 2 | |||||
4 | 2 | 2 | 4 | |||||
9 | 3 | 2 | 5 | |||||
4 | 4 | 1 | 5 | 4 | 1 | |||
4 | 5 | 3 | 6 | 5 | 3 | |||
114 | 6 | 12 | 12 | |||||
15 | 7 | 7 | 7 | |||||
167 | 8 | 9 | 9 | |||||
18 | 9 | 6 | 6 | |||||
1564 | 10 | 13 | 13 | |||||
1654 | 11 | 8 | 8 | |||||
14 | 12 | 10 | 10 | |||||
158 | 13 | 11 | 11 | |||||
16941 | 14 | 14 | 14 | |||||
/=IFERROR(VLOOKUP(SMALL(IF(B$2:B$15;A$2:A$15);ROWS($2:2));A$2:B$15;2;FALSE);"") | ||||||||
/=IF(COUNTIFS($A$1:$A2; A2)>1;ROW();"") |
<colgroup><col span="3"><col><col span="5"></colgroup><tbody>
</tbody>
With the formula in C, it is possible to sort column B based on the value in column A. However, as you can see, the first 3 rows in Column C are all "2". (Column F is the correct way Column C should be sorted). This is wrong, as Column F shows. In Column D, I can find the duplicates, and in which respective Cell the duplicates are.
How can I combine the 2 formula, so that if there a duplicate that is move the next one to return the correct value from column B. In principle, I'm trying to get a formula to returns column F.
Thanks
-=LT=-