+ Reply to Thread
Results 1 to 8 of 8

Formula to remove last letter to use it in data validation

  1. #1
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Formula to remove last letter to use it in data validation

    Hello to all,

    I'm trying to set a data validation in B1 from values in A1:A5.

    A1: Car
    A2: Papers
    A3: Pencil
    A4: Pants
    A5: Shoes

    What I want is show in dropdown list the words in singular (without the "s" at the end).

    The formula below works if I introduce it in a normal cell,
    Please Login or Register  to view this content.
    or as array formula with CRTL+SHIFT+ENTER in this way
    Please Login or Register  to view this content.
    But I get the message that the formula has error when I introduce any of both in "Validation Criteria"-->Allow "List"-->Source.

    May somebody help me fixing my formula or with other one that works in data validation.

    Thanks in advance.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to remove last letter to use it in data validation

    Are you using that formula as the source?

    You need to use the RANGE as the source.

    Data Validation
    Allow: List
    Source: =B1:B5
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Formula to remove last letter to use it in data validation

    Hello Tony,

    Thanks for answer.

    Yes, I'm using the formula in source field, since I don't want to use an extra/auxiliary range if it is possible to avoid it.

    Regards

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to remove last letter to use it in data validation

    If you use a formula it has to resolve to a range of cells, like when you define a dynamic range with a formula. You're using a formula that resolves to a range of cells.

  5. #5
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Formula to remove last letter to use it in data validation

    When I use the first formula as data validation it works but shows only one word.

    Is there a way to conver the resultant array of 2nd formula in something acceptable to use in data validation?

    Thanks again for the help

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to remove last letter to use it in data validation

    No, can't be done with that formula.

    The formula would have to resolve to a range of cells.

  7. #7
    Forum Contributor
    Join Date
    06-07-2011
    Location
    Hnd
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Formula to remove last letter to use it in data validation

    Ok, thank you for the help Tony.

    Regards

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to remove last letter to use it in data validation

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Need Validation formula for a Letter Number Combination
    By Talo in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-19-2012, 12:22 PM
  2. Data Validation - 1 letter, 2 numbers
    By RumbleBee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2012, 08:16 AM
  3. Data Validation Formula with 2 Letter Option
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2010, 11:54 AM
  4. Replies: 17
    Last Post: 07-16-2009, 03:12 AM
  5. [SOLVED] New Validation option to format 1st letter as Capital letter
    By Jeff in forum Excel General
    Replies: 5
    Last Post: 07-13-2006, 12:15 AM

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