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"
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I am not sure that I have understood correctly but is this what you mean?

Make the table into a 'formal' table (Insert ribbon tab -> Table)
In F11 I have entered the Data Validation as shown below.

smitpau 2020-05-05 1.xlsm
EFG
5£$
6£'000$'000€'000
7£m$m€m
8
9
10£
11
Sheet1
Cells with Data Validation
CellAllowCriteria
F11List=INDIRECT(SUBSTITUTE("Table1[#]","#",F10))


1588670430625.png



If I change F10 to $ then

1588670487120.png
 
Upvote 0
That is exactly what I'm after thanks for the quick response.

It would also have the currency symbol as the first item in the drop-down.

For some reason when I try to use the indirect formula as a list it says "the list source must be a delimited list, or a reference to a single row or column" I'll keep trying though,

Thanks.
 
Upvote 0
Sorry I forgot to put the currency in F10, now it says the Source currently evaluates to an error, so a drop down icon is shown but no options are visible.
 
Upvote 0
now it says the Source currently evaluates to an error,
Do you have a formal table as described earlier?

Have you checked the table name in the DV formula is the same as the actual table name? Check the table name in Formulas ribbon tab -> Name manager
 
Upvote 0
Ah right great thanks that's it, that's all working now, I didn't tick the table has headers box so it inserted another row at the top.

Much appreciated this is very useful, will have to commit it to memory.
 
Upvote 0
Sorry one final thing as the Currency symbols may change is it possible to use a table like below and start with the second row for the formula (where the currencies cell reference to elsewhere).

Returns Model Draft 5.5.20 .xlsm
BMBNBO
2Currency 1Currency 2Currency 3
3£$
4£'000$'000€'000
5£m$m€m
Settings
Cell Formulas
RangeFormula
BM3BM3='FX Rates'!C6
BN3BN3='FX Rates'!C7
BO3BO3='FX Rates'!C8
BM4:BO4BM4=BM3&"'000"
BM5:BO5BM5=BM3&"m"
 
Upvote 0
Is this what you mean?

smitpau 2020-05-05 1.xlsm
BMBNBO
2Currency 1Currency 2Currency 3
3£$
4£'000$'000€'000
5£m$m€m
6
7
8
Sheet1
Cells with Data Validation
CellAllowCriteria
BN8List=INDEX($BM$3:$BO$5,0,MATCH($BN$7,$BM$3:$BO$3,0))


1588673396193.png
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,581
Members
449,089
Latest member
Motoracer88

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