+ Reply to Thread
Results 1 to 13 of 13

Allow user to write Part of string and number only - data validation list

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Allow user to write Part of string and number only - data validation list

    Hi,

    I want to allow users to input only word "TOPIC" plus number.
    So for example: TOPIC1, TOPIC12, TOPIC13.

    It is possible to write specific formula in data validation list?

    Best,
    Jacek

  2. #2
    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,933

    Re: Allow user to write Part of string and number only - data validation list

    Not sure I understand what you want?

    1st, DV can ONLY contain text, not formulas, it functions exactly the same as manually entering data.
    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

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Allow user to write Part of string and number only - data validation list

    Hi FDibbins,

    thank you.

    User has to write only "TOPIC1" text into cell with data validation.
    Or TOPIC12, TOPIC2, TOPIC3, TOPIC1453 text.

    Can i do it with data validation?

    Jacek

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Allow user to write Part of string and number only - data validation list

    Can you just get the user to enter a number and then use a formula to concatenate the word TOPIC onto the front of it?

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Allow user to write Part of string and number only - data validation list

    If want to apply data validation in A1 then try like below

    =AND(LEFT(A1,5)="Topic",MID(A1,6,10)+0>0)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Allow user to write Part of string and number only - data validation list

    I could but word TOPIC should be seen by users.

    And this is within table so it should be all visible to users.

    Jacek

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Allow user to write Part of string and number only - data validation list

    @ jaryszek, whom you are addressing

  8. #8
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Allow user to write Part of string and number only - data validation list

    Wow thank you nflsales

    IT is working!

    How can i apply it to dynamic table?
    To refer only to actual row and first column?

    Best,
    Jacek

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Allow user to write Part of string and number only - data validation list

    Apply in a cell then copy & Paste towards down

  10. #10
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Allow user to write Part of string and number only - data validation list

    Ok thank you,

    can i do it using references to structered tables?

    Jacek

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Allow user to write Part of string and number only - data validation list

    I think can do it

  12. #12
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Allow user to write Part of string and number only - data validation list

    How ?

    I was trying to use =LEFT("tablename[#This Row]";5)="Topic" but this is not working...

    Jacek

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Allow user to write Part of string and number only - data validation list

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Limit Data validation List dependent on user
    By jordanbuchan359 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2015, 11:12 PM
  2. Adding items to data validation list without using a string
    By strud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2015, 06:35 AM
  3. Decoding a part number Vs. Read/Write from DB file
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-22-2013, 03:27 PM
  4. Data Validation for first part of Text string
    By Eoin Joyce in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2012, 09:01 AM
  5. Replies: 7
    Last Post: 10-13-2010, 07:45 PM
  6. User Form Data Validation from List
    By Badvgood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-09-2010, 12:14 PM
  7. Can a data validation list be used as part of if statement
    By mkmed in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 03:01 PM

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