copy data based on part of item when matching more than 34 sheets and invert value for one item

MKLAQ

Active Member
Joined
Jan 30, 2021
Messages
415
Office Version
  1. 2016
Platform
  1. Windows
Hi experts ,
I need macro for about 4000 rows for each sheet and about more than 34 sheets when matching part of item across sheets
so the parts of items waht I want matching across sheets are
(CCS DEL,MASROUFA FGRTERE,SSMT TRYU,PTT REF)
then should copy data to FTT sheet start arrainging date fro old to last with sort items from A-Z and invert the value for just SSMT TRYU from column D to column C and delete any characters before or after parts of items as show the result in FFT sheet and should deal any new data or change in others sheets without repeat copying data have already copied.
MK.xlsm
ABCD
1DATEIDBUYINGSELLING
2
3
4
5
6
7
8
9
FTT


MK.xlsm
ABCD
1DATEIDBUYINGSELLING
207/20/2023CCS DEL CCR1-CMB1 G80000233
307/20/2023CCCH Y8888 HJJJ 7000LM123
402/21/2023CCS DEL CVBBBB20000 NMUI 345000124
502/21/2023CVBBBB20000 NMUI 3450011232
602/21/2023CVBBBB20000 NMUI 345002443
702/21/2023MASROUFA FGRTERE 80000 JKHHGTTT1004
802/22/2023HGJGG PTT REF FGRTERE 90000 455566
902/23/2023SSMT TRYU CCR1-CMB8BB NMJ7000700
1002/24/2023PTT REF MNDFHHHH 50000 JK90088
ASH



MK.xlsm
ABCD
1DATEIDBUYINGSELLING
207/20/2023 CCS DEL CCR1-CMB1 G18000050
307/20/2023CCCH Y8888 HJJJ 17000LM123
407/20/2023CVBBBB20000 123NMUI 34500011
507/20/2023CVBBBB20000 NMUIGH34 345001222
602/21/2023TRYCVBBBB20000 NMUI 345002113
702/21/2023SSMT TRYU NMJFRTERE 80000 JKHHGTTT1004
802/21/2023MTHYHGJGG FGRTERE 90000 455523
902/21/2023ASDFFCCR1-CMB8BB NMJ700077
1002/21/2023MNDFHHHH 50000 JK900 PTTTR50023
GHF2


result should be

MK.xlsm
ABCD
1DATEIDBUYINGSELLING
207/20/2023CCS DEL233
307/20/2023CCS DEL50
402/21/2023CCS DEL124
502/21/2023MASROUFA FGRTERE4
602/21/2023SSMT TRYU4
702/22/2023PTT REF66
802/23/2023SSMT TRYU700
902/24/2023PTT REF88
FTT
 
Did you put keyvalue in Column G Sheets FTT?
Ok this is my bad ,sorry 🙏
I tried run 38sheets (each sheet around 4k rows) , it takes roughly 5-10second (macos)
May you tell me how many rows for each sheet?
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
there is problem about in column G will also take another values from others sheets without show items in FTT sheet . it seems the
problem from empty cells in column G, will brings the all of data whether matched with others sheets or not existed in column G how I can fix it?
 
Upvote 0
there is problem about in column G will also take another values from others sheets without show items in FTT sheet . it seems the
problem from empty cells in column G, will brings the all of data whether matched with others sheets or not existed in column G how I can fix it?
Im guessing it might be loop through sheets problem? Are there any sheets that you dont want to execute?

It would be good if you send the exact error picture or data for debugging, Otherwise a little bit hard to get your thought.
 
Upvote 0
I'm not sure what happens, but I have to find out what's my bad before I answer you again.
thank you
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top