+ Reply to Thread
Results 1 to 7 of 7

Counting entries in a column with a twist

  1. #1
    Registered User
    Join Date
    08-29-2011
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    3

    Counting entries in a column with a twist

    So I making this simple sheet that helps keep track of some products to put it simply. Anyways, I have a column for each product, and another column that is listing whether a certain product is used or unused and based on that I am tallying them at the bottom. Basically the tally cell contains this
    Please Login or Register  to view this content.
    which will give me the quantity of cells that have text that says "Unused."

    Ok here's the twist, there is a corresponding column that asks if a product is defective. So each product not only has a Used/Unused entry, it has a Yes or No if defective entry. What I want to happen is regardless of what is entered in the Used/Unused column, if a "Yes" is in the defective cell, then an entry should not be counted. Now I realize that I could just count the number that are not defective and subtract out "Used" products, but I want this to work without having to enter something into the defective column. Just if someone does, it will override the other used entry column. Hope this makes sense, if you have any questions just ask.

    Using excel 2010.
    Last edited by ltkenbo; 08-29-2011 at 11:56 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting entries in a column with a twist

    Perhaps
    Please Login or Register  to view this content.
    (supposing defective products in col E

  3. #3
    Registered User
    Join Date
    08-29-2011
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Counting entries in a column with a twist

    Quote Originally Posted by arthurbr View Post
    Perhaps
    Please Login or Register  to view this content.
    (supposing defective products in col E
    The only problem with that is that I want it still to still work regardless of whether there is text in the defective column. Because not every product in stock is tested, just whenever is is used. So basically some kind of OR statement that will sum the "unused" cells if a defective cell is "No" OR nothing is in the defective cell.
    Last edited by ltkenbo; 08-29-2011 at 09:57 AM.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting entries in a column with a twist

    =sumproduct(--(d16:d25="unused"),--(e16:e25<>"yes"))

    PLEASE READ MY SIG ABOUT QUOTING THX

  5. #5
    Registered User
    Join Date
    08-29-2011
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Counting entries in a column with a twist

    Works great thanks! What does the <> operation do exactly? Sorry about quoting.

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting entries in a column with a twist

    Np.
    <> just means " different than". it's a combination of < ( smaller) and > ( larger)

  7. #7
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting entries in a column with a twist

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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