簡體   English   中英

有沒有辦法將列值從一個工作表復制到另一個工作表作為基於第一個分組的行

[英]is there any way to copy column values from one sheet to another sheet as row based on sheet one grouping

我在sheet1中有以下數據

| Components        | Attr | Test component1 |
| Components        | Attr | Test component2 |
| Remote Control    | Attr | Test Remote1    |
| Remote Control    | Attr | Test Remote2    |
| Remote Control    | Attr | Test Remote3    |
| Remote Control    | Attr | Test Remote4    |
| Other Accessories | Attr | Other1          |
| Other Accessories | Attr | Other2          |

在表2中需要輸出如下所示,其中A列已修復並預先填充

在此輸入圖像描述

是否有一種簡單的方法可以使用基於分組的轉置進行復制和粘貼。

假設您的數據在Sheet1而您在Sheet2的輸出嘗試:

在sheet2上的單元格B1中:

{=IFERROR(INDEX(Sheet1!$C$1:$C$8,SMALL((Sheet1!$A$1:$A$8=$A1)*ROW(Sheet1!$A$1:$A$8),COUNTIF(Sheet1!$A$1:$A$8,"<>"&$A1)+COLUMN()-1)),"")}

請注意,它是一個數組公式,需要通過Ctrl Shift Enter輸入

在此輸入圖像描述

向下拖動......

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM