+ Reply to Thread
Results 1 to 9 of 9

Compare Columns using Cell Values

  1. #1
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    Compare Columns using Cell Values

    1) If ColumnA is equal to "OK" then
    2)I have to Compare ColumnB & ColumnC ,if ColumnB is equal to ColumnC (i.e. India =India) then
    3) i need to Check if Column D is empty or not if its empty then nothing if value is there then
    4) i need to Check from Column E matches one of the ColumnD if no matches found nothing if found then
    5) Replace ColumnF value to ColumnD value
    Attached Files Attached Files
    Last edited by mailtoashok13; 06-06-2021 at 11:19 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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Compare Columns using Cell Values

    If similar, ...
    Define what you mean by 'similar'. Do you mean IDENTICAL?
    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
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    Re: Compare Columns using Cell Values

    Yes its means same value
    India = India

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

    Re: Compare Columns using Cell Values

    OK. Now explain the rest. Your sample workbook makes no sense to me - sorry.

  5. #5
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    Re: Compare Columns using Cell Values

    ok So comparing with my attached excel

    1) If ColumnA is equal to "OK" then
    2)I have to Compare ColumnB & ColumnC ,if ColumnB is equal to ColumnC (i.e. India =India) then
    3) i need to Check if Column D is empty or not if its empty then nothing if value is there then
    4) i need to Check from Column E matches one of the ColumnD if no matches found nothing if found then
    5) Replace ColumnF value to ColumnD value

    To match for 4 point i have to refer Sheet2 hope its clear Let me know if any queries ?

  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,830

    Re: Compare Columns using Cell Values

    This is not clear to me:

    4) i need to Check from Column E matches one of the ColumnD if no matches found nothing if found then
    Talk us through a worked example.

    I cannot see where you have mocked up your expected results. Replace TestA. TestB, etc.with the outcomes you are expecting.

  7. #7
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    Re: Compare Columns using Cell Values

    Sorry for confusion below is the explanation

    Column E =AA-YYY and ColumnD = XXXX YYYYYYY – DDD BBB
    so now if refer Sheet 2 i can find in row2
    ColumnB =AA-YYY and ColumnA=XXXX YYYYYYY – DDD BBB
    so Match found now i have to replace ColumnF from
    TESTA to XXXX YYYYYYY – DDD BBB
    Next Scenario

    Column E =FF -DDD and ColumnD = XXXX BBBB - CCCC DDDD

    AAAAAAA - GGGGG

    VVVVVVV - BBB YYYYY
    so now if refer Sheet 2 i can find in row3
    ColumnB =FF -DDD and ColumnA=XXXX BBBB - CCCC DDDD BBB
    so one Match found now i have to replace ColumnF from
    TESTC to XXXX BBBB - CCCC DDDD

  8. #8
    Registered User
    Join Date
    05-04-2021
    Location
    India
    MS-Off Ver
    2019
    Posts
    37

    Re: Compare Columns using Cell Values

    Any help will be highly appreciated ...

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

    Re: Compare Columns using Cell Values

    I have no idea when TESTA or TESTB, then just return "TEST"

    Please Login or Register  to view this content.
    Quang PT

+ 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: 6
    Last Post: 11-02-2018, 06:56 AM
  2. How to compare 2 columns and get values from 3rd cell?
    By Shishir Jain in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2016, 05:35 AM
  3. How to compare 2 columns and get values from 3rd cell?
    By Shishir Jain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2016, 04:33 AM
  4. [SOLVED] Compare 4 column values then insert a 5th columns value to a blank column/cell value
    By JasonKMcCoy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2012, 06:01 PM
  5. Compare cell values in two different columns for mismatches
    By maacmaac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2012, 01:33 AM
  6. Compare values in two columns and return text from adjacent cell
    By MrBorders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2009, 04:54 AM
  7. Compare cell values base on other columns
    By anyweather in forum Excel General
    Replies: 3
    Last Post: 04-08-2008, 06:32 PM

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