+ Reply to Thread
Results 1 to 2 of 2

Comparing two corresponding columns to two other corresponding columns

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    MN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Comparing two corresponding columns to two other corresponding columns

    I am fairly new to using functions in excel and I couldn't find anything on what am trying to do so I thought I'd ask.

    I have 4 basic columns - New Code, New Value, Old Code, Old Value. I need see if any of the 'values' for the codes have changed. So I basically need to check the new code range to see if it matches an old code and then check to see if the two corresponding 'Values' match. Also I need to identify any old codes that are missing from new code column and vice versa. All of the codes should be unique numbers, but the values are not (if it matters). There are about 6000 rows total. Here is a short example.

    New Code New Value Old Code Old Value
    10021 0 10022 0
    10022 0 10040 10
    10040 10 10060 10
    10060 10 10061 10
    10061 10 10080 10

    Again, I am new to all of this and only have exerience using one function at a time (versus a function within a function, or using a result of a function in another function. I'm sure it is fairly simple, but help would be appreciated.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Comparing two corresponding columns to two other corresponding columns

    Hi,

    For your 1st problem ( need to check the new code range to see if it matches an old code and then check to see if the two corresponding 'Values' match ) maybe you can try this formula:
    =IFERROR(VLOOKUP(A2,$A$2:$B$6,2,0)=VLOOKUP(A2,$C$2:$D$6,2,0),"FALSE")

    It will return True if the new code is in the old code and if the corresponding values match.

    For the 2nd problem ( any old codes that are missing from new code column and vice versa ) i think you can also use vlookup function.

+ 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: 0
    Last Post: 05-20-2013, 11:17 PM
  2. Replies: 2
    Last Post: 04-18-2013, 02:03 PM
  3. Replies: 2
    Last Post: 03-15-2013, 05:25 PM
  4. Replies: 1
    Last Post: 02-05-2013, 10:56 AM
  5. [SOLVED] IF AND or SUMIFS comparing Months from 2 date columns and text from 2 other columns
    By jrochet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-22-2012, 11:06 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