+ Reply to Thread
Results 1 to 2 of 2

Compare one column to another in a different spreadsheet

  1. #1
    Registered User
    Join Date
    02-16-2011
    Location
    Baltimore, Maryland
    MS-Off Ver
    Excel 2007
    Posts
    1

    Compare one column to another in a different spreadsheet

    Hi,

    There is probably an easy solution to this but I don't know where to get started.


    I have one spreadsheet, a sheet containing all sales for the year, with a column containing about 50,000 cells of data, they are customer IDs in sales transactions.
    In the other spreadsheet I have a master customer file, sorted by customer ID.

    I want to create a formula that would display an X (anything I could use to do a "sort") next to the customer ID in the master customer file if their customer ID is shown in the sales for the year spreadsheet. Basically, I want an X next to their name if they made a sale.

    Any suggestions?

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

    Re: Compare one column to another in a different spreadsheet

    Try:

    =IF(ISNUMBER(MATCH(A2,'SalesSheet'!A:A,0)),"X","")

    where A2 contains first ID in Master sheet and SalesSheet!A:A is column A on sheet named SalesSheet containing the IDs to look for. Adjust as necessary

    copied down.
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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