+ Reply to Thread
Results 1 to 7 of 7

count items conditionally ?

  1. #1
    Registered User
    Join Date
    12-15-2011
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question count items conditionally ?

    Is this even possible.
    Example:

    column A column B

    B200 custname
    B201 custname
    C202 custname
    C203
    A204 custname
    A205 custname

    I can add up All items for hire by their code number,
    I can add up All customers by counta Column b
    I can add up all available code# available by countblank (Column b)
    ( If blank in column B - that item is available)

    But how could I count all available C items ( we have A.B.C and D)
    as in the above example it's return 1 available item in the "C" range.
    Is it possible to Count an item only if there's a "blank" alongside in column B?
    that way I could I could add up the # of C available ( or A or b or D )
    Hope I'v expained that clearly ~
    Many thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,349

    Re: count items conditionally ?

    Hi Neutrino Two,

    If you had Excel 2007 or 2010 you could use the CountIFS() function and test the blank and the first letter being C. See the attached that I created with 2010 and saved as an .xlsx so I don't think you will be able to use Countifs with your 2003 version.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: count items conditionally ?

    hi Neutrino Two, maybe u can try:

    =SUMPRODUCT((LEFT($A$1:$A$6,1)="C")*($B$1:$B$6<>""))

    let me know if this is what u need

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: count items conditionally ?

    @benishiryo
    I think the OP actually wants:

    =SUMPRODUCT((LEFT($A$1:$A$6,1)="C")*($B$1:$B$6=""))

    based on:
    Is it possible to Count an item only if there's a "blank" alongside in column B?

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,349

    Re: count items conditionally ?

    I agree with Cutter, as I normally do. I want the OP to upgrade to 2010 Excel so s/he gets a better set of functions to work with.

  6. #6
    Registered User
    Join Date
    12-15-2011
    Location
    NZ
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: count items conditionally ?

    =SUMPRODUCT((LEFT($A$1:$A$6,1)="C")*($B$1:$B$6=""))
    is valid (no err) but is returning a value of 0
    ~?~
    and yep.. as soon as poss I'd like ot upgrade to the latest
    version... that'll be up to the boss! but we are overdue
    for a Pc replacement with a new faster one, this one's kinda old!
    So here's hoping when that happens, we also upgrade the software.

    anyway, Many Thanks, I'll need to do some understanding of the
    above Function and see what it's returning 0 .

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: count items conditionally ?

    @Cutter
    yeah u're right. must have misread it

+ 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