Forum Discussion
OriolFontanals
Aug 23, 2022Copper Contributor
Formula IF, returns a value or show a list
Hello all,
I need to create a formula if, that returns "Not applicable" if value is "No", and need to show a dropdown list if value is "Yes".
Coudln't find anything in Internet.
Thanks in advance
See the attached sample workbook. You'll have to allow macros when you open it.
- OriolFontanalsCopper ContributorGreat Hans!
Thanks what I was looking! Just one question, how did you make it, that when select "No" it directly shows the "Not applicable"? I tried to mimic it, but still have to select it from the dropdown box (with just Not applicable value").Right-click the sheet tab and select 'View Code' from the context menu.
You'll see the Worksheet_Change event procedure in the worksheet's code module.
This fills or clears B2.