메인 컨텐츠로 가기

열과 행을 단일 열로 바꾸거나 변환하는 방법은 무엇입니까?

Excel 워크 시트를 사용할 때 때때로이 문제가 발생합니다. 데이터 범위를 단일 열로 변환하거나 전치하는 방법은 무엇입니까? (다음 스크린 샷 참조 :) 이제이 문제를 해결할 수있는 세 가지 간단한 방법을 소개합니다.

수식을 사용하여 열과 행을 단일 열로 전치 / 변환

VBA 코드를 사용하여 열과 행을 단일 열로 전치 / 변환

Excel 용 Kutools를 사용하여 열과 행을 단일 열로 전치 / 변환좋은 생각 3


수식을 사용하여 열과 행을 단일 열로 전치 / 변환

다음 긴 수식을 사용하면 데이터 범위를 열로 빠르게 전치하는 데 도움이됩니다. 다음과 같이하십시오.

1. 먼저 데이터 범위에 대한 범위 이름을 정의하고 변환 할 범위 데이터를 선택한 다음 마우스 오른쪽 단추를 클릭하고 이름 정의 컨텍스트 메뉴를 형성합니다. 에서 새 이름 대화 상자에서 원하는 범위 이름을 입력합니다. 그런 다음 OK. 스크린 샷보기 :

2. 범위 이름을 지정한 후 빈 셀을 클릭합니다.이 예에서는 E1 셀을 클릭하고 다음 수식을 입력합니다. =INDEX(MyData,1+INT((ROW(A1)-1)/COLUMNS(MyData)),MOD(ROW(A1)-1+COLUMNS(MyData),COLUMNS(MyData))+1).

주의 사항: 마이데이터 선택한 데이터의 범위 이름이며 필요에 따라 변경할 수 있습니다.

3. 그런 다음 오류 정보가 표시 될 때까지 수식을 셀 아래로 끕니다. 범위의 모든 데이터가 단일 열로 전치되었습니다. 스크린 샷보기 :


Excel에서 범위를 열 / 행 / 또는 그 반대로 빠르게 조옮김

경우에 따라 셀 범위를 하나의 열 또는 행으로 바꾸거나 그 반대로 열 또는 행을 Excel 시트에서 여러 행과 열로 변환해야 할 수 있습니다. 문제를 빠르게 해결할 수있는 방법이 있습니까? 여기 조옮김 범위 ~에 기능하다 Excel 용 Kutools 위의 모든 작업을 쉽게 처리 할 수 ​​있습니다.30일 동안 모든 기능을 갖춘 무료 평가판을 보려면 클릭하세요!
doc1
 
Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다.

VBA 코드를 사용하여 열과 행을 단일 열로 전치 / 변환

다음 VBA 코드를 사용하여 여러 열과 행을 단일 열로 결합 할 수도 있습니다.

1. ALT + F11 키를 눌러 응용 프로그램 용 Microsoft Visual Basic 창.

2. 클릭 끼워 넣다 > 모듈을 클릭하고 다음 코드를 모듈 창.

Sub ConvertRangeToColumn()
'Updateby20131126
Dim Range1 As Range, Range2 As Range, Rng As Range
Dim rowIndex As Integer
xTitleId = "KutoolsforExcel"
Set Range1 = Application.Selection
Set Range1 = Application.InputBox("Source Ranges:", xTitleId, Range1.Address, Type:=8)
Set Range2 = Application.InputBox("Convert to (single cell):", xTitleId, Type:=8)
rowIndex = 0
Application.ScreenUpdating = False
For Each Rng In Range1.Rows
    Rng.Copy
    Range2.Offset(rowIndex, 0).PasteSpecial Paste:=xlPasteAll, Transpose:=True
    rowIndex = rowIndex + Rng.Columns.Count
Next
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

3. 프레스 F5 키를 눌러 코드를 실행하면 변환 할 범위를 선택할 수있는 대화 상자가 표시됩니다. 스크린 샷보기 :

4. 그런 다음 Ok, 결과를 출력 할 단일 셀을 선택하는 다른 대화 상자가 표시됩니다. 스크린 샷을 참조하십시오.

5. 그리고 클릭 Ok이면 범위의 셀 내용이 열 목록으로 변환됩니다 (스크린 샷 참조).

doc-변환-범위-to-column11


Excel 용 Kutools를 사용하여 열과 행을 단일 열로 전치 / 변환

수식이 너무 길어서 기억하기에는 너무 길고 VBA 코드에 몇 가지 제한이있을 수 있습니다.이 상황에서는 걱정하지 마십시오. 여기에서는보다 쉽고 다기능적인 도구를 소개합니다.Excel 용 Kutools그와 Transform Range 이 문제를 빠르고 편리하게 해결할 수 있습니다.

