+ Reply to Thread
Results 1 to 5 of 5

How to compare 3 columns using excel 2003

Hybrid View

ksnr2006 How to compare 3 columns... 04-03-2013, 05:57 AM
benishiryo Re: How to compare 3 columns... 04-03-2013, 06:13 AM
ksnr2006 Re: How to compare 3 columns... 04-03-2013, 07:03 AM
ksnr2006 Re: How to compare 3 columns... 04-03-2013, 07:47 AM
Kevin UK Re: How to compare 3 columns... 04-03-2013, 08:33 AM
  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    How to compare 3 columns using excel 2003

    Hi All,

    I have data in 3 columns like company id in Server 1(Column A), company id in server 2(Column B), and company name in server 2(Column C),.

    If the value of company id server 1 is matched to any one of the value in company id in server 2, the formula should display the respective company id and company name.

    Please help me.

    Thank you in advance.

    Satya.example(1).xls

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: How to compare 3 columns using excel 2003

    hi Satya. try this in D2:
    =IF(COUNTIF($B$2:$B$8,A2),A2,"Not found")

    and this in E2:
    =IF(D2="Not Found","NA",VLOOKUP(A2,$B$2:$C$8,2,0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to compare 3 columns using excel 2003

    I have tried but it is not working.

    I am getting all NAs in E column.

  4. #4
    Registered User
    Join Date
    03-24-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to compare 3 columns using excel 2003

    Hi benishiryo ,

    Your formula is working for the example data which I have given but in actual file I have 1800 values in Column A, 3447 values in column B and C. Also, Some of the company ids are alpha numeric in Column B and some are blank but have company names.

    Could you please check and provide me the formula for this kind of data.

    Thank you.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: How to compare 3 columns using excel 2003

    Hi ksnr2006

    Another alternative:
    In D2 & copy down: =IF(COUNTIF($B$2:$B$8,A2),A2,"Not Found")
    In E2 & copy down: =IFERROR(INDEX($C$2:$C$8,MATCH(D2,$B$2:$B$8,0)),"NA")
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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.6.0 RC 1