montecristo
New Member
- Joined
- Jan 3, 2022
- Messages
- 5
- Office Version
- 2011
- Platform
- MacOS
Greetings all,
I am wondering if it is possible to apply an index formula across multiple ranges in a quick and easy way rather than having to copy and paste for every new range.
Below is an image of my spreadsheet:
I'm trying to create so automated way that I can apply the following index formula to each seperate range. The ranges vary in size to complicate things.
The formula column D is as follows:
=INDEX($E$2:$E$12,MATCH(B2,$A$2:$A$12,0))
Is there any way I can apply this to the red highlighted regions via VBA code?
I guess the code would have to identify the range each time and then loop, but this is way beyond my skills.
Any assistance would be greatly appreciated.
Cheers.
I am wondering if it is possible to apply an index formula across multiple ranges in a quick and easy way rather than having to copy and paste for every new range.
Below is an image of my spreadsheet:
I'm trying to create so automated way that I can apply the following index formula to each seperate range. The ranges vary in size to complicate things.
The formula column D is as follows:
=INDEX($E$2:$E$12,MATCH(B2,$A$2:$A$12,0))
Is there any way I can apply this to the red highlighted regions via VBA code?
I guess the code would have to identify the range each time and then loop, but this is way beyond my skills.
Any assistance would be greatly appreciated.
Cheers.