Data Validation Source Formula show up in Cell B1

bobaol

Board Regular
Joined
Jun 3, 2002
Messages
188
Office Version
  1. 365
  2. 2003 or older
Platform
  1. Windows
Hello, I have a Data Validation Source Formula in cell A1. The Source is =Dropdown!$E$4:$E$216 . What I want to do is in cell B1, list out this formula as text. Cell B1 would be ''=Dropdown!$E$4:$E$216 or something like that. I want to do this because in cell A2, the data validation source is =Instructions!$A$15:$A$28 . So, in cell B2, I want cell B2 to say ''=Instructions!$A$15:$A$28. or something like that. Then cell A3 is different, and so on. Thanks in advance.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
VBA is acceptable, function is acceptable. I am on Excel Office 365 ProPlus. Thanks.
 
Upvote 0
ABCD
1B=$D$2:$D$5ValidList
26=MOD(A2,3)=0A
3Something elseNo formulaB
4C
5D
Sheet4
Cell Formulas
RangeFormula
B1:B3B1=GetFormula(A1)
Cells with Data Validation
CellAllowCriteria
A1List=$D$2:$D$5
A2Custom=MOD(A2,3)=0


VBA Code:
Function GetFormula(r As Range) As String

    GetFormula = "No formula"
    On Error Resume Next
    GetFormula = r.Validation.Formula1
    
End Function
 
Upvote 0
Solution

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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