![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Ontario
Posts: 52
|
I would like to do the following:
if a1=0,then default b5 to X, else, have dropdown list in b5, listing Y and Z as possible values. I bow down to your expertise........... |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
In data validation that you set up in B5 opt for List for Allow and enter the following formula: =IF(A1=0,List1,List2) List1 will be active if A1 is empty or houses the number 0. If a real 0 must be the value of A1 for X, then use: =IF(AND(LEN(A1)=0,A1=0),List1,List2) Aladin |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Ontario
Posts: 52
|
So close! Thankyou!
My problem is that if the user doesn't remember to fill in cell a1,(ie a1 =0) I want cell b5 to default to X automatically. If the user does fill in cell a1, then I want to offer dropdown list1 in B5. Your solution is great, but it requires user to enter default in B5 by selecting from "other" list. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|