+ Reply to Thread
Results 1 to 6 of 6

Help with data validation

  1. #1
    Registered User
    Join Date
    11-14-2023
    Location
    Vancouver,BC
    MS-Off Ver
    Excell Current
    Posts
    4

    Help with data validation

    I am running a small spreadsheet program that I created for tracking costs and budgeting for my construction business. It tracks labor, materials etc. Each project has various codes that allow costs to be tracked. I use a master sheet for costing projects, on this sheet I will assign codes to the different projects which then are used with purchases and labor. It is getting quite extensive sometimes tracking 200 plus trades people at a time. How would I go about protecting the cells that codes are entered and insure they are correct. I can Use the column of my master sheet that has the codes to reference. I wish to have an error message if a code is entered that does not match my master sheets code column. Any help would be appreciated.

    H

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Help with data validation

    Welcome to the Excel forum.

    In the Data tab, Data tools section, press the Data Validation button, right next to the Text to Columns button..
    In the dialog box, select List from the Allow box.
    Next, click in the Source box and select the range with your codes.
    Then in the Error alert tab you can enter a custom error message.

    Users will be able to either type in a code or select from the dropdown list.

    I hope this helps.

    Good luck!

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Help with data validation

    Hi and welcome

    Not easy to say if this would work for you, as no example file means we're working on guesswork and assumptions, but perhaps if you have a list of the codes in one place and need only values from that list to be selectable, then data validation could be your friend here?

    Essentially a dropdown list in a cell / range of cells that only allows you to pick from a predefined set of values.

    If that sounds like what you need, attach a sample file and show us what values you want to be able to select and where. We can show you how from there.

    BSB

    EDIT: @Estevaoba beat me to it.

  4. #4
    Registered User
    Join Date
    11-14-2023
    Location
    Vancouver,BC
    MS-Off Ver
    Excell Current
    Posts
    4

    Re: Help with data validation

    Problem solved thank you so much!

  5. #5
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Help with data validation

    You’re welcome. Glad to help.
    Thank you for the feedback and for the reputation added.
    Have a blessed day.

  6. #6
    Registered User
    Join Date
    11-14-2023
    Location
    Vancouver,BC
    MS-Off Ver
    Excell Current
    Posts
    4

    Re: Help with data validation

    Hi again, I just wish to sincerely thank Estevaoba and BSB for their quick replies and finding a solution. Excel is such a great program and I have probably only tapped in to a miniscule of what it can do. I switched over from Lotus and Dos around around 1990. Large books got me underway and I have created a pretty nifty program that is full of massive formulas. It seems every couple of years I have to go in and refine it and then scratch my head on "how did I do that". I am thankful that I found this site. Thank you so much. Not sure how long it would of taken me to muddle through it.

    Cheers

    H

+ 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] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  2. Replies: 1
    Last Post: 01-14-2018, 11:04 AM
  3. Multi-select from data validation isn't working with auto-assigning data validation
    By iPenguin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2017, 12:37 PM
  4. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  5. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  6. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 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