OilEconomist
Active Member
- Joined
- Dec 26, 2016
- Messages
- 439
- Office Version
- 2019
- Platform
- Windows
Thanks in advance for any suggestions which I will give feedback.
My actual file/case is much larger and entails a much larger amount of cells, but I have simplified it here.
I have my cells NameRanged and I would like to copy a formula which includes the name ranges, but it remains static when I do it. Is there a VBA code or something to where it will change the formula based on the name ranges.
For example say cells A1 and A2 are named Oil.Volume.1 and Oil.Volume.2 and I make cell A3 = Oil.Volume.1 + Oil.Volume.2
Now say cells:
If I copy cell A3 to B3, C3, and D3, it will make:
Understandably I can make a A3 = A1 + A2 so that:
But as I indicated, the spreadsheet is much larger, and the formulas involve more cells than indicated. Additionally, I would like to see the name ranges to help identify what cells are a part of the calculation as it’s not as simple as the given example.
My actual file/case is much larger and entails a much larger amount of cells, but I have simplified it here.
I have my cells NameRanged and I would like to copy a formula which includes the name ranges, but it remains static when I do it. Is there a VBA code or something to where it will change the formula based on the name ranges.
For example say cells A1 and A2 are named Oil.Volume.1 and Oil.Volume.2 and I make cell A3 = Oil.Volume.1 + Oil.Volume.2
Now say cells:
- B1 and B2 are named Oil.Volume.3 and Oil.Volume.4
- C1 and C2 are named Oil.Volume.5 and Oil.Volume.6
- D1 and D2 are named Oil.Volume.7 and Oil.Volume.8
- etc.
If I copy cell A3 to B3, C3, and D3, it will make:
- B3 = Oil.Volume.1 + Oil.Volume.2 vs. Oil.Volume.3 and Oil.Volume.4
- C3 = Oil.Volume.1 + Oil.Volume.2 vs. Oil.Volume.5 and Oil.Volume.6
- D3 = Oil.Volume.1 + Oil.Volume.2 vs. Oil.Volume.7 and Oil.Volume.8
Understandably I can make a A3 = A1 + A2 so that:
- B3 = B1 + B2
- C3 = C1 + C2
- D3 = D1 + D2
But as I indicated, the spreadsheet is much larger, and the formulas involve more cells than indicated. Additionally, I would like to see the name ranges to help identify what cells are a part of the calculation as it’s not as simple as the given example.