Dynamic Data Validation

smitpau

Board Regular
Joined
Apr 2, 2020
Messages
167
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to create a dynamic data validation list so it essentially works like a =Cell & "Drop Down List" formula.

Basically I'd like to put a currency symbol before the Units (blank, '000, m) which is a referenced table, it's sticking the currency at the front of the dropdown list that's the tricky part, the Excel table below gives you an idea of how it would ideally work.

Hope that's clear.

Thanks for reading, any suggestions welcome.

Book2
EFG
4Units
5£$
6£'000$'000€'000
7£m$m€m
8
9P&L 1
10££
11Unit Dropdown ->£'000
12£m
13P&L 2
14$$
15Unit Dropdown ->$'000
16$m
17P&L 3
18
19Unit Dropdown€'000
20€m
Sheet1
Cell Formulas
RangeFormula
E6:G6,F19,F15,F11E6=E5&"'000"
E7:G7,F20,F16,F12E7=E5&"m"
 
IF your version of Excel 365 has the FILTER function, another option is ...

Use a vacant column (BS for me) and enter the formula shown for BS3. The other values will automatically 'spill' into BS4:BS5. You could then hide this column if you want.
The Data Validation formula then becomes very simple.

smitpau 2020-05-05 1.xlsm
BMBNBOBPBQBRBS
2Currency 1Currency 2Currency 3
3£$$
4£'000$'000€'000$'000
5£m$m€m$m
6
7$
8
Sheet2
Cell Formulas
RangeFormula
BM3BM3='FX Rates'!C6
BN3BN3='FX Rates'!C7
BO3BO3='FX Rates'!C8
BM4:BO4BM4=BM3&"'000"
BM5:BO5BM5=BM3&"m"
BS3:BS5BS3=FILTER(BM3:BO5,BM3:BO3=BN7)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
BN8List=$BS$3#


1588673906409.png
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Perfect!

Clever use of Index match and filters I haven't seen before but looks useful also didn't realise # could be used in a formula.

That really is it now.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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