Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello All,
I have a project where I need to populate a list of Movie Titles within a defined range of values that describe a $spend category. This exercise is done weekly so trying to create a script that could build my data quickly.I mocked up a small sample that is similar to what I am looking for.
In this sample, you can see the Title field is blank and the Defined Variable Field is duplicated in 3 seperate Blocks. What I am trying to achieve is the piece of code that would take a look at my list on sheet lookups and grab the first Title and paste it into cells B2:B6 and then loop this process for the next title and do this until all titles have been populated.
The End Result should look like this
Any help on this is appreciated!
I have a project where I need to populate a list of Movie Titles within a defined range of values that describe a $spend category. This exercise is done weekly so trying to create a script that could build my data quickly.I mocked up a small sample that is similar to what I am looking for.
In this sample, you can see the Title field is blank and the Defined Variable Field is duplicated in 3 seperate Blocks. What I am trying to achieve is the piece of code that would take a look at my list on sheet lookups and grab the first Title and paste it into cells B2:B6 and then loop this process for the next title and do this until all titles have been populated.
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Row | Title | Defined Variable | ||
2 | 1 | Photo | |||
3 | 2 | Marketing | |||
4 | 3 | Publicity | |||
5 | 4 | Media | |||
6 | 5 | Events | |||
7 | 1 | Photo | |||
8 | 2 | Marketing | |||
9 | 3 | Publicity | |||
10 | 4 | Media | |||
11 | 5 | Events | |||
12 | 1 | Photo | |||
13 | 2 | Marketing | |||
14 | 3 | Publicity | |||
15 | 4 | Media | |||
16 | 5 | Events | |||
Sheet1 |
Book1 | |||
---|---|---|---|
A | |||
1 | List of Titles | ||
2 | Harry Potter | ||
3 | Speed | ||
4 | Lion King | ||
5 | Aliens 2 | ||
Lookups |
The End Result should look like this
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Row | Title | Defined Variable | ||
2 | 1 | Harry Potter | Photo | ||
3 | 2 | Harry Potter | Marketing | ||
4 | 3 | Harry Potter | Publicity | ||
5 | 4 | Harry Potter | Media | ||
6 | 5 | Harry Potter | Events | ||
7 | 1 | Speed | Photo | ||
8 | 2 | Speed | Marketing | ||
9 | 3 | Speed | Publicity | ||
10 | 4 | Speed | Media | ||
11 | 5 | Speed | Events | ||
12 | 1 | Lion King | Photo | ||
13 | 2 | Lion King | Marketing | ||
14 | 3 | Lion King | Publicity | ||
15 | 4 | Lion King | Media | ||
16 | 5 | Lion King | Events | ||
17 | 1 | Aliens 2 | Photo | ||
18 | 2 | Aliens 2 | Marketing | ||
19 | 3 | Aliens 2 | Publicity | ||
20 | 4 | Aliens 2 | Media | ||
21 | 5 | Aliens 2 | Events | ||
Sheet1 |
Any help on this is appreciated!