LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default can you make a drop down list in a drop down list?

I am trying to do the same thing and the second list will only work for 4 IF
functions, and I have 6. So, how do I get around that limit?

"trexcel" wrote:

I found this post very helpful and it answered my questions without posting a
new string. However, I have my first drop down list looking at 20 different
names, and my second dropdown list looking at 20 different lists, contingent
on which name I choose from the first list. There seems to be a limit on how
many levels you can do with the IF function, because I am getting errors when
I try to do this many.

To isolate the problem try this formula in a blank spread sheet, in say cell
B1:

=IF(A1=1,M1:M10,IF(A1=2,N1:N10,IF(A1=3,O1:O10,IF(A 1=4,P1:P10,IF(A1=5,Q1:Q10,IF(A1=6,R1:R10,IF(A1=7,S 1:S10,IF(A1=8,T1:T10,0))))))))

That works but if you add another two "levels":

=IF(A1=1,M1:M10,IF(A1=2,N1:N10,IF(A1=3,O1:O10,IF(A 1=4,P1:P10,IF(A1=5,Q1:Q10,IF(A1=6,R1:R10,IF(A1=7,S 1:S10,IF(A1=8,T1:T10,IF(A1=9,U1:U10,0)))))))))

...You get the following error:

The specified formula cannot be entered because it uses more levels of
nesting than are allowed in the current file format.

Can we change the file format? Is there another totally different method to
achieve this? Would the same issues face us if we went to a combobox? (I am
not very familiar with combo boxes) Do you have any remedy for this at all?



"NoBloatwarePlease" wrote:

Comrade Burlingham,

This is actually pretty simple, it just took me about a half hour to figure
out what the syntax is for the IF formula you put in your secondary (or
tertiary, or quaternary, whatever) dropdown list validation cell.

Example: I have a basic list of general property types: Retail, office and
industrial. In cell B1, I want the user to select one of the 3 types. In
B2, though, I want her to select the SUBtype; i.e., if she selects Retail in
B1, I want her to see only the retail subtypes in B2. If she selects Office
or Industrial in B1, I want her to see only the Office or Industrial subtype
list when she clicks the B2 dropdown. Let's say I've created the four
(General, Retail, Office and Industrial) dropdowns in another sheet in the
same workbook and have given each range the names George, Ronald, Oscar and
Izzy, though giving them the same names as the categories is okay, too).
Then I go back to cell B1 in my main sheet and select Data | Validation
(Excel 2007), choose List and write in the formula, =George. When done, if I
select cell B1, I'll have a dropdown that lists Retail, Office and
Industrial. Then I go to cell B2, select Data | Validation, choose List,
and--here's the secret--enter an IF formula as follows:

=IF(B1="Retail",Ronald,IF(B1="Office",Oscar,IF(B1= "Industrial",Izzy,"Wrongamundo, Buckwheat!")))

There are 3 IF statements, so you have to have 3 closing parens on the end,
of course. But the trick is to identify the text in B1 in quotes (because
text is what Excel will see there), and the named range WITHOUT quotes,
because Excel sees it as a range address, not as text. The formula really
won't return "Wrongamundo, Buckwheat!" if the user fails to select one of the
three types, because those are the only ones I allowed. But I could have
allowed a user-created entry.

Pretty slick, eh? The cool part is you can create as many dropdown levels
as you have levels of patience to enter long, nested "IF" formulas...
__________________________
"Sburlingham" wrote:

I have a problem, i created a drop down list of jobs that could have been
preformed i need to create another list for each of those jobs to be more
specific with what exactly was preformed i had this great idea that maybe if
i picked for example warranty work that another list would drop down and let
me pick manufacturing or vendor then another list would drop down and i could
pick what kinda manufact. or vendor warranty it was. this may not be possible
though it would be a great thing to implement in the future i need a way that
is user friendly to detail what work was done. any ideas?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text to Columns from drop down list update Kurgan Excel Discussion (Misc queries) 0 June 21st 05 12:14 PM
Drop down List problems LHearn Excel Discussion (Misc queries) 2 June 20th 05 10:37 PM
Drop down list with an if statement khelton Excel Worksheet Functions 2 June 6th 05 09:11 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM
edit a drop down list paulp Excel Discussion (Misc queries) 1 December 22nd 04 03:20 PM


All times are GMT +1. The time now is 03:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"