创建降序列表,包括重复项和列的更改顺序

Create descending list including duplicates and change order of columns

Excel-文件

   |      A       |        B          |    C   |       D         |      E     |
---|--------------|-------------------|--------|-----------------|------------|----
1  |    Sales     |       Product     |        |     Product     |    Sales   | 
---|--------------|-------------------|--------|-----------------|------------|----
2  |      20      |     Product_A     |        |     Product_D   |     100    |
3  |      10      |     Product_A     |        |     Product_D   |      90    |
4  |      50      |     Product_A     |        |     Product_B   |      80    |
5  |      80      |     Product_B     |        |     Product_A   |      50    |
6  |      40      |     Product_C     |        |     Product_D   |      50    |
7  |      30      |     Product_C     |        |     Product_D   |      50    |
8  |     100      |     Product_D     |        |     Product_C   |      40    |
9  |      90      |     Product_D     |        |     Product_C   |      30    |
10 |      50      |     Product_D     |        |     Product_A   |      20    |
11 |      50      |     Product_D     |        |     Product_D   |      10    |
12 |              |                   |        |                 |            |

Column B 我有不同产品的列表及其在 Column A 的相应销售额。

  1. 产品 可以在列表中出现多次
  2. 销售数字可以多个产品相等。

参考 中的解决方案,我尝试根据 Column A 中的销售额创建 Column Dd Column E 中产品的降序列表公式:

=SORT(A2:B11,2,-1,FALSE)

列表本身有效,但列顺序不同。
而不是 Column D 中的产品,销售出现在 Column DColumn E 产品中。
--> 复制了数据搜索的结构。

是否可以使用 SORT 公式并更改列的顺序?
如果没有,是否有替代解决方案?

使用INDEX():

=INDEX(SORT(A2:B11,2,-1),SEQUENCE(COUNT(A2:A11)),{2,1})

OP端当前视图:
由于未知原因,只有 Column D 被填充。