Copying a formula that requires a referenced cell in quotations across multiple cells

bnbcat

New Member
Joined
Apr 27, 2016
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hello,

I'm having trouble with a formula that references a cell, but it must be in quotes.
='PER1'!F28-INDIRECT(D16&"!F28")

It's kind of hard to explain in text, so bear with me!

I have 3 sheets with raw data, titled PER1, PER2, and PER3, with equivalent data for different time periods across the sheets.

I have a 4th sheet that will calculate the variance between a cell in PER1 and the same cell in whatever sheet is indicated in cell D16.

My issue is that the formula I have works great, but I have to apply this to literally thousands of cells, which I can't do easily because of the quotation marks.

Is there any workaround so I can apply this formula to mass cells?

Thanks
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi
Try something like this
VBA Code:
='PER1'!F28-INDIRECT(D16&"!F"&ROW())
ROW() indicate the row number for the cell or range with the formula then you can add or subtract constant to achieve the desired value
So when you drag down row() will increments and you get what you want
Hope this helps
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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