+ Reply to Thread
Results 1 to 7 of 7

How to Compare Values in 2 columns vs another 2 columns which produces an action item

  1. #1
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Good Afternoon Excel forum

    Sorry to bother you, but i am trying to build some use cases and i have hit a mental blocks.

    Aim -in column (a - c) we have a an id 1234. as this id is populated in column (a -c) if any value in column e & f. differ then i need to produce a column to provide the reason.

    Unfortunately i dont know the format which i will be provided (as trying to predict in row (8-10), however one thing i can be assured of is that column (A & D) will always match with the same ID.

    i have attached an sample file, i am happy with the outcomes in row 3-6 and i am just wondering is there any additional scenarios i am missing ?

    i have manually looped through to populate my helper column (j), is there a formula which helps me get to the same answer ?

    Looking forward to the communities help

    Regards
    d
    Attached Files Attached Files
    Last edited by masond3; 11-01-2018 at 05:57 PM. Reason: Incl Attachment

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Please try at J3 and drag down

    =IF(A3="","",IF(E3&F3="","NO ACTION HIEARCHY CORRECT",IF(B3<>E3,"UNLINK FROM IP","UNLINK FROM UP")))

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Or this

    =IF(A3="","",IF(E3=F3,"NO ACTION HIEARCHY CORRECT","UNLINK FROM UP"))

  4. #4
    Forum Contributor
    Join Date
    11-11-2011
    Location
    London, England
    MS-Off Ver
    EXCEL 2013
    Posts
    324

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Hi All,
    Thanks for your feedback.
    @ Bo_Ry - comparing the expected outcome against your formula, it looks like its not handling row 6 correctly.

    The Reason why Row 6 is "Unlink from UP" Is because the value 3333 (Col F) is not the same as value as 1234 (COl A-C).

    @ Jose - comparing the expected outcome against your formula, it looks like its not handling row 4/5 & 10 correctly.
    The Reason why Row 4 is "Unlink from IP" Is because the value 2222 (Col E) is not the same as 1234.(COl A-C).
    The Reason why Row 5 is "Unlink from IP" Is because the value 2222 (Col E) is not the same as 1234.(COl A-C).
    The Reason why Row 10 is "Unlink from IP" Is because the value 2222 (Col E) is not the same as 1234.(COl B).



    I have added a screen shot to show difference.

    Many thanks
    Attached Images Attached Images
    Last edited by masond3; 11-02-2018 at 05:58 AM.

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Sorry.

    I have not seen the difference between "IP" and "UP"

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Please try again,

    =IF(A3="","",IF(E3&F3="","NO ACTION HIEARCHY CORRECT",IF((B3<>E3)*(E3<>""),"UNLINK FROM IP","UNLINK FROM UP")))

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to Compare Values in 2 columns vs another 2 columns which produces an action item

    Or this but not for the same cause
    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. [SOLVED] compare values between columns
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2018, 05:01 AM
  2. Replies: 15
    Last Post: 01-08-2015, 11:40 AM
  3. URGENT - How to match values in two columns then perform an action
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2014, 08:08 PM
  4. Compare 2 columns and copy new values from the 2nd columns to a 3rd column
    By djarcadian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2013, 12:18 PM
  5. Replies: 4
    Last Post: 05-08-2013, 02:07 PM
  6. Compare the two columns and display the 2nd column item as output
    By gurum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2013, 07:58 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