Macro for transfer information

Cris_93

New Member
Joined
Nov 1, 2019
Messages
22
Office Version
  1. 2016
Platform
  1. Windows
Hello Excel Masters :biggrin:

I need to develop a macro that transfers information from one file to another and I need your help please.

The file from which the information comes is the below one:
1589817648926.png


The information I need to transfer is from columns D (RTO021,RTO022,etc.), column O (28000, 2000,etc) and the date from the merged cells G to N (07/06/2020).

The macro should grab this information and place it into a final final with the below aspect:
ProductFactTypeUnitDateValueMarket
RTO021RollingForecastP
07/06/2020​
28000​
DEFAULT
RTO022RollingForecastP
07/06/2020​
2000​
DEFAULT
RTO137RollingForecastP
07/06/2020​
6200​
DEFAULT
RTO051RollingForecastP
07/06/2020​
0​
DEFAULT
RTO053RollingForecastP
07/06/2020​
475​
DEFAULT
RTO026RollingForecastP
07/06/2020​
0​
DEFAULT
RTO028RollingForecastP
07/06/2020​
1800​
DEFAULT
RTO002RollingForecastP
07/06/2020​
0​
DEFAULT
RTO057RollingForecastP
07/06/2020​
2200​
DEFAULT

Columns "Fact Type", "Unit", "Market" and "Date" should have always the same value and the ones containing "Product", and "Value" should change accordingly.

Could you please help me with this?

Thank you,
Cristian
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi,
I’ve got one question before I prepare a code for you. Where do you take the date from in merged cells G-N? Is it done by the function /formula (if so can you show the formula placed there?) or is it a string as seen in the screen?
 
Last edited:
Upvote 0
Hi Mentor82,

The date is placed there by an user :)

Thank you,
Cristian
 
Upvote 0
Basically an file like this is generated by week and the date that is allocated to that cell is the Monday that always depending on the week.

Thanks Mentor82,
Cristian
 
Upvote 0

Forum statistics

Threads
1,215,358
Messages
6,124,487
Members
449,165
Latest member
ChipDude83

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