+ Reply to Thread
Results 1 to 5 of 5

Matching data in separate columns

  1. #1
    Registered User
    Join Date
    01-22-2008
    Posts
    5

    Matching data in separate columns

    I need to find a way to match up Inventory item codes which were imported into excel from 2 different sources. I need them sorted so the ones with no matches would leave a blank cell i.e.

    Source one

    Column A

    Item No.

    HD638
    HD6516
    HD812
    HD838
    HD858
    HDS014
    HDS018
    HDS0316


    Column B

    No. Sold

    1000
    500
    600
    50
    100
    600
    450


    Source 2

    Column C

    Item No.
    HD638
    HD6516
    HD838
    HDS014
    HDS018
    HDS0316



    Column D

    Qty on Hand

    5000
    2000
    1000
    5000
    2000
    500



    Column E

    On Order

    1000

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Will source 1 always have all the codes from source 2, or is each source likely to have codes that may not be in the other source's data?


    rylo

  3. #3
    Registered User
    Join Date
    01-22-2008
    Posts
    5

    Matching columns using Vlookup how to have N/A show as 0

    Hi

    I have decided to use VLookup function and put each source on a different sheet and create a range name for each table and then the 3rd sheet for the total stock list.

    The problem I have with this is that is shows #N/A for items not sold how can I make this show 0 if no items are sold.

    The function I used for the column of items sold as one range table is =VLOOKUP(H4,tablesold,2,FALSE) and =VLOOKUP(H4,tableonhand,2,FALSE) for items on hand and then on order I kept in this same table but change the 2 to a 3 for the on hand amount.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    The approach to take is

    =if(isna(vlookup(....)),0,vlookup(....))

    rylo

  5. #5
    Registered User
    Join Date
    01-22-2008
    Posts
    5
    Thank you that is great is solves my question.

+ 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