+ Reply to Thread
Results 1 to 20 of 20

Data Verification Formula - diminishing maximum errors

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Data Verification Formula - diminishing maximum errors

    Hello all-

    I have six cells that collectively can equal 8 (decimals are okay, blank cells are fine). The first input can be 8 or less, and as the cells are filled, I would like to diminish/limit the maximum value the user can input in the other cells.

    Data Verification-

    Allow: Decimal
    Data:less than or equal to

    Maximum
    =(8-SUM($a$1:$c$3))

    It seems like the formula is including the active cell input into the SUM verification and rejecting the number (unless the active input number is < remainder of 8-SUM including that input).

    Ive also tried a helper cell to calculate the above formula and reference that in the maximum value. I couldnt figure out how to subtract/ignore the input from active cell until a new cell is chosen also.

    any corrections or better approaches?

    non-VBA solutions please.

    TIA

    Randall

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    Just turn it round a bit:

    =SUM(A1:C3)<=8

    Use that as the DV formula and it's fine.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 05-27-2017 at 04:08 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    Thanks Glenn- I didnt see how you applied that formula to the DV the attached file. What am I missing? thank you!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    Simple.... I attached the wrong sheet!!! Also, in the final version that I SHOULD have posted...

    =SUM($A$1:$C$3)<=8
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    Thx again Glenn.

    next issue- I have 6 more cells that can collectively equal 4 BUT the user can only type in those cells after SUM($A$1:$C$3) = 8. I tried:

    =IF((SUM($A$1:$D$2)=8),SUM($B$11:$D$13)<=4,0)

    and =SUM($A$1:$C$3)=8 && SUM($B$11:$D$13)<=4)

    any tips?!?!

    TIA Randall

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Data Verification Formula - diminishing maximum errors

    This maybe?

    =AND(SUM($A$1:$C$3)=8,SUM($B$11:$D$13)<=4)
    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.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    B11 to d13 is 9 cells, not 6. So I chose 6 cells on your behalf!!

    =(SUM($A$1:$C$3)=8)*(SUM($B$11:$C$13)<=6)





    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    Misread the acceptable total as 6, not as 4... but you can adjust it.

  9. #9
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    great stuff- thx!

    I keep thinking I can extrapolate the above technique, but Im failing on the last 6 cells (18 in total) ....sorry not to ask all this at once

    the LAST six cells can be any numbers ONLY if the first 6 cells SUM(a1:c3 )= 8 AND the second 6 cells SUM(b11:c13) = 4... I thought I had it...ugh...help?

    thanks again!

    Randall

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    Must they ALL be numbers? Can they ALL be blanks? You need to define clearly what is/is not acceptable for the last 6 cells....
    Last edited by Glenn Kennedy; 05-28-2017 at 02:56 AM.

  11. #11
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    blanks and numbers are fine, in any combo (no max this time) as long as the first 6 cells= 8 and the second 6 cells = 4

    thx!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    One way:

    =(SUM($A$1:$C$3)=8)*(SUM($B$11:$C$13)=4)*NOT(SUMPRODUCT(--ISTEXT($G$6:$H$8))>0)

    ... not entirely obvious, I'll admit!!



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    yeah I never would have gotten that!! THX!

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    You're welcome. Glad we got there!! I was beginning to wonder if this was one of those "and, forty seventhly..." threads!!

  15. #15
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    so....

    when I substitute the example cell ranges for my actual cell ranges, I get an error!

    =(SUM($I$13:$I$14,$N$13:$N$14,$S$13:$S$14)=8)*(SUM($J$13:$J$14,$O$13:$O$14,$T$13:$T$14)=4)*NOT(SUMPRODUCT(--ISTEXT($K$13:$K$14,$P$13:$P$14,$U$13:$U$14))>0)

    should work right?

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    You have just changed the question completely.... and 84thly... up till now you NEVER gave ANY indication that your 6 cells were non-contiguous. This certainly has the potential to complicate things....

  17. #17
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    Try this:

    =(SUM($I$13:$I$14,$N$13:$N$14,$S$13:$S$14)=8)*(SUM($J$13:$J$14,$O$13:$O$14,$T$13:$T$14)=4)*NOT(SUMPRODUCT((--ISTEXT($K$13:$K$14)+(--ISTEXT($P$13:$P$14))+ISTEXT($U$13:$U$14)))>0)

  18. #18
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    got everything working! thank you to all! Im sure Ill be back soon!!

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Data Verification Formula - diminishing maximum errors

    For now.... Yyeeeooo!!

  20. #20
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: Data Verification Formula - diminishing maximum errors

    So true...stay tuned and thx!!!!

+ 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. Need help for data verification
    By avinashplace in forum Excel General
    Replies: 6
    Last Post: 05-26-2017, 11:56 AM
  2. [SOLVED] Need help with a formula that converts times listed using data verification into hours.
    By hunter711 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-22-2017, 04:58 PM
  3. need help with scanning a range with after verification of the formula.
    By essai2008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2015, 09:06 PM
  4. IF formula verification
    By ExcelNewby in forum Excel General
    Replies: 0
    Last Post: 01-08-2009, 11:25 PM
  5. Data Verification
    By LM100 in forum Excel General
    Replies: 4
    Last Post: 09-14-2008, 08:43 AM
  6. Data Verification
    By AlienBeans in forum Excel General
    Replies: 1
    Last Post: 01-04-2007, 10:18 PM
  7. [SOLVED] data verification
    By Kristen in forum Excel General
    Replies: 0
    Last Post: 07-14-2006, 09:35 AM

Tags for this Thread

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