+ Reply to Thread
Results 1 to 4 of 4

Comparing UniqueIDs & Subtracting

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Comparing UniqueIDs & Subtracting

    Hello,

    I want to compare two columns of data, and where ever there is a match, to subtract.

    So in attached spreadsheet, I want to compare column A with column F, and if there is an exact match, then display the difference of coulmn i and d, all else leave blank.

    See desired result in column K

    How can I do this via sumproduct or vlookup, or any other method?

    Thanks
    Attached Files Attached Files
    Last edited by VegasL; 11-18-2010 at 11:45 PM.

  2. #2
    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: Comparing UniqueIDs & Subtracting

    Hi,

    In K3 and copied down

    Please Login or Register  to view this content.
    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.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Comparing UniqueIDs & Subtracting

    VegasL,

    Detach/open workbook VegasL - EF752642 - SDG10.xls and see the VLOOKUP formulae beginning in cell K3.
    Attached Files Attached Files
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  4. #4
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Comparing UniqueIDs & Subtracting

    Thanks guys for both helping and sorry for the late reply.

    @richard - formula worked perfectly, but a bit complex for me. I'll have to study index/match a bit more to grasp it totally

    @stan - formula also worked perfectly, very interesting use of vlookup, very simple - i didnt realize you could subtract via vlookup like that.

+ 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