Excel – chuyển hàng thành cột, cột thành hàng

Đôi khi chúng ta muốn chuyển đổi bảng dữ liệu trong Excel theo kiểu hàng thành cột hoặc ngược lại. Ví dụ, chúng ta có bảng dữ liệu như sau:

Nguồn
Mã hàng Tên hàng Số lượng Giá
#01 A 2 5

Bảng dữ liệu đích:

Mã hàng #01
Tên hàng A
Số lượng 2
Giá 5

Để chuyển băng dữ liệu như vậy, trước hết chúng ta chọn bảng dữ liệu nguồn và copy (Ctrl + C)

Sau đó chọn vùng dữ liệu mới (nơi muốn copy tới), click chuột phải trên ô muốn copy dữ liệu tới, chọn Paste Special, chọn Transpose > OK.

Xem thêm hình hướng dẫn chi tiết bên dưới đây

1

Khắc phục lỗi không chạy VBA trong Excel

Error Message: This workbook has lost its VBA project, Active X controls and any other programmability-related features.

by SigmaXL Inc. on October 16, 2012

Error Message: This workbook has lost its VBAproject, Active X controls and any other programmability-related features.

If you encounter the above error, you may not have Visual Basic for Applications installed with Excel.

To resolve this issue, please follow the steps below:

1. Close Excel if it is open.

2. In the Control Panel choose “Add or Remove Programs” (or Programs and Features in Windows Vista / Windows 7).

3. Select Microsoft Office in the list and click on the Change button.

4. Choose “add or remove features”.

5. Select “Visual Basic for Applications” in the “Office Shared Features” list and set it to “Run from My Computer”. Then click on the continue button.