+ Reply to Thread
Results 1 to 12 of 12

Check for non-identical values in a column

  1. #1
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Check for non-identical values in a column

    Greetings all,

    I am in need of a formula/function to look at a column array and identify any cells that have different values. The cell values will vary, but need to be the same. For example A1:A10 should each have a value of 2, but A5 has a value of 3, so it is flagged somehow (True/False maybe?). It would also need to ignore blank cells.

    Any ideas?

    Much appreciated,

    Ken
    Attached Files Attached Files
    Last edited by majime01; 02-23-2017 at 04:10 PM.

  2. #2
    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
    30,751

    Re: Check for non-identical values in a column

    Please attach a file (not image) so that respondents (a) do not have to type in data and (b) have data with which test any formulas. Ensure the data is representative of your actual "real world" data.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the (remove confidential) data.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  3. #3
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Check for non-identical values in a column

    John,
    File attached.

    Thank you,
    Ken

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Check for non-identical values in a column

    majime01

    I am confused. The data does not match the description.

    Also it might help if you would post a workbook including expected results with a bried explanation of the logic.

    Would you post another workbook please?
    Dave

  5. #5
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Check for non-identical values in a column

    Dave,
    Workbook changed to match description. Sorry for the confusion and I appreciate the interest.
    Ken

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Check for non-identical values in a column

    If I understand correctly this ?

    Entered in B1 and filled down.

    =NOT(A1=INDEX($A$1:$A$10,MATCH(1,FREQUENCY($A$1:$A$10,$A$1:$A$10),0)))



    A
    B
    1
    2
    TRUE
    2
    2
    TRUE
    3
    2
    TRUE
    4
    2
    TRUE
    5
    3
    FALSE
    6
    2
    TRUE
    7
    2
    TRUE
    8
    2
    TRUE
    9
    2
    TRUE
    10
    2
    TRUE

  7. #7
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Check for non-identical values in a column

    FlameRetired. Thank you, works great if there is a mismatch value...when values are all equal, it throws an #N/A. Any thoughts?
    Ken

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Check for non-identical values in a column

    Try

    =IFERROR(NOT(A1=INDEX($A$1:$A$10,MATCH(1,FREQUENCY($A$1:$A$10,$A$1:$A$10),0))),TRUE)

    If there is more than 1 mismatch neither formula will work. If there is you will need another formula. Is there any chance that could happen?
    Last edited by FlameRetired; 02-23-2017 at 08:03 PM.

  9. #9
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Check for non-identical values in a column

    One way...

    =COUNTIF($A$1:$A$10,A1)=1

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Check for non-identical values in a column

    Another

    =MODE($A$1:$A$10)=A1

  11. #11
    Forum Contributor
    Join Date
    09-12-2015
    Location
    Okinawa, Japan
    MS-Off Ver
    2013
    Posts
    178

    Re: Check for non-identical values in a column

    That worked just as you stated, except when there is more than one error, just as you stated. There is a chance that there could be more than one mismatch. It is very hard to get Excel to do what the human eye can do (scan for errors) but it doesn't hurt to try. It is also hard to make sure users don't make a mistake when inputting values into a spreadsheet.

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Check for non-identical values in a column

    Did you look at Phuocam's post #9 and my post #10?

+ 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] Check for 5 consecutive identical values
    By mychael14 in forum Excel General
    Replies: 11
    Last Post: 03-25-2016, 11:45 PM
  2. [SOLVED] Find Values in Column A and fill identical values in Column B
    By deviltronics in forum Excel General
    Replies: 6
    Last Post: 10-07-2014, 05:25 PM
  3. [SOLVED] Looking up unique values from a column of identical cells
    By Groovicles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-14-2013, 10:35 AM
  4. Replies: 2
    Last Post: 11-06-2013, 02:17 AM
  5. Averaging values from rows with identical column
    By Broccoli in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2012, 07:51 PM
  6. Check Userform controls for identical values
    By Newbie_Nick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2010, 01:44 PM
  7. Count number of identical values in a column
    By pjkcards in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2010, 09:44 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