các pác cho mình hỏi code để dò tìm trên nhiều sheets?

Liên hệ QC

anhchanghamhoc

Thành viên mới
Tham gia
18/12/06
Bài viết
40
Được thích
2
Các pác cho mình hỏi có code nào dùng để dò tìm trên nhiều sheet, nói cách khác là mình muốn tập hợp thông tin từ nhiều sheets lên 1 sheets tổng nhưng việc lấy thông tin nào có chọn lọc theo đều kiện
xem chi tiết tại file sau:

các pác chỉ cho mình 1 code
thank you!!!
 

File đính kèm

  • AIR.237(MTK).rar
    16.1 KB · Đọc: 61
Chỉnh sửa lần cuối bởi điều hành viên:
Decide whether to update links
The workbook you have opened (called a destination file (destination file: The file that a linked or embedded object is inserted into. The source file contains the information that is used to create the object. When you change information in a destination file, the information is not updated in the source file.)) contains links to other workbooks or files (called source files (source file: The file that contains information that was used to create a linked or embedded object. When you update the information in the source file, you can also update the linked object in the destination file.)). If the source has changed, then the workbook you are opening uses data that is out of date.
(trích từ help)

Mình down file về nhưng toàn chữ tây không muốn đọc. Bạn thử dùng link xem đc không ? Mình thường dùng để lấy dữ liệu từ các sheet vào 1.
 
Upvote 0
Mình dò tìm cácGrand TotalValue of Material(fabric+freight)Transportation to Vietnam & InsValue of Material(fabric)Labor
từ cột A của các sheets thông qua công thức match
Cut #Amt.ColorStyle #
từ cột F của các sheets thông qua công thức match
Dùng Index để kiếm giá trị các cột có số dòng tương ứng với các hàng đã được dò tìm ở phía trên
 
Upvote 0
Mã:
Option Explicit
Public Function Range_GPE(shtName, rngData As Range) As Range
Set Range_GPE = Range(shtName & "!" & rngData.Address)
End Function
Bạn hãy tìm hiểu các công thức mà mình lập (cả hàm Excel và VBA).
Làm theo HD tại sheet List!
 

File đính kèm

  • AIR.237(MTK)_GPE.rar
    22.8 KB · Đọc: 100
Upvote 0
Web KT
Back
Top Bottom