+ Reply to Thread
Results 1 to 8 of 8

Flagging low quantities by groups

  1. #1
    Registered User
    Join Date
    05-08-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Ofice 2013
    Posts
    26

    Flagging low quantities by groups

    Hi Friends,

    I need help creating a formula for a work problem. I work for a clothing company as a analyst and need to set up a formula that tells me when inventory in a store for a certain article of clothing (An article is a model in a certain colour) is sitting below 3 units. ideally, the formula (or a seperate one) could also flag when there isn't 2 out of 3 core sizes remaining per article (the core sizes are S, M, and L)

    So for example, from the attached sheet. I would want the formula to flag the "Phase SL bottom men's black" because it only has 2 units in store. I would also want to flag the "phase SL boxer men's black" because even though it has 8 units it doesn't have any of the core sizes.

    If anyone is able to help me solve this, I will be forever grateful! I've been trying different things and haven't figured it out for months now.

    I've attached a small example of the inventory but they usually get to be over 4000 lines or more. Here's a rough if you can't see the attachment:

    Model_Color SizeCode Sum of Quantity On Hand
    Phase AR Bottom Women's Black L 2
    Phase AR Bottom Women's Black M 1
    Phase AR Bottom Women's Black S 3
    Phase AR Bottom Women's Black XL 1
    Phase AR Bottom Women's Black XS 2
    Satoro AR Bottom Women's Black L 3
    Satoro AR Bottom Women's Black M 1
    Satoro AR Bottom Women's Black S 1
    Satoro AR Bottom Women's Black XL 1
    Phase SL Bottom Men's Black L 1
    Phase SL Bottom Men's Black M 1
    Phase SL Boxer Men's Black XL 4
    Phase SL Boxer Men's Black XS 3
    Phase SL Boxer Men's Black XXL 1
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Flagging low quantities by groups

    You can use conditional formatting for both. For less than 3 units, you can use:
    Please Login or Register  to view this content.
    For the core sizes, you can use:
    Please Login or Register  to view this content.
    For both of them, you would create a new conditional formatting rule, and select Use a formula to determine which cells to format. Example spreadsheet is also attached. Does that do what you're looking for?
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Registered User
    Join Date
    05-08-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Ofice 2013
    Posts
    26

    Re: Flagging low quantities by groups

    Thank you so much Malvosh! I tried the formula but for some reason it isn't highlighting properly for me. It's highlighting the last of an article but it's not even doing it correctly, it's highlighting articles that have more than 3 units in the file.

    Would you be able to take a look at the attached file that I worked on? The format is a little different but the idea is exactly the same.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Flagging low quantities by groups

    It's giving you strange results due to specifying a limited number of rows in the conditional formatting formula, but applying it to entire columns. I would recommend changing the cells in the Applies to box to the same rows you have the conditional formatting formula checking. You'll also need to make sure that once you do that, the formula is still looking at $A2, because it may set itself to something else.
    Please Login or Register  to view this content.
    The other option is to set the conditional formatting formula to look at entire columns, but I don't recommend that, as it could lead to performance issues with large amounts of data.

  5. #5
    Registered User
    Join Date
    05-08-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Ofice 2013
    Posts
    26

    Re: Flagging low quantities by groups

    You are the man! I was able to get the first part with the "sumif" formula working and put it into the Macro I'm building.

    I have a question about the second formula with the "countifs". I was hoping to put in a conditional formatting formula that highlights when an article has less than 2 of the core sizes (S,M,L) with inventory in the store. For example, the first article that you see in the attached list is the "Alpha AR pant men'sPilot". It has 5 units total in store but 4 of those units are only in the "XL" size and 1 unit is in size "S". This is a situation where it would be great to have this flagged because it doesn't meet the requirement of 2/3 of the core sizes (S,M,L) having inventory.
    Is there a conditional formatting formula you can think of that would highlight this situation?

    Thank you soooooooooooooo much again for your help.

    I've attached the example I'm referring to.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Flagging low quantities by groups

    This is the previous COUNTIFS formula with the necessary conditions added. You'll need to adjust for your rows / columns:
    Please Login or Register  to view this content.
    What I did was to add a check on the quantity column, so now it's checking to see if that product has quantities greater than 0 in those sizes. It should work whether the sizes are listed or not. Let me know if that works for you.

  7. #7
    Registered User
    Join Date
    05-08-2018
    Location
    Vancouver, Canada
    MS-Off Ver
    Ofice 2013
    Posts
    26

    Re: Flagging low quantities by groups

    You are a god among men! What a hero. Thank you Melvosh

  8. #8
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: Flagging low quantities by groups

    Nope, just spend way too much time using Excel! Happy to help

+ 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. [SOLVED] detect and add the quantities of letters in their groups
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 03-02-2019, 06:18 AM
  2. (Look up between tables) Convert Individuals Into Groups, Tally Groups
    By vsShinobi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2019, 12:37 PM
  3. Replies: 8
    Last Post: 02-28-2018, 10:34 AM
  4. Replies: 26
    Last Post: 01-15-2016, 03:38 AM
  5. Comparison dates and quantities with other dates and quantities
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-12-2012, 02:27 AM
  6. Analysing groups of cells to form new groups
    By lurker17260 in forum Excel General
    Replies: 3
    Last Post: 02-08-2012, 04:45 PM
  7. Replies: 3
    Last Post: 07-16-2011, 11:33 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