+ Reply to Thread
Results 1 to 4 of 4

Formula too long for drop down list data validation???

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Formula too long for drop down list data validation???

    Hi

    I am trying to insert a certain range of cells into a drop down list depending on the value of a certail cell.

    it is basically if a cell (G2) = "January" then I want it to display the January Week numbers in a drop down box which I have named 'Januaryweek'

    I type the formula in Data validation - =IF(G2="January",Januaryweek,IF(G2="February",Februaryweek, etc etc etc...........but I cant fit it all in for all 12 months?

    is there something I am doing wrong??! or will I have to split it into 4 month periods say and just type different formuas into the different sheets for each month for instance??

    hope this makes sense!

    Many thanks in advance

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula too long for drop down list data validation???

    Instead you could devise a short table to VLOOKUP, and use the INDIRECT result.

    Let's say somewhere you have on Y1:Y12 = months, and Z1:Z12 = Januaryweek, Febuaryweek, etc

    =INDIRECT(VLOOKUP(G2,Y1:Z12,2,0))

    This will look up the month from G2, associate it with the monthweek list name, and output correctly.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: Formula too long for drop down list data validation???

    wow yes I knew there must have been a shorter formula to use!!

    thanks sooo much! yes it works!

    many thanks!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula too long for drop down list data validation???

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] using a data validation drop down list AND an IF formula in the same cell
    By bite_tony in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-23-2021, 02:59 AM
  2. [SOLVED] Data Validation (List) too long
    By Versial in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 02-23-2018, 08:00 PM
  3. Replies: 1
    Last Post: 06-11-2012, 04:43 AM
  4. Override formula to drop down list (Data Validation)
    By David Morris in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2011, 11:54 AM
  5. long data validation list
    By Chemistification in forum Excel General
    Replies: 2
    Last Post: 04-22-2010, 05:08 AM

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