+ Reply to Thread
Results 1 to 9 of 9

Duplicate SKUs to Result in YES/NO Based on Other Columns

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    37

    Duplicate SKUs to Result in YES/NO Based on Other Columns

    I have a list of SKUs and locations. The master report that I get this data from is based on locations. So any given SKU may be listed multiple times in the report depending on how many locations that SKU can be found in the warehouse. I'm creating a spreadsheet to help me determine which SKUs need to be restocked. Overstock (excess stock) locations start with a Z. We pull stock from those locations to restock regular bins/locations. My spreadsheet is formulated to tell me if that location is a regular bin or an overstock location. I can set my minimum qty threshold and my spreadsheet will then tell me which SKUs are below that level and might need to be restocked. I can only restock a bin, though, if there is available overstock.

    In my sample spreadsheet provided, you'll see a small list of SKUs. Some reflect that they need to be restocked but we don't have any overstock for them so they can't be restocked. There is one SKU that appears in this list twice (I manually highlighted it in red) - once for each location that product can be found and one of those locations is an overstock location. That means I can restock the regular bin with product from the overstock location.

    The problem is creating a formula that recognizes the SKU is listed multiple times, it has an overstock location, AND it is below the threshold - that then means that it indeed can be restocked.

    Could you help me with this? I'm game to create add'l helper formula columns if one formula in the "Can it be Restocked?" column isn't going to work.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    are all those columns available in the data ?
    so all your looking to populate is column F

    Are you looking fir a YES in E AND a YES in D for the same SKU

    Perhaps a COUNTIFS()

    i will add to the sheet and post back here

    I think this may do the JOB
    =AND(COUNTIF($A$4:$A$20,A4)>1,COUNTIFS($A$4:$A$20,A4,$D$4:$D$20,"YES")>0,COUNTIFS($A$4:$A$20,A4,$E$4:$E$20,"YES")>0)
    Last edited by etaf; 09-08-2021 at 03:19 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    Perhaps

    =SUMIFS([Qty],[Product ID],[@[Product ID]],[Is it an Overstock Location?],"YES")*([@[Is it an Overstock Location?]]="NO")>=$F$1
    Messages have been translated from Dutch to English by means of google translate.

  4. #4
    Registered User
    Join Date
    12-06-2019
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    Columns A-C are from the raw data report. Columns D and E are my additions to the report/spreadsheet. Column F is where I would like a YES or NO to appear if it can for real be restocked. And I know how to formulate that if the SKU, D's Yes/No and E's Yes/No were all on the same line. But with the SKU being on multiple lines putting D's/E's Yes/No on multiple lines, too - I'm stuck. That's why I don't know if I need another helper/formula column or if there's actually a formula that can go in Column F to accomplish this task.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    Updated the answer - see solution Column - the Other 3 are not needed - just break down each step
    =AND(COUNTIF($A$4:$A$20,A4)>1,COUNTIFS($A$4:$A$20,A4,$D$4:$D$20,"YES")>0,COUNTIFS($A$4:$A$20,A4,$E$4:$E$20,"YES")>0)

    so 1st is ,
    is this a duplicated SKU

    2nd is
    is it in need of a refresh D = YES

    3rd is
    Does it have a overstocked E = YES
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-06-2019
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    @Vraag en antwoord
    Ideally I should only have one TRUE result - one SKU that can actually be restocked - 1284-10073. But when I plug your formula into my worksheet, I get 4 TRUEs - 1284-10070, 1284-10073, 1284-10075, and 1284-10076.

  7. #7
    Registered User
    Join Date
    12-06-2019
    Location
    Utah
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    @etaf That worked!! Thank you so much!!!

  8. #8
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    Then you add an extra condition, right?

    =(SUMIFS([Qty],[Product ID],[@[Product ID]],[Is it an Overstock Location?],"YES")*([@[Is it an Overstock Location?]]="NO")>=$F$1)*([@Qty]<=$F$1)

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Duplicate SKUs to Result in YES/NO Based on Other Columns

    you are welcome

+ 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. Replies: 1
    Last Post: 04-20-2021, 02:56 PM
  2. [SOLVED] Data from multiple columns for unique SKUs into one screen view
    By narom5 in forum Excel General
    Replies: 17
    Last Post: 05-25-2020, 02:00 AM
  3. [SOLVED] Delete row based on skus on sheet2
    By wonderd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-17-2016, 09:09 PM
  4. Replies: 7
    Last Post: 05-08-2015, 01:52 PM
  5. [SOLVED] Formula to group simple Skus based on main grouped Sku?
    By wonderd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-08-2013, 03:52 AM
  6. [SOLVED] skus in columm a for each sale, qty. of skus sold, each sale in co-Need to sort
    By confused1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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