Forum Discussion

OriolFontanals's avatar
OriolFontanals
Copper Contributor
Aug 23, 2022

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

    • OriolFontanals's avatar
      OriolFontanals
      Copper Contributor
      Great 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").
      • HansVogelaar's avatar
        HansVogelaar
        MVP

        OriolFontanals 

        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.

Resources