+ Reply to Thread
Results 1 to 13 of 13

Do not allow user to input different value than in row above in table

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

    Do not allow user to input different value than in row above in table

    Hi,

    I have table with first row in table which is constant.

    Screenshot_23.png

    User is not changing the first row!

    Ok but in G7 i would like to have calidation that he has to input the same value as in row 1.
    In G8 the same (1 row above ahsa to be the same).

    How to create validation for it? It can use Inputmessage or something but block user before it!

    In other words user can not change formulas and values from first row in columns.

    Jacek
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jaryszek; 10-30-2020 at 04:10 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,414

    Re: Do not allow user to input different value than in row above in table

    Explain why the user would need to enter anything. If all rows have to be the same, then generate the table automatically.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Do not allow user to input different value than in row above in table

    thanks Ali,

    sorry i should put one additional column where user can change value.

    So he is not allowd to change values in Col1, Col2 and Col3 but in Col4 he can.

    Jacek

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,414

    Re: Do not allow user to input different value than in row above in table

    So what should the user enter? A value or a formula?

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

    Re: Do not allow user to input different value than in row above in table

    In Col 4 he is inputting Value.
    For rest columns she is not allowed to change value. He can input value but has to be the same like in previous row for the same column.

    Screenshot_24.png

    Co in Col1, Col2, Col3 he hast to input the same Value like in previous row.
    But for Col4 he can do what he wants - input value or formula.

    Best,
    Jacek
    Attached Files Attached Files

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

    Re: Do not allow user to input different value than in row above in table

    As I believe Ali is suggesting in post #2:
    1. Modify cell G6 to read: =C$2 and then select to Overwrite all cells in this column with this formula
    2. Similarly modify cells H6:I6
    When cell J7 is selected and the tab key is pressed, G8:I8 will automatically fill with 1, 2 and 3 respectively.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Do not allow user to input different value than in row above in table

    Hi,

    i tried your way JeteMc thanks! - is very nice but it is not guaranteing that Col1, Col2, Col3 will be changed by user.

    I want to just add validation to not input something different than in row above for certain columns.
    Maybe only VBa is solution?

    Jacek

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

    Re: Do not allow user to input different value than in row above in table

    Anyone?

    Jacek

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Do not allow user to input different value than in row above in table

    Use datavalidation in G6 then copy to next column
    Attached Images Attached Images
    Quang PT

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

    Re: Do not allow user to input different value than in row above in table

    Hi Bebo,

    thank you!

    I tried yoyr method but without any issue i added 3rd row with not validation inside (just went one cell above and write "44"):

    Screenshot_27.png

    Jacek

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Do not allow user to input different value than in row above in table

    Try to copy above row, then paste special/choose "Validation" into new row

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

    Re: Do not allow user to input different value than in row above in table

    hi Bebo,

    you mean to copy first for example 100 hundreds rows for validation only and if user wil try to input validation is already there?

    Jacek

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Do not allow user to input different value than in row above in table

    Yes. Just copy validation only.

+ 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. User input to create a table, then user input to populate that table
    By cjsearles in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2019, 11:43 AM
  2. A Dynamic User-Input Table?
    By whahmira in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-17-2019, 05:10 AM
  3. User input to refresh pivot table
    By datafiend in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2015, 08:21 PM
  4. Plot data from user input table
    By Mrtrojanap7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2014, 04:38 AM
  5. Creating a table with user input
    By kmoore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2011, 01:10 AM
  6. User Input to Split the Table
    By rakesh1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2010, 08:11 PM
  7. Create a table based on user input?
    By S. Anders in forum Excel General
    Replies: 0
    Last Post: 02-09-2005, 09: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