+ Reply to Thread
Results 1 to 52 of 52

How to verify if all values in specific cells match with other cells using a formula?

  1. #1
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    How to verify if all values in specific cells match with other cells using a formula?

    Hi all,

    Hope all are doing good and ready for the Christmas

    Just some help in attached sheet.

    1. In sheet Confirmation Form, cell E17 shows count of values entered from cell E19. However, since E19 onwards there's a formula entered and E17 also counts it where as it shouldn't. So cell E17 should show count as 14 instead of 37.


    2. Cell E15 should contain a formula such that if all "present" values in column E starting from cell E19 matches exactly with that of values either in column B or column E of sheet " Decommissioning Request Form" starting from cell B59 or E59, then this cell should show "SERIAL NUMBERS MATCH", else "SERIAL NUMBERS MIS-MATCH".

    The reason for either column B or E is that if values in column B are in below form

    01003669937919751725043010CJ9U2119753447591903

    then formula =IF(B59="","",RIGHT(B59,LEN(B59)-22)) will be applied in cell E59 onwards.

    If values in column B are in below form

    19753447591903

    then there is no requirement of formula in column E.

    Hence comparison with either B or E.


    3. Cell C13 in sheet "Confirmation Form" contains a formula which should shows as FORM COMPLETE if below conditions are fulfilled.

    a> If cells C5, C6, C8, C9. C11, C12 are not blank.

    b> If cell C14 in sheet " Decommissioning Request Form" is "Partial Batch Decommissioning", then ,cell C15 in sheet "Confirmation Form" should be "QUANTITY MATCH"

    c> If cell C14 in sheet " Decommissioning Request Form" is "Full Batch Decommissioning with Rework", then cell D17 in sheet "Confirmation Form" should not be 0.

    I have entered the conditions from cell G4 to G7 but it somehow doesn't work.


    Can someone please help?
    Attached Files Attached Files
    Last edited by rizwanulhasan; 12-25-2023 at 02:57 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Q1: use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by TMS View Post
    Q1: use
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Perfect. Thanks TMS

    2 and 3 pending

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I don't understand the requirement for 2 and 3. Is Q3 three separate requirements? C13, C15 and D17?

  5. #5
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Q2 is similar to conditional formatting of duplicate values. I want to authenticate that all the values in one column matches exactly with the values in other column using a formula. Just an additional step is that i need an output for this in the form of "SERIAL NUMBERS MATCH" or "SERIAL NUMBERS MIS-MATCH".

    The columns to be compared are column E in sheet Confirmation Form starting from cell E19 with that of values either in column B or column E of sheet "Decommissioning Request Form" starting from cell B59 or E59. Reason for comparison with 2 columns i.e. B and E in sheet "Decommissioning Request Form" is stated in post # 1.


    Q3 has 3 different requirements but i have already readied them in cells G4 to G6. The problem seems to be with cell G7. I am unsure when to use PRODUCT and when to use IFSUM
    Last edited by rizwanulhasan; 12-24-2023 at 10:14 PM.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to verify if all values in specific cells match with other cells using a formula?

    This thread appears to be similar to https://www.excelforum.com/excel-for...a-formula.html, but I'm not sure if it's a duplicate. Members should check the other thread before taking the time to respond to this one.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    @6StringJazzer

    Hi,

    The attached sheet is same but both threads have different requirements

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Q3: seems like the formulae in column G are a little convoluted. Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The first four return TRUE/FALSE. The last one uses the fourth one to display the message.

    I don't think =AND(' Decommissioning Request Form'!$C$14="Full Batch with Rework",D17<>0) can ever be TRUE because Decommissioning Request Form'!$C$14 doesn’t have an option to be "Full Batch with Rework"

  9. #9
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by TMS View Post
    Q3:

    I don't think =AND(' Decommissioning Request Form'!$C$14="Full Batch with Rework",D17<>0) can ever be TRUE because Decommissioning Request Form'!$C$14 doesn’t have an option to be "Full Batch with Rework"
    I am sorry. Its actually "Full Batch Decommissioning with Rework"

  10. #10
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Thanks TMS.

    Below issues noted.

    For below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    this was the requirement

    b> If cell C14 in sheet " Decommissioning Request Form" is "Partial Batch Decommissioning", then ,cell C15 in sheet "Confirmation Form" should be "QUANTITY MATCH"

    In other words, if cell C14 in sheet is <>"Partial Batch Decommissioning", then despite C15 is not "QUANTITY MATCH", result should be TRUE.

    Similarly for below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    this was the requirement

    c> If cell C20 in sheet " Decommissioning Request Form" is "Full Batch Decommissioning with Rework", then cell D17 in sheet "Confirmation Form" should not be 0.


    In other words, if cell C20 in sheet is <>"Full Batch Decommissioning with Rework", then despite D17 is 0, result should be TRUE.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    So:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Seems to work for me.

  12. #12
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by TMS View Post
    So:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Seems to work for me.
    Indeed it does.

    But same issue as highlighted in post # 10

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I have to say I am getting lost in your logic.

  14. #14
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I agree its very confusing.

    Let me try once more.

    Cell C13 in sheet "Confirmation Form" should show as FORM COMPLETE if below conditions are fulfilled, else FORM INCOMPLETE.

    a> If cells C5, C6, C8, C9. C11, C12 are not blank.

    b> Only if cell C14 in sheet " Decommissioning Request Form" is "Partial Batch Decommissioning", then C13 in sheet "Confirmation Form" should show as FORM COMPLETE if cell C15 is "QUANTITY MATCH". If C14 in sheet " Decommissioning Request Form" is not "Partial Batch Decommissioning", then even if C15 is not "QUANTITY MATCH", Cell C13 in sheet "Confirmation Form" should show as FORM COMPLETE

    c> Only if cell C14 in sheet " Decommissioning Request Form" is "Full Batch Decommissioning with Rework", then cell D17 in sheet "Confirmation Form" should not be 0. If C14 in sheet " Decommissioning Request Form" is not "Full Batch Decommissioning with Rework", then even if D17 is 0, Cell C13 in sheet "Confirmation Form" should show as FORM COMPLETE

    Out of the above 3 requirements, 1st one is mandatory while rest 2 depends on the dropdown chosen in cell C14 in sheet " Decommissioning Request Form"

  15. #15
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Any solution to Q2 and Q3

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Q3: Try ...

    PHP Code: 
    ="FORM "&
    IF(AND(
           
    LET(c,INDEX(C:C,{5,6,8,9,11,12}),COUNTA(FILTER(c,c<>""))=6),
           OR(
              AND(
    ' Decommissioning Request Form'!$C$14="Partial Batch Decommissioning",$C$15="QUANTITY MATCH"),
              AND(
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning with Rework",D17<>0))),
       
    "COMPLETE","INCOMPLETE"

  17. #17
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Thanks TMS.

    All perfect, just 1 issue.

    When C14="Full Batch Decommissioning without Rework", there is no criteria for this. But when selected, C13 in sheet "Confirmation Form" shows FORM INCOMPLETE although we no where considered "Full Batch Decommissioning without Rework" option

  18. #18
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    It doesn't come within the constraints of:
    Out of the above 3 requirements, 1st one is mandatory while rest 2 depends on the dropdown chosen in cell C14 in sheet " Decommissioning Request Form"

  19. #19
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Oh

    I didn't knew that we need to enter the condition even for the options that we are not setting any criteria for

    Can you please help with it

  20. #20
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    It doesn't matter how simple or complex the criteria for an IF statement are, the outcome is TRUE or FALSE. If the outcome is not TRUE based on the criteria tested, it will return FALSE. If you don't specifically test for a condition, then it may or may not affect the outcome. In this case, the dependency is on cell C14 where you only test two of the possible conditions.

    Try this:
    PHP Code: 
    ="FORM "&
    IF(AND(
           
    LET(c,INDEX(C:C,{5,6,8,9,11,12}),COUNTA(FILTER(c,c<>""))=6),
           OR(
              AND(
    ' Decommissioning Request Form'!$C$14="Partial Batch Decommissioning",$C$15="QUANTITY MATCH"),
              AND(
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning with Rework",D17<>0),
                  
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning without Rework")),
       
    "COMPLETE","INCOMPLETE"

  21. #21
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by TMS View Post
    It doesn't matter how simple or complex the criteria for an IF statement are, the outcome is TRUE or FALSE. If the outcome is not TRUE based on the criteria tested, it will return FALSE. If you don't specifically test for a condition, then it may or may not affect the outcome. In this case, the dependency is on cell C14 where you only test two of the possible conditions.

    Try this:
    PHP Code: 
    ="FORM "&
    IF(AND(
           
    LET(c,INDEX(C:C,{5,6,8,9,11,12}),COUNTA(FILTER(c,c<>""))=6),
           OR(
              AND(
    ' Decommissioning Request Form'!$C$14="Partial Batch Decommissioning",$C$15="QUANTITY MATCH"),
              AND(
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning with Rework",D17<>0),
                  
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning without Rework")),
       
    "COMPLETE","INCOMPLETE"
    Its perfect. Thank you so much

    Since i am not that knowledgeable in excel, i didn't understand your explanation fully but partially. But i will note that I put all options hereafter. Sorry for the cofusion.

  22. #22
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Points 1 and 3 done. Just left with point 2

    Being naïve at excel, I am unsure if it can be achieved through formula, but i believe you being the excel expert might implement it.

  23. #23
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Just a recap on point 2:

    Cell E15 in sheet "Confirmation Form" should contain a formula such that if all "present" values in column E starting from cell E19 matches exactly with that of values either in column B or column E of sheet " Decommissioning Request Form" starting from cell B59 or E59, then this cell should show "SERIAL NUMBERS MATCH", else "SERIAL NUMBERS MIS-MATCH".

    The reason for either column B or E is that if values in column B are in below form

    01003669937919751725043010CJ9U2119753447591903

    then formula =IF(B59="","",RIGHT(B59,LEN(B59)-22)) will be applied in cell E59 onwards.

    If values in column B are in below form

    19753447591903

    then there is no requirement of formula in column E.

    Hence comparison with either B or E.

    It is similar to conditional formatting of duplicate values. I want to authenticate that all the values in one column matches exactly with the values in other column using a formula. Just an additional step is that i need an output for this in the form of "SERIAL NUMBERS MATCH" or "SERIAL NUMBERS MIS-MATCH" and hence the requirement of formula.

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

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Perhaps the following:
    1. Change the formula in cells E59 and down on the Decommissioning Request Form sheet to read: =IF(B59="","",IF(LEN(B59)>14,RIGHT(B59,LEN(B59)-22),B59))
    2. Populate cells F19 and down on the Confirmation Form sheet using: =AND(E19<>"",MATCH(E19,' Decommissioning Request Form'!E$59:E$95,0))
    3. Populate cell E15 on the Confirmation Form sheet using: =IF(COUNTIFS(F19:F55,TRUE)=E17,"SERIAL NUMBERS MATCH","SERIAL NUMBERS MIS-MATCH")
    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.

  25. #25
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Hi JeteMc.

    Thanks for your response. Its working perfectly

    Few queries.

    1. Cell E57 in sheet Decommissioning Request Form contains formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which is also counting the cells with no values but containing just the formula. Can formula be modified such that only cells with values be counted?

    The reason for formula in blank cells is that there is no definite count of values that will be entered in column B. It can also range upto 25000. So the below formula will be present atleast upto E25000.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Can you suggest?


    2. Cell E19 in sheet Confirmation Form contains formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    . Can the formula in F19 be made direct such that column E is not required and it directly pulls data from column B?


    3. 1 more suggestion please

    Filling the formula upto 25000 rows is increasing excel binary file size considerably. Any alternative to this?
    Attached Files Attached Files
    Last edited by rizwanulhasan; 12-28-2023 at 11:29 PM.

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

    Re: How to verify if all values in specific cells match with other cells using a formula?

    1. For cell E57 use: =SUMPRODUCT(--(E59:E1048576<>""))
    2. For cells F19 and down use: =ISNUMBER(MATCH(RIGHT(B19,LEN(B19)-22),' Decommissioning Request Form'!E$59:E$50000,0))
    3. Removing the formula from E19 and down on the Confirmation Form sheet may have helped.
    Attached Files Attached Files

  27. #27
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Thanks JeteMc.

    Point 3:

    I still need to use formula in column F which anyhow increases the file size. 'll see what i can do about it.


    Point 2:

    I am now using below formula in column F

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Since above formula is direct and helper column E is no longer required, i changed reference cell E17 to B17 as per your earlier below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The issue is that when there is no data present in column B starting from cell B19 and no data in column E from cell E59 of sheet Decommissioning Request Form, cell E15 shows "SERIAL NUMBERS MATCH"

    Can the formula be modified such that if all cells from B19 up to B50000 in sheet Confirmation Formare blank, then cell should show as "ENTER SERIAL NUMBERS". If they are filled, then the formula will do its regular job i.e. testing for SERIAL NUMBERS MATCH / MIS-MATCH.

    Attached Files Attached Files
    Last edited by rizwanulhasan; 12-30-2023 at 08:15 AM.

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

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Please try the following in cell E15:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  29. #29
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Perfect.

    Just a reminder on my requirement as in post # 23

    Values need to be matched both in column B or E of sheet Decommissioning Request Form. So i modified your formula as below but it doesn't work. Any mistake i am making

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: How to verify if all values in specific cells match with other cells using a formula?

    The formula could be written:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    That said, my thinking is that since there is a formula in column E of the Decommissioning Request Form sheet anyway then why not just let the formula put all numbers in column E.
    It should not take any more computing power to add to the formula for column E and probably will be more economical than calculating a complex IFERROR type formula in column F of the Confirmation Form sheet.

  31. #31
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    This is exactly what i wanted

    Just modified formula as below

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and its working perfectly.

    But again 1 issue JeteMc.

    As mentioned earlier, since column E is no more required, B17 has been given as reference cell in below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The issue is if there are some extra values in sheet Decommissioning Request Form as highlighted in attached sheet but the same are not present in sheet Confirmation Form, the result is again SERIAL NUMBERS MATCH whereas it shouldn't be because 2 values are missing.

    I also tried referencing as below

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    but same issue in viceversa
    Attached Files Attached Files

  32. #32
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by rizwanulhasan View Post
    Thanks JeteMc.

    Point 3:
    I still need to use formula in column F which anyhow increases the file size. 'll see what i can do about it.
    Well, I didn't follow the whole thread, but I'm offering an eventual solution to shrink the file size.

    I transformed the range B58:E65 into a named Table (DecReqForm) in such way that any new record you input will be followed by the formula in column E, for adding new rows you go to the right bottom corner of the table and press TAB.
    This should cut the need for endless rows with formula in column E what shrink the size of the file.

    The formula in tab 'Confirmation Form' column F changes and so you don't need to look for endless lines in tab 'Decommissioning Request Form' and this might have a positive impact in the performance of the workbook.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Extensive use of colored rows also increase the size of the file.
    Changed the position of the cornered column of formulas in 'Decommissioning Request Form' to O4:O15, better hid the column where it is now, it make the navigation through the sheet easier.

    With my changes the file shrunk to 69 KB.
    Attached Files Attached Files

  33. #33
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    DJunqueira

    The idea of using table is incredible. Thanks a bunch.

    However, i tried using formula in column E but it doesnt work

    Any mistake i am making in formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  34. #34
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Cool, I glad that you liked the Table idea.

    My fix, lets see if it is what you want.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  35. #35
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by DJunqueira View Post
    Cool, I glad that you liked the Table idea.
    I loved it

    However, creation of table seems to have affected the formulae in below cells

    B17
    C17
    D17
    F20
    G20

    They doesn't seem to work now

    Attached file for reference.
    Attached Files Attached Files

  36. #36
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I think I fixed it, but pay attention to the fact that you can NOT use array formulas inside a named table.
    Attached Files Attached Files

  37. #37
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Hi DJunqueira

    F20, G20 rectified. Thank you.

    Can you please help with formula in B17 so that i can do the same for C17 and D17

  38. #38
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    To introduce a named table column in a formula go to the header and keep moving until you see a small black arrow click and it will be part of the formula.
    Changes have been done in the cells.

    See this video for more information about Excel table.
    Attached Files Attached Files

  39. #39
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by DJunqueira View Post
    To introduce a named table column in a formula go to the header and keep moving until you see a small black arrow click and it will be part of the formula.
    Sorry didnt understand this. I'll watch video for more understanding.

    Quote Originally Posted by rizwanulhasan
    Can you please help with formula in B17 so that i can do the same for C17 and D17
    My bad. Sincere apologies. I meant formula in cell B18.

    I tried modifying as below but it gives error

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Try the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  41. #41
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Many thanks JeteMc. Its working now.

    Just 1 query and 1 issue.

    1. How can below formula be modified to count only unique values

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    2. An issue detected. If there's any duplicate value in column B in sheet "Serialisation Confirmation Form", then that also is considered as TRUE in column E of the same sheet. However, there shouldn't be any duplication. To resolve this issue for column B, C and D, i added a condition to the existing formula in cell C15 such that if there's any duplicate serial number, cell should show as "DUPLICATE SERIAL NUMBERS DETECTED". I tried below formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Although there are no duplicate serial numbers in column B, C or D, yet cell shows as "DUPLICATE SERIAL NUMBERS DETECTED"

    Is there any mistake in formula?
    Attached Files Attached Files
    Last edited by rizwanulhasan; 01-06-2024 at 12:42 AM.

  42. #42
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by rizwanulhasan View Post
    Many thanks JeteMc. Its working now.
    Just 1 query and 1 issue.

    1. How can below formula be modified to count only unique values

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For this you can use:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can't confront those values because COUNTA will bring 0 as a result and ROWS 1 for columns C and D, you tried to compensate this with -3, but the first column(B) has no zero to add for ROWS so it will return the same result as COUNTA.

    My solution for this would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by DJunqueira; 01-06-2024 at 07:59 AM.

  43. #43
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Everything's perfect. thanks a bunch.

    Sorry but may i know where i need to enter below formula

    Quote Originally Posted by DJunqueira View Post
    2.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  44. #44
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: How to verify if all values in specific cells match with other cells using a formula?

    As I said:

    You can't confront those values because COUNTA will bring 0 as a result and ROWS 1 for columns C and D, you tried to compensate this with -3, but the first column(B) has no zero to add for ROWS so it will return the same result as COUNTA.


    This formula of yours won't work.

  45. #45
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Oh, ok.

    Many thanks for all the help

  46. #46
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Thanks for the rep.

  47. #47
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Apologies but 1 issue.

    Column E in sheet Serialisation Confirmation Form gives the result as TRUE if the values it contains matches with those in either column B or E in sheet Decommissioning Request Form.

    However, when values are pasted in either column B or E in sheet Decommissioning Request Form from a notepad etc, the result in column E in sheet Serialisation Confirmation Form is FALSE despite the values are same.

    The match formula works if i paste values from excel but not from notepad etc.

    Any solution how to overcome this issue please
    Attached Files Attached Files
    Last edited by rizwanulhasan; 01-09-2024 at 04:16 AM.

  48. #48
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I am unsure if formula needs to be changed for this, perhaps not, but still want to know if there's any solution to this issue

  49. #49
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: How to verify if all values in specific cells match with other cells using a formula?

    I suspect the answer is that NOTEPAD adds extra character(s) at front and/or back of the text string. Try using TRIM (text.......).
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  50. #50
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Noted John. Thanks for the response.

  51. #51
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Quote Originally Posted by TMS View Post
    It doesn't matter how simple or complex the criteria for an IF statement are, the outcome is TRUE or FALSE. If the outcome is not TRUE based on the criteria tested, it will return FALSE. If you don't specifically test for a condition, then it may or may not affect the outcome. In this case, the dependency is on cell C14 where you only test two of the possible conditions.

    Try this:
    PHP Code: 
    ="FORM "&
    IF(AND(
           
    LET(c,INDEX(C:C,{5,6,8,9,11,12}),COUNTA(FILTER(c,c<>""))=6),
           OR(
              AND(
    ' Decommissioning Request Form'!$C$14="Partial Batch Decommissioning",$C$15="QUANTITY MATCH"),
              AND(
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning with Rework",D17<>0),
                  
    ' Decommissioning Request Form'!$C$14="Full Batch Decommissioning without Rework")),
       
    "COMPLETE","INCOMPLETE"
    Hi again,

    Just a help please.

    In addition to the existing formula, a condition needs to be added such that cell C13 in sheet "Serialisation Confirmation Form" should show FORM INCOMPLETE if cell C14 in sheet "Decommissioning Request Form" is Partial Batch Decommissioning and if cells in sheet "Serialisation Confirmation Form" B18 contains SERIAL NUMBERS MIS-MATCH or C18 contains CASE NUMBERS MIS-MATCH or D18 contains PALLET NUMBERS MIS-MATCH. In other words, if any of the cells B18, C18 or D18 contains the word MIS-MATCH

    Can someone please help
    Attached Files Attached Files
    Last edited by rizwanulhasan; 03-29-2024 at 09:40 AM.

  52. #52
    Forum Contributor
    Join Date
    01-01-2022
    Location
    India
    MS-Off Ver
    Home 2021
    Posts
    777

    Re: How to verify if all values in specific cells match with other cells using a formula?

    Well, i guess i got it

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Replies: 20
    Last Post: 03-10-2023, 12:03 AM
  2. [SOLVED] Highlight the cells (verify) that give a SUM error on a column (specific range)
    By Alexander2020 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-10-2020, 03:10 AM
  3. Replies: 7
    Last Post: 05-14-2020, 12:00 PM
  4. VBA Save Button- Verify 2 cells on two worksheets match before saving
    By bfmhoops16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2019, 11:46 AM
  5. Formula containing items that match and subtracts values from specific cells
    By tmorley88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-08-2018, 04:28 AM
  6. Replies: 6
    Last Post: 05-14-2014, 04:56 PM
  7. Replies: 0
    Last Post: 05-15-2013, 03:22 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