+ Reply to Thread
Results 1 to 4 of 4

Formula to lookup an item and determine if there is a difference in similar list

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Formula to lookup an item and determine if there is a difference in similar list

    I have a workbook with purchase order information with two spreadsheets. The main spreadsheet (call it sheet A) is used for notes on orders and organization. The second (B) updates from a pivot table nightly.

    In (A), each row has a purchase order number, followed by the dates it is due to be shipped and received. (B) Follows the same exact format, but is sorted differently. When our orders are rewritten, the dates can change.

    Basically, I need a formula that can find a purchase order number from sheet (A) on sheet (B), then look in the corresponding row to confirm if there has been a date change for that particular purchase order #.


    This is for easy updating; otherwise I'll have to manually sift through 700+ purchase orders weekly to make sure the dates haven't fluctuated.


    Thanks for any help you can offer!
    Last edited by NBVC; 01-24-2011 at 12:50 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: Not sure which reference function(s) to use...

    Perhaps, in a new row add a formula:

    =IF(VLOOKUP(A2,'B'!A:B,2,FALSE)<>B2,"Date changed","")

    where A2 and B2 on current sheet (A) contain first set to confirm

    Note: You can replace "Data change" with the Vlookup formula repeated to get the actual date that has been changed.
    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
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Not sure which reference function(s) to use...

    Hi,

    You can use VLOOKUP() to look up a single value in the first column of a range somewhere else, and if the value exists in the first column return the value from another column on the same row that contains the value you found.

    Alternatively you can use a combination of an =MATCH() function wrapped inside an =INDEX() function. Use the =MATCH to find a specific value in a column somewhere. This will return the row number that contains the value. Then use the INDEX() function specifying a range in which the value exists somewhere, with the row number you've found by the MATCH() and a column number depending on in which column the data you're looking for exists.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Not sure which reference function(s) to use...

    Beautiful! I had written a MATCH formula to give the row # originally, but was trying with hlookup. The INDEX function put it all together. Thanks a million!

+ 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