Dynamic Data Validation

Joined
Oct 29, 2015
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have created a dynamic data validation formula which originally was set up to allow a single party to allocate a unique Reference Number to a particular line item from a cost ledger.

However I am now required to adjust this formula so that another party can also review the document and add a unique Reference Number.

In the attached I have DC001, DC002 and DC003 in the first table but in the second table I have DC004 (being the next available item to select), However the dropdown in the first table still shows DC004 as being able to be selected even though it has already been picked by the second reviewer. Can anyone help resolve?

Sample.xlsx
BCDEFGH
2TypeHelperDC #TypeHelperDC #
3XTrueXTrue
4XTrueFeeTrue
5XTrueDisallowedFalseDC004
6DisallowedFalseDC001True
7DisallowedFalseDC002True
8DisallowedFalseDC003True
9DisallowedFalseTrue
10TrueTrue
Raw Data
Cell Formulas
RangeFormula
C3:C10,G3:G10C3=IF(B3="Disallowed","False","True")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:H1048343Expression=$A3="R"textNO
D3:D10,H3:H10Expression=C3="True"textNO
Cells with Data Validation
CellAllowCriteria
D2List=Register!$B$7#
D3List=IF(C3="False",Register!#REF!#)
D4:D10List=IF(C4="False",Register!$B$7#)
H2List=Register!$B$7#
H3List=IF(G3="False",Register!B8#)
H4:H10List=IF(G4="False",Register!$B$7#)


Sample.xlsx
BCD
6DC Ref.Identified By
7DC004DC001
8DC005DC002
9DC006DC003
10DC007DC004
11DC008DC005
12DC009DC006
13DC010DC007
14DC011DC008
15DC012DC009
16DC013DC010
Register
Cell Formulas
RangeFormula
B7:B53B7=FILTER(Register!$C$7:$C$56,COUNTIF('Raw Data'!D:D,Register!$C$7:$C$56)=0)
Dynamic array formulas.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Just looking at this further I have added another column to compare whether applied = allowed. If there is the joint agreement column shows "Yes". I've then modified the formula in second Column DC# to check if this is true. If it is then it yields the same DC reference as that of the first DC# Column. If not the next sequential number is selected from the table on Tab 2:

Sample1.xlsx
BCDEFGHIJK
3AppliedCost Ledger AllocationHelperDC #AllowedHelperJoint AgreementDC #
4XXTrueXTrueN/A
5XXTrueFeeTrueN/A
6DisallowedXFalseDC006DisallowedFalseYesshould be DC006 but allows me to select DC004 then DC007 etc.
7XXTrueXTrueN/A
8XXTrueXTrueN/A
9XXTrueXTrueN/A
10XXTrueTrueN/A
11XTrueTrueN/A
12XTrueTrueN/A
13XTrueTrueN/A
14XTrueDisallowedFalseN/ADC004
15XTrueTrueN/A
16XTrueTrueN/A
17DisallowedXFalseDC001DisallowedFalseYesShould be DC001
18DisallowedXFalseDC002DisallowedFalseYesShould be DC002
19DisallowedXFalseDC003DisallowedFalseYesShould be DC003
20DisallowedXFalseDC005DisallowedFalseYesShould be DC005
1
Cell Formulas
RangeFormula
H4:H20H4=IF(G4="Disallowed","False","True")
I4:I20I4=IF(AND(H4="False",D4="False"),"Yes","N/A")
D4:D20D4=IF(B4="Disallowed","False","True")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:J1048333Expression=$A4="R"textNO
J4:J20Expression=H4="True"textNO
E4:E20Expression=D4="True"textNO
Cells with Data Validation
CellAllowCriteria
E3List='2'!$B$4#
E4List=IF(D4="False",'2'!#REF!#)
E5:E20List=IF(D5="False",'2'!$B$4#)
J3List='2'!$B$4#
J4:J20List=IF($I14="Yes",$E4, '2'!$B$4#)

One way:
Excel Formula:
=FILTER(C7:C56,(COUNTIF('Raw Data'!D:D,C7:C56)=0)*(COUNTIF('Raw Data'!H:H,C7:C56)=0))&""
Problem Solved! Thank you Kevin.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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