Excel 용 Kutools, 이상과 300 편리한 기능으로 작업이 더 쉬워집니다. 

무료 설치 Excel 용 Kutools는 다음과 같이하십시오.

1. 조옮김하려는 범위를 선택합니다.

2. 클릭 쿠툴 > Transform Range, 스크린 샷 참조 :

doc 범위를 열 12로 변환

3. 에서 Transform Range 대화 상자에서 Range to single column 옵션, 스크린 샷 참조 :

doc 범위를 열 13로 변환

4. 그런 다음 OK, 팝업 상자의 결과를 넣을 셀을 지정합니다.

doc 범위를 열 14로 변환

5. 클릭 OK, 여러 열 및 행 데이터가 하나의 열로 전치되었습니다.
doc 범위를 열 15로 변환

열을 고정 행이있는 범위로 변환하려면 다음을 사용할 수도 있습니다. Transform Range 신속하게 처리 할 수 ​​있습니다.
doc 범위를 열 16로 변환


Excel 용 Kutools를 사용하여 크로스 테이블을 목록 테이블로 바꿉니다.

아래 스크린 샷과 같이 목록 테이블로 변환해야하는 크로스 테이블이있는 경우 데이터를 하나씩 다시 입력하는 것을 제외하고는 다음을 사용할 수도 있습니다. Excel 용 KutoolsTranspose Table Dimensions Excel에서 크로스 테이블과 목록을 빠르게 변환하는 유틸리티.
doc 범위를 열 19로 변환

무료 설치 Excel 용 Kutools는 다음과 같이하십시오.

1. 목록으로 변환하려는 크로스 테이블을 선택하고 쿠툴 > Range > Transpose Table Dimensions.
doc 범위를 열 18로 변환

2. 에 Transpose Table Dimension 대화 상자, 확인 Cross table to list 옵션 Transpose type 섹션에서 새 형식 테이블을 배치 할 셀을 선택합니다.
doc 범위를 열 18로 변환

3. 클릭 Ok, 이제 크로스 테이블이 목록으로 변환되었습니다.


관련 기사:

Excel에서 행을 열로 변경하는 방법은 무엇입니까?

Excel에서 단일 열을 여러 열로 바꾸거나 변환하는 방법은 무엇입니까?

열과 행을 단일 행으로 바꾸거나 변환하는 방법은 무엇입니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (58)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thanks for the tutor, very helpfull
This comment was minimized by the moderator on the site
Wow! This is amazing! My data starts on A2 rather than A1 but when I change that in the formula it's grabbing B2 to start rather than A2. I've tried changing things up but can't seem to get it to work. Can you please LMK what I need to change in the formula? Thanks in advance and appreciate any advise!
This comment was minimized by the moderator on the site
Hello, Graves
Yes, as you said, the formula is not correct when the data starts from A2, in this case, you can apply the following formula:
=OFFSET(mydata,TRUNC((ROW()-ROW($G$1))/COLUMNS(mydata)),MOD(ROW()-ROW($G$1),COLUMNS(mydata)),1,1)

Note: In the above fromula, mydata is the range name of the selected data, G1 is the cell you enter this formula, please change them to your own.
Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Convert table to one column, ignore blank cell and duplicates value. How ?
This comment was minimized by the moderator on the site
After converting the table to a column, using Excel' Remove Duplicate feature to remove the duplicates, then select the column range, use the Delete Blank Rows of Kutools for Excel to remove the blank cells.
This comment was minimized by the moderator on the site
Thank you so much! :)
This comment was minimized by the moderator on the site
the data i am transposing to single column from rows have blanks in it how can i ignore them while transposing
This comment was minimized by the moderator on the site
Hi, sai, you can transpose them to single column firstly, then remove the blank rows. How to remove blank rows, you can go to this article, it introduces 4 ways to remove blank rows, there must be one method can help you. https://www.extendoffice.com/documents/excel/525-excel-remove-blank-rows.html
This comment was minimized by the moderator on the site
thanks a lot; beautifull :-)
This comment was minimized by the moderator on the site
Worked like a charm. Thanks a lot
This comment was minimized by the moderator on the site
thanxs you have reduced my too much time....wonderful
This comment was minimized by the moderator on the site
What if the table you start with has a range of values that is different for each row? Example: Say the table doesn't have FF, KK and LL, how do you make a single column from that table without doing them above example by hand?
This comment was minimized by the moderator on the site
Just try above methods, if they cannot work, please tell me and upload your data as a picture to give some details
This comment was minimized by the moderator on the site
THAT'S AMAZING! THANKYOU
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations