Hi All,
If I select Yes in "D2", a dop down has to come in "C4", if I again change the D2 to N/A the C4 has to change to "N/A" automatically
Screenshot_30.png
Hi All,
If I select Yes in "D2", a dop down has to come in "C4", if I again change the D2 to N/A the C4 has to change to "N/A" automatically
Screenshot_30.png
Last edited by sahana108; 07-14-2021 at 06:05 AM.
You can't have both a drop down and also a formula that references another cell without using a macro.
Is this the whole story though. Do E2:G2 have similar drop downs to which C5:C7 are dependent.
Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.
Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
You can only make it work once.
Make a list in datavalidate (Data--> Datavalidate) with N/A;Yes;No in cell C4
Then Write =IF(D2="N/A";"N/A";"Y") in C4
Then delte N/A from the list in datavalidate
IT Works as long at you only change i D2 and not choce on the list in C4. When you do that, the IF-formula disapeares.
A Macro will be more solid.
Thanks for your input Birthel.
I have tried with name manager, the problem is when we change the parent cell drop-down list getting updated and leaving the text what we have selected last time.
I need only when I select N/A the destination has to N/A if I select Yes a drop-down of Yes No and if I select again N/A the drop-down to disappear and N/A should come.
Would appreciate if any suggestions. Thank you..!!
What's the answer to the question in #2?
Hi Richard,
I have uploaded a new file in my original post, can you please check now. Thanks
Hi
You can't lock cells by chosing in a datavalidation.
You have to use a control and submit a macro.
(developer)
Attachment 740609
Attachment 740610
(The screen are from Danish Excel, but til buttons are at the same place)
It can be something like this:
With ActiveSheet.Range("C4").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Y,N"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
and to lock:
ActiveSheet.Range("C4").Locked = True
Best regards.
Hello Birthel,
Thanks for your coding.
Can I please have the working sheet?
Thank you.
Why not just have the drop downs in C4:C7 with the N/A as the first of the three items.
It/s not clear what your D2:G2 dropdowns achieve. One way or another you will be selecting either NA, Yes or No. At the moment you're just adding to the number of selections you need to make.
I am sorry that it has taken a little time - i was on holliday last week.
Yes - if I can upload it :-) (new i the forum)
Best Regards
Birthe
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks