+ Reply to Thread
Results 1 to 5 of 5

Thread: Compare four columns in excel

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    Bangalore, INDIA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Compare four columns in excel

    hi,

    I need to compare four columns data in excel. I am able to do this for two columns.

    I have data as follows.

    ppvt_min ppvt_max ppvt_mean ppvt_median observations MOM
    143148 143148 143148 143148 1 -100
    141843 141843 141843 141843 1 -100
    119490 119490 119490 119490 1 -100
    91915 91915 91915 91915 1 -100

    basically, i am showing the data which are same across four columns. But i do have other records where in they are not same. I have more than 10 mil recs and can not do this manually.
    Please help me with formulae of comparing these four columns.

    i use below forulae for comparing two columns,

    if(a=b,true,false)

    Thanks,
    VIJ

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Compare four columns in excel

    Hi

    Which is the condition?

    You just want to test if ALL four of these are same?? or you need something more..?
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    01-16-2012
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Compare four columns in excel

    =and(a1=b1,b1=c1,c1=d1)

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,206

    Re: Compare four columns in excel

    =countif(a1:d1, a1)=4
    "Relax. What is mind? No matter. What is matter? Never mind!"

  5. #5
    Registered User
    Join Date
    01-10-2011
    Location
    Bangalore, INDIA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Compare four columns in excel

    Thanks, a ton. Both the formulae works according to my need.

    Keep providing solutions, which really makes our life easier.

    Thanks, again .
    VIJ

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0