format cell dropdown list

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Format cell as drop-down list if another cell contains certain v

Format cell as drop-down list if another cell contains certain v

resolvedResolved · Medium Priority · Version 2010

Harrison has attended:
Excel Introduction course
Excel Intermediate course
Excel Advanced course

Format cell as drop-down list if another cell contains certain v

Hi there, I'm looking change the format of one cell to a drop-down list, based on the contents of another cell.

I've currently got a IF statement that automatically fills a number of output cells with either 'Yes' or 'No' depending on what is entered into the input cell (AB1). Here is my IF statement:

=IF(OR($AB$1="Role Fit 1",$AB$1="Role Fit 3",$AB$1="Role Fit 5",$AB$1="Role Fit 7"), "Yes", "No")

Now I also want the option to enter "Custom" into the input cell AB1 and then be able to manually select either 'Yes' or 'No' from a drop-down list in each output cell.

So in addition to my current IF statement, if AB1 (the input cell) contains the text "Custom", I want cell AB2 (an output cell) to be reformatted as a drop-down list with the options of 'Yes' or 'No'.

Please could you advise me on how I can achieve this?

Many thanks,

Harrison

RE: Format cell as drop-down list if another cell contains certa

Hello Harrison,

Thank you for your question. The issue with creating a drop down list in a cell which also contains a formula, is that the formula will be deleted when you pick an item from the drop down list.

Also a formula result can't trigger or create a drop down list in another cell. You would need some VBA coding to do that, but I'm guessing you might not want to go down that route.

All I can suggest at this time is to create a drop down in a cell other than the formula cell, to handle custom outcomes.

I will check with my colleagues, in case any of them have found a solution for this type of scenario. If so, we will get back to you with a solution.

Kind regards
Marius Barnard
STL


 

Excel tip:

Hide columns in an Excel 2010 Worksheet

If you don’t want part of the Excel worksheet to be visible or when you don’t want certain data to appear in print outs, then a simple solution is to temporarily hide a column or multiple columns.

Hiding a single column:

1)Right click on the column header of the column you want to hide (this is the grey bar along the top edge of the worksheet)
2)Choose Hide from the menu
3)This column will now be hidden from view

Hide more than one column:

1)In the column header drag select to highlight the columns you want hidden
2)Right click and choose Hide from the menu

View all Excel hints and tips


Server loaded in 0.06 secs.