Results 1 to 22 of 22

Data Validation (List) too long

Threaded View

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    20

    Data Validation (List) too long

    I am trying to create a drop down list that see's the entry to left of it and brings down the appropriate list.
    My code is as follows:

    =IF(A2="1 BCT",FBCTBNS,IF(A2="2 BCT",SBCTBNS,IF(A2="3 BCT",TBCTBNS,IF(A2="4 BCT",FORTHBCTBNS,IF(A2="212 FIRES",TOTFIRESBNS,IF(A2="15 SUS",FIFTEENSUSBNS,IF(A2="11 ADA",EADABNS,IF(A2="402 FA",FOSFABNS,IF(A2="1 CAB",CABBNS,IF(A2="OTHER",OTHERBNS,""))))))))))
    This works just fine.

    However, I need to add more to the code as my list to pick from has gotten longer. My problem is that the code is too long.
    I have read from other sources that one can put the code simply in the workbook and name it then reverence back to it.
    This does not work for me as when I put the code in the sheet, without it trying to create a list, it doesn't make sense. So if I try to reference back to it in list, it returns #VALUE.

    Is there any kind of work around that I can do to accomplish more characters to a drop list in data validation?
    Last edited by Versial; 09-04-2012 at 01:36 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1