+ Reply to Thread
Results 1 to 7 of 7

Comparing multiple columns in multiple sheets

  1. #1
    Registered User
    Join Date
    04-13-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Comparing multiple columns in multiple sheets

    Hi there, new to the forums, and I'm stuck (why else would I be here?)
    What I'm trying to do is develop a formula to:
    - look at one column in sheet 1 and if a value in that column equals a value in another column in sheet2.
    then, display an X

    Thanks

    p.s. I tried the search tool, but was unsuccessful.
    Last edited by Quijibo187; 04-13-2009 at 02:25 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing multiple columns in multiple sheets

    Try something like this:

    =IF(ISNUMBER(MATCH(A1,'SHEET2'!A:A,0)),"X","") copied down the column

    where A1 contains first item in Sheet1 to match up against column A in Sheet2...

    adjust ranges and sheetname to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-13-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Comparing multiple columns in multiple sheets

    will that work if the columns are not the same length?
    One sheet has a list of coustomers that are an credit hold,
    another sheet is a list of purchase orders, the same customer will appear multiple times on the purchase order sheet (which has ~800 rows) wheras the customer sheet has less than 200 rows.

    I'm starting to think this might be easier in Access.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing multiple columns in multiple sheets

    That is a formula that you would put in the cell adjacent to the first item you want to find...and then you copy the formula down so it checks each cell in the first sheet against the entire column A:A in Sheet2!

    Once you copied it down the column in Sheet1! you should see "X's" adjacent to cells that have matches in the other sheet.

    You can also go vice-versa with similar formula in Sheet2! comparing it to entire column in Sheet1!

  5. #5
    Registered User
    Join Date
    04-13-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Comparing multiple columns in multiple sheets

    beauty, thanks, I'll give it a shot.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Comparing multiple columns in multiple sheets

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    04-13-2009
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Comparing multiple columns in multiple sheets

    was just about to do that, the formula worked, and with a bit of manipulation, I was able to make it suit exactly what I needed.

    Thanks again, I'll be back I'm sure!

+ 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