Generating formula from drop down boxes

swankyg

New Member
Joined
Mar 7, 2019
Messages
3
I'm trying to create a sheet that will compare data between two other sheets (at least one from different workbooks). Using drop down boxes in column A you can select which workbook to use (the name of the workbook follows a pattern: text/FY/Quarter/Region). This is shown in B29, generated from the drop downs in column A.

I've written a formula to compare the values that I can copy across cells (shown without =). I want to generate this formula, so that when I select from the dropdown boxes, the formulas all change to reflect new data.

How do I do this? I've tried a couple of things that didn't work, I'm at a loss. Thanks for any help.

1624007031332.png
 

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 Swankyg,

You'll need to use INDIRECT, something like this.

Your FY sheet

Front Office-KPIs-FY21Q3 (HK).xlsx
FGH
5
6Dog
7Cat
8Mole
9
HK


The retrieval sheet

Swankyg.xlsx
ABCDEFGH
4Select
521This sheetSame cell from column G in Front Office-KPIs-FY21Q3 (HK).xlsx
63RabbitDog
7HKGoatCat
8SheepMole
HK
Cell Formulas
RangeFormula
H6:H8H6=INDIRECT("'[Front Office-KPIs-FY"&$A$5&"Q"&$A$6&" ("&$A$7&").xlsx]"&$A$7&"'!"&CELL("address",G6))
Cells with Data Validation
CellAllowCriteria
A5List20,21,22,23
A6List1,2,3,4
A7ListEMEA,HK,US,LAD
 
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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