Hey,
I basically have 2 sheets lets call them Data sheet and Destination sheet.
Data sheet has around 30 columns and Destination sheet has around 15 columns.
I want to populate the 15 columns if they match any of the headers from the data sheet file and if column 3 in the datasheet file is 0
I can do this using a loop but its a file with around 1 million cells so I think using an array would be way better but I am really new to writing Array so would love some help on this.
The outcome would look something like this: (with more columns and on another sheet but I hope you get the idea). As you can see only the rows are copied if column 3 = 0 and if the headers match
Regards,
Bassie
I basically have 2 sheets lets call them Data sheet and Destination sheet.
Data sheet has around 30 columns and Destination sheet has around 15 columns.
I want to populate the 15 columns if they match any of the headers from the data sheet file and if column 3 in the datasheet file is 0
I can do this using a loop but its a file with around 1 million cells so I think using an array would be way better but I am really new to writing Array so would love some help on this.
The outcome would look something like this: (with more columns and on another sheet but I hope you get the idea). As you can see only the rows are copied if column 3 = 0 and if the headers match
Day | Sales Person | Quantity | Sales | Sales | Quantity | Sales person | |||
7/1/2022 | Jill | 0 | $3,848 | $ 3,848 | 0 | Jill | |||
7/1/2022 | Jack | 2 | $ 850 | $ 252 | 0 | Jack | |||
7/1/2022 | John | 2 | $ 982 | $ 246 | 0 | Jack | |||
7/2/2022 | Jack | 0 | $ 252 | $ 1,344 | 0 | John | |||
7/2/2022 | Jill | 5 | $2,315 | ||||||
7/2/2022 | Jack | 0 | $ 246 | ||||||
7/2/2022 | John | 3 | $ 996 | ||||||
7/3/2022 | John | 0 | $1,344 | ||||||
7/3/2022 | Jack | 3 | $ 702 | ||||||
7/4/2022 | Jack | 7 | $3,269 | ||||||
7/4/2022 | Mary | 4 | $1,232 | ||||||
7/5/2022 | Jill | 9 | $2,925 | ||||||
7/4/2022 | Mary | 4 | $1,232 | ||||||
7/5/2022 | Jill | 9 | $2,925 |
Regards,
Bassie