+ Reply to Thread
Results 1 to 5 of 5

Compare diffrerent colomns based on one colomn

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    London
    MS-Off Ver
    12
    Posts
    8

    Compare diffrerent colomns based on one colomn

    2014-07-30_16-52-23.png

    Fist I want to compare ColB=ColH, if TRUE, compare colA=colG, if TRUE, again compare colC=colI, IF all this conditions true, then give (colD-colJ) on colL.

    all the unmatched rows in 2 tables to populate with different for each table

    Please do help me, very urgent in need?

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Compare diffrerent colomns based on one colomn

    Try this, untested formula in column L. Start in row 1 and copy the formula down:

    =if(and(b1=h1,a1=g1,c1=i1),d1-j1,"")



    Welcome to the forum!
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Compare diffrerent colomns based on one colomn

    all the unmatched rows in 2 tables to populate with different for each table

    what does that mean..?

    Don't forget to click *

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Compare diffrerent colomns based on one colomn

    If you want to find unmatched rows then you can use conditional formatting...

    where formula is...

    =or($b1<>h1,$a1<>g1,$c1<>i1)

    select the range first... before applying that formula..

    Don't forget to click *

  5. #5
    Registered User
    Join Date
    07-30-2014
    Location
    London
    MS-Off Ver
    12
    Posts
    8

    Re: Compare diffrerent colomns based on one colomn

    2014-07-31_8-40-12.png

    Thank Gautam , for your reply.

    As in the attached picture. the formula stops at row 17, as the B17 != H17 (not to compare the colomns, look for the values in colomns to be matched, and then take the difference)

    I need to populate data into new table as,

    1. first compare look for ColB=ColH , then Look for colG=ColA, then look for ColI=ColC, if all these all matched, copy the matched data into another coloms (seperate table within the sheet), adding another colomn with difference of colD-colJ
    2. If any of them are not matched (or not existed) in either of the tables, the rows of Table1 and Table2, should populate with different colors (for reference)
    3. If they ar not matched with Table 2
    Last edited by luckyvasul; 07-31-2014 at 03:48 AM.

+ 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: 4
    Last Post: 10-29-2012, 10:26 AM
  2. how to apply Formula at all colomn without the first colomn
    By ramiyousef in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-19-2012, 03:31 AM
  3. Compare data in two colomns
    By luffield in forum Excel General
    Replies: 2
    Last Post: 10-23-2009, 09:13 AM
  4. Vlookup based on 2 colomns
    By Gtrhero in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-09-2007, 06:11 PM
  5. Compare 2 text colomns and match rows depends by cell content
    By PRONET in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2006, 11: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