+ Reply to Thread
Results 1 to 7 of 7

Excel formula that compares thousands of cells between two sheets

  1. #1
    Registered User
    Join Date
    01-10-2016
    Location
    5501
    MS-Off Ver
    365
    Posts
    6

    Excel formula that compares thousands of cells between two sheets

    Hello. I have a file that has thousands of inventory and each row is sorted by my item ID (call this file "File1"). I have another file that has the product quantities (call this file "File2"). I want to add a column to File1 that brings in quantities for each item ID that is in File2. If I had the exact same item IDs and order in both files, I would simply do an equals for the quantity cell in File2 and drag it down in File1. However, in File2 the item IDs are not in the same cells (example: item ID 1001 in File1 is in cell A5, but in File2 item ID 1001 is in cell A10). Is there a way that I can create a formula similar to an IF THEN that will check the item ID in column A of File1 and if it equals any item ID in column A of File2, it will put the quantity of that corresponding row into File1?

    I know that is hard to explain. Any help is appreciated.

    Thanks.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Excel formula that compares thousands of cells between two sheets

    your uploaded files will be appreciated

  3. #3
    Registered User
    Join Date
    01-10-2016
    Location
    5501
    MS-Off Ver
    365
    Posts
    6

    Re: Excel formula that compares thousands of cells between two sheets

    Here is the document. I made one sheet "File1" and one sheet "File2". I highlighted the column in File1 that I made for QTY. I want the corresponding values from column D of File2 to be in that column for QTY in File1.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Excel formula that compares thousands of cells between two sheets

    VLOOKUP will do it

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Excel formula that compares thousands of cells between two sheets

    in A2 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    01-10-2016
    Location
    5501
    MS-Off Ver
    365
    Posts
    6

    Re: Excel formula that compares thousands of cells between two sheets

    That worked! Thanks guys.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Excel formula that compares thousands of cells between two sheets

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    http://www.msofficeforums.com/excel/...tween-two.html

+ 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. [SOLVED] Formula that compares 2 spreadsheets
    By lestergit in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2015, 07:51 AM
  2. Macro which compares the column in 2 different sheets and copy selective cells data only
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2015, 06:59 AM
  3. VBA that compares two cells and returns an indicator
    By Hjahren in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2014, 10:42 AM
  4. Macro or any program that compares data between two excel sheets.
    By shruti.kulkarni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 03:19 AM
  5. IF Statement that compares multiple cells and gives me the lowest number
    By williamfrus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2012, 07:37 PM
  6. Macro compares adjacent cells to produce an index
    By PotterHarry in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-01-2010, 04:56 PM
  7. formula that compares different ranges
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2005, 04:20 PM

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