+ Reply to Thread
Results 1 to 14 of 14

cell mandotary

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    cell mandotary

    Hello to all.
    I have an excel sheet in which you have to fill in rows in orbit.
    Is this data validation possible?
    Example for E6: if A6 is compiled E6 is mandotory
    Example for E10: if A10 is compiled E10 is mandotory
    Example for E100: if A100 is compiled E100 is mandotory
    etc...
    A greeting and thank you.
    max_max
    Last edited by max_max; 05-15-2017 at 01:52 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    It's not perfect, but I think you can get close with data validation. If you have your headers in row one, select A2:E1000 and use the following custom Data Validation formula:

    =COUNTIFS($A$1:$A1,"<>"&"",$E$1:$E1,"")<1

    The Data Validation will prevent you from entering data in a new row if there is an entry in A that still needs data in the corresponding column E. You can also use conditional formatting to highlight the cells in E that require entries. If you're not planning to enter data from top to bottom, you can alter the COUNTIFS to better suit your method of data entry. Take a look at the attachment to see if it will work for you:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    Hi cantosh,
    Is not so accurate the data validation must work horizontally
    max_max

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    Am I understanding correctly that additional entries in A, as well as columns B, C, and D must be blocked until a value has been entered in row E? Try the following:

    Data validation formula for A2:A20: =COUNTIFS($E$2:$E2,"",$A$2:$A2,"<>"&"")<2
    Data validation formula for B2:E20: =COUNTIFS($E$2:$E2,"",$A$2:$A2,"<>"&"")=0

    The attachment only covers the first 20 rows, but you can extend the validation as far as you need to. Similarly, you can extend the range of the B2:E20 rule to include columns beyond column E and it should still work. Take a look at the attachment to see if it will work:
    Attached Files Attached Files

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    Hi cantosh,
    only 1 rule:
    if A is empty E is mandatory.
    I hope I have explained.
    max_max
    Attached Images Attached Images

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    Thank you for the clarification, I was under the impression that if A was NOT empty, E must be filled, which was a bit backwards.

    Can you clarify how data is entered? What should be blocked until the user enters something in E? I don't think you want users being forced to fill in all one million rows in column E before they can do anything else, so what entries are you trying to block until data has been entered in E?

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    All cells are not blocked,
    Columns B / C / D / F / G etc. can remain empty.
    max_max

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    I'm afraid I don't understand what is supposed to happen. Can you please provide a more detailed explanation of how the sheet is used? What data is being entered? Where? In what order? When you say E is mandatory, what does that mean for your user?

  9. #9
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    Hope it is understandable
    Attached Images Attached Images

  10. #10
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    If I am a user, then I should:

    1) Enter a value in E2
    2) Enter a value in A2
    3) Enter a value in E3
    4) I should enter a value in A3, but if I forget and try to move on to E4, then data validation should prevent me from entering anything in E4 until A3 has been filled

    or is it:

    1) Enter a value in E2
    2) Enter a value in A2
    3) I try to enter a value in A3, but the data validation tells me I need to enter a value in E3 before I can add anything to A3

    Is either of these two interpretations correct?

  11. #11
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    None of the 2.
    Then:

    I insert a value in A2 then a value in E2 = correct = no data validation
    No value in A3 then a value in E3 = error = data validation
    I enter a value in A4 then a value in E4 = correct = no validation
    No value in A5 then a value in E5 = error = data validation

    Sorry unfortunately must use google translator

  12. #12
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    I think I understand now. I'm using the following Data Validation formula for E2:E20:

    =COUNTA($A2:$A2)=1

    This rule should only allow the user to post in E if there is a post in the same row in A. Hopefully I am understanding your request correctly now. I wish I could speak Italian so we could communicate better! Please let me know if there are still problems:
    Attached Files Attached Files

  13. #13
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: cell mandotary

    Hi cantosch,
    it is ok!
    Thank you very much.

    in Italian the data validation formula is:
    =CONTA.VALORI($A2:$A2)=1
    in Italian the conditional formatting is:
    =E($A2<>"";$E2="")

    max_max

  14. #14
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: cell mandotary

    haha, I'm glad I could help! Good luck!

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Replies: 2
    Last Post: 12-07-2016, 12:39 PM
  3. return multiple header cell values into one cell concatenated based on a cell value
    By anchuri_chaitanya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-13-2016, 10:27 PM
  4. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  5. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  6. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  7. Replies: 1
    Last Post: 11-03-2012, 09:05 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