Modifying Dataset and Copying Over to Sheets

ultralightbeam

New Member
Joined
May 31, 2018
Messages
1
Hi, I'm new to making and using macros, I was wondering if anyone can help me program the following if its not too much work. I've tried making something similar with recording, but it doesnt come out right. Any help would be appreciated!


Background:
Dataset in 1 Sheet with ~200K lines, looking to replace some of the dataset based on lookup tables and output them by region (separate tabs)
Macro To do:
1. Using raw data set (tab called "Page1"), replace fields in column K based on lookups in table called "Business", only if column AE is on a table called "City", otherwise paste value from column AE
2. Each Tab is a Region Name (Canada, USA, etc). If Tab name matches Column AK, copy each line starting on row 10 for the following:
- Column AK (from "Page1")
- Column AE (from "Page1")
- Column AG (from "Page1")
- Column K (from "Page1")
- Leave as blank
- Look up Column T, if maching value as "Jan", then paste value from Column N

I do have an example of the file, but not sure how I can attach here.

Thank you so much!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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