+ Reply to Thread
Results 1 to 8 of 8

i think countif formula but not sure..

  1. #1
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    i think countif formula but not sure..

    I have this sheet here with 40 locations which are the same but are over 3 different warehouses, where there is a location full in one warehouse there is one empty in another, and also there is locations occupied in all 3 warehouses..i am trying to write a formula which out of the 40 total locations over the 3 warehouses will give me the number of locations empty without counting duplicates as all 3 warehouses and locations exist under the one building..there is "yes, no" against locations throughout the sheet against the different warehouses indicating if there occupied or not..i have tried and researched this but have had no success so far...

    Credit to adhawan06 who helped me with first part of this spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,150

    Re: i think countif formula but not sure..

    Hi htere. I didn't really understand exactly what you wanted. So here's a first go. I'll explain the details once we get an end result. Basically, I made a unique list of all the locations and counted the SKUs at each location (irrespective of the warehouse). If the value was >0, I returned "No Stock". You could also have had the actual numbers for each location.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: i think countif formula but not sure..

    it is good Glenn, thank you...first go is what i needed..
    i see you used a array formula , thank you for your time and willingness to give it a go, i am not the best at explaining correctly where my troubles are.
    you mentioned ,
    "You could also have had the actual numbers for each location", what could of i done to make it easier achievable in what i wanted ??
    explaining details will be great,

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,150

    Re: i think countif formula but not sure..

    The unique list of locations was made using a Named Range (called List). Hit CTRl and F3 to see how it was set up. nYes, I then used an array formula (sorry - should have mentioned that) to return the list of unique locations. The named range makes it easier to cope with additions to the list of locations. It'll automatically update as far down as the formula goes (the end of the green cells). Drag down further if needed. The SUMIF totalled the SKUs at each location. In my previous version, it was set to return "No stock" if the total was zero. here, it'll return the total number of SKUs (but it won't tell you WHERE they are).

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

    Any other problems - shout.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 04-24-2015 at 07:02 AM. Reason: Forgot the attachment... AGAIN.

  5. #5
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: i think countif formula but not sure..

    thank you Glenn, the second version is great, you done the rest i wanted to try to do myself , thank you...
    both sheets are great and i appreciate your help...
    i do see named ranges, and am dissecting the formulas so i know for next time...

    Any other problems i will defiantly shout out,

    Thank you

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: i think countif formula but not sure..

    Hi Ooom - What my understanding says that you are looking to have total empty location for the for each location across 3 warehouse.

    You can continue using Glenn file which Glenn Shared and use the following formula in column J2 and drag it down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    EDIT : This will return to 2 (For e.g. K6011B is full in "AJA" however available in "BJB" & "CJC")

    I hope this is what you are looking forward.

    Please let me know if it solve your purpose.

    Cheers!!!

    Anil Dhawan
    Last edited by adhawan06; 04-24-2015 at 07:42 AM.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  7. #7
    Registered User
    Join Date
    02-28-2015
    Location
    Australia
    MS-Off Ver
    2010-2013
    Posts
    19

    Re: i think countif formula but not sure..

    Thank you adhawan06 for your added formula, it is most beneficial and is giving me a lot to work with....great...
    the solutions from yourself and Glenn are far beyond what i expected to achieve 2 hours ago....

    it does solve my purpose in a big way and is greatly appreciated..

  8. #8
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: i think countif formula but not sure..

    Thanks ooom for adding feedback and reputation. Glad to help you...

    Keep visiting here and posting your queries.



    Cheers!!
    Anil Dhawan

+ 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. CountIf formula results in the formula itself being displayed.
    By NewKid in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-19-2017, 03:31 PM
  2. Countif Formula
    By powerade1985 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2014, 04:10 AM
  3. [SOLVED] Using Countif formula on cells that have a Left formula
    By fsoares22 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-10-2013, 11:13 AM
  4. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  5. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 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