+ Reply to Thread
Results 1 to 7 of 7

Data Validation Problem With Formula

  1. #1
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Data Validation Problem With Formula

    My intention is to have a cell that allows a telephone number to be typed into it, but also contains a formula that transfers a phone number from another cell when a check box is selected. I have set this up and it works correctly. You either transfer the number, or manually enter the number which overwrites the formula. No problem there.

    I have also used the telephone number formatting in that cell along with data validation that requires a complete 10 digit number. This formatting also works correctly. However, the formula does not meet the telephone number or 10 digit data validation criteria, so it cannot be entered into the same cell. How do I work around this problem? Any suggestion would be greatly appreciated.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Data Validation Problem With Formula

    the best way to start is to provide a sample workbook so we can see what you are talking about

    just follow the instructions in the yellow box at the top.

  3. #3
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Data Validation Problem With Formula

    I think I attached a file. I uploaded it in "manage attachments".
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Data Validation Problem With Formula

    In the sample workbook, cells C14 through C17 are data entry fields for Customer info. Cells F14 through F17 are data entry fields for Delivery Location info. Since 95% of the time this info is the same, I put a drop down list in F11 that answers the question "Is the info the same?" If the answer is Yes, formulas in cells F14 through F16 copy the data from cells C14 through C16 to save time and work. If the answer is No, the user simply types the different info in cells F14 through F16, which over writes the formulas. That all works fine. The problem arises when trying to put the formula in cell F17 because it has the telephone number format from "Format Cells" and a 10 digit restriction in "Data Validation". Because of this formatting, excel will not allow the formula to be entered into cell F17.

  5. #5
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Data Validation Problem With Formula

    Does anybody have an idea that I might try?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Data Validation Problem With Formula

    I don't feel that this is going to be solvable using formulas, but it might be using VBA.
    My thought would be that the range A17:J17 would be duplicated in A19:J19, such that F17:H17 have the data validation rule applied and F19:H19 contain formulas.
    When the spreadsheet is opened A19:J19 are hidden.
    If Yes is selected in F11 then A19:J19 stay hidden, however if No is selected then A17:J17 become hidden and A19:J19 are unhidden.
    I don't know enough about VBA to write the code, but if you think this is a possibility then you might ask a moderator to move the thread to the VBA forum and let those contributors take a look.
    I hope that you have a blessed day.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    08-13-2019
    Location
    Louisiana
    MS-Off Ver
    excel
    Posts
    50

    Re: Data Validation Problem With Formula

    Thank you very much for your response. I'm going to look at my spreadsheet with your suggestions and see if I can make it work.

+ 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. Google Sheets: Problem with Data Validation Formula
    By Paige W in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 11
    Last Post: 01-10-2022, 11:10 AM
  2. [SOLVED] Data validation based on formula problem
    By nigelbloomy in forum Excel General
    Replies: 4
    Last Post: 05-12-2015, 04:11 PM
  3. [SOLVED] Multiple Data Validation Formula Problem
    By Pooger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2015, 05:55 PM
  4. [SOLVED] Date validation formula (problem)
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 03-25-2014, 02:53 AM
  5. Problem with Formula combined with data validation
    By taylorbe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-14-2014, 09:02 AM
  6. Problem with Formula based on Data Validation Selection from multiple tabs
    By warrior2411 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 05:32 PM
  7. Data Validation formula problem
    By rrucksdashel in forum Excel General
    Replies: 1
    Last Post: 09-29-2005, 01:05 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