+ Reply to Thread
Results 1 to 11 of 11

Discontinued Items Worksheet Compared to Source Worksheet Question

  1. #1
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Question Discontinued Items Worksheet Compared to Source Worksheet Question

    Hi All,

    It's been a long long while since I have played with excel and have an issue I am trying to figure out. I have a workbook that contains a 'Source' sheet that contains our company's inventory list. Column F is the location where the SKU is showing. On a second worksheet I have a sheet named 'Discontinued Items'. The SKUs are in column A. The worksheet Discontinued Items obviously contains my manufacturers discontinued list that is put out bi-monthly. I am trying to figure a way to have or Source Sheet use the Discontinued Items worksheet and compile a list of our SKUs so I know which ones to deactivate in our original Source file. Hope I am explaining it the correctly. Like I said, it has been a long time since I have programmed anything in excel, but am excited to give this a try! Thanks in advance for any ideas or suggestions. Please see the image of the workbook sheets.

    Dan


    compare-sheets.jpg

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,900

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    Hi Allan,

    I have attached the excel file. I was thinking the easiest way to do this is to do a MATCH function that I have in Column G of the 'Source' worksheet. However, what I have so far is NOT working.

    Any suggestions or ideas would be great. or if you need more explanation, please feel free to ask.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    An example of what I am trying to do as it pertains to #2 on your list is: On worksheet 'Discontinued Items', row A1622 for the Item ID = PWBBUL which is an exact match to worksheet 'Source' column sku(F) is F1515, which is also equal to PWBBUL.
    I need a way to list all matches or to at least isolate them.

  5. #5
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    I think I have made some progress by using =IF(MATCH(F2,Discontinued!$A$2:$A$20000,0),"Yes","No") However, if there is NO match, the results are showing #N/A
    If there is a match, it shows the YES as it is supposed to. Any ideas?

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    This finds 168 matches:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    @ xladept - I'm not sure how to set that up in the sheet. Can you give me a little more details on how you accomplished this?

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    I inserted a standard module for the code and saved the book as macro-enabled.

    Here's the book:

    If you haven't used macros before you'll need to go to:
    File- options - trust center -trust center settings - macro settings ,
    the second option down (disable all macros with notification)


    Press ALT + F8 then double click on the macro name
    Attached Files Attached Files
    Last edited by xladept; 01-06-2019 at 10:39 PM.

  9. #9
    Registered User
    Join Date
    06-20-2012
    Location
    US
    MS-Off Ver
    O365
    Posts
    35

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    @xladept - This is a nice macro, however I need a way to keep track of which ones are actually discontinued. Because I will need to be able to Disable the ones that are found in my Source worksheet.

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    How about this.
    PHP Code: 
    =IF(ISNA(MATCH(F2,'Discontinued Items'!$A$2:$A$20000,0)),"No","Yes"
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Discontinued Items Worksheet Compared to Source Worksheet Question

    What result would you prefer? I see that bakerman's formula would do the same thing

    @ Rudi - Hi Rudi, It's been too long
    Last edited by xladept; 01-07-2019 at 01:13 AM.

+ 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. Copy Source Worksheet to Target Worksheet updating Named Ranges (with Source Ranges)
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2018, 07:19 AM
  2. [SOLVED] Excel VBA Button: Import Data from other worksheet incl. selection of source worksheet
    By kingofcamden in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2018, 04:07 AM
  3. Replies: 2
    Last Post: 09-28-2016, 02:09 PM
  4. [SOLVED] Update pricing and mark discontinued items for master price list
    By unclejemima in forum Excel General
    Replies: 17
    Last Post: 06-11-2015, 06:24 PM
  5. [SOLVED] Copied check boxes contain worksheet reference to source worksheet
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2015, 03:53 PM
  6. How to delete discontinued items
    By MercXoxo in forum Excel General
    Replies: 3
    Last Post: 09-15-2008, 06:31 PM
  7. Replies: 1
    Last Post: 07-10-2006, 03:29 AM

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