+ Reply to Thread
Results 1 to 3 of 3

Formula to compare two lists

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Formula to compare two lists

    Basically I will soon receive a spreadsheet showing overhead costs. Each row will show a new record and each column will show a detail such as name ,description, unique ID, notes etc.

    I need to compare it to a similar spreadsheet showing the previous year, and 1 part of my analysis will be to show which costs are new, and which ones were not present this year but were present last year.

    Due to these differences, there will be differing numbers of rows between the two years.


    My idea was to create a new spreadsheet or worksheet and copy/paste the unique ID from last year into column A, along with the corresponding cost amount into column B.

    Then copy/paste the unique ID from this year into column C, along with the corresponding cost amount into column D.

    This is where I get stuck trying to get an appropriate formula to highlight what I want.

    Can you help?
    Last edited by NBVC; 08-17-2010 at 10:06 AM.

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

    Re: vlookup formula required?

    So if you want to see what price for item in C2 was in in the A:B range,

    =IF(ISNA(Vlookup(C2,A:B,2,FALSE)),"-",Vlookup(C2,A:B,2,FALSE)) copied down.

    if you want to look for A2 price in C:D

    =if(isna(Vlookup(A2,C:D,2,FALSE)),"-",Vlookup(A2,C:D,2,FALSE)) copied down.

    these will return a "-" if no match found.
    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
    08-16-2010
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Formula to compare two lists

    I have made a few adjustments so it highlights the ID and the cost, but I have used your ideas

    thanks

+ 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