+ Reply to Thread
Results 1 to 4 of 4

Count value only if it meets a size in column a and has positive value in column b

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    SACRAMENTO, CALIFORNIA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Unhappy Count value only if it meets a size in column a and has positive value in column b

    I need to count only vacant units by size that have a deposit on them.

    I have figured already
    =COUNTIF(VCR!B6:B26, "1X1") is how I determine how many vacant units I have of this size type.
    but I can not figure how to count only if
    (VCR!K6:K26) is not blank

    I looked at the forums and came up with this, but it is still not giving me a true count

    =COUNT(IF(VCR!B6:B26,"2X2")*IF(VCR!K6:K26=1,1,0))

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Count value only if it meets a size in column a and has positive value in column b

    Hi and welcome to the forum

    Try looking at using the countifS() function, it allows more than 1 criteria...
    =COUNTIFS(VCR!B6:B26, "1X1",VCR!K6:K26,"<>""")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-30-2013
    Location
    SACRAMENTO, CALIFORNIA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Count value only if it meets a size in column a and has positive value in column b

    Thank you, that was very helpful. I wasn't able to use the formula exactly but it was easy to modify to my needs.
    I just had to remove a couple " and adjust <>

    =COUNTIFS(VCR!B6:B26, "1X1",VCR!K6:K26,">0")

    Thank you again!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Count value only if it meets a size in column a and has positive value in column b

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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: 2
    Last Post: 03-26-2013, 12:54 PM
  2. Count unique values in a column for each row that meets 3 criteria
    By xtomg19 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2012, 12:15 AM
  3. Trying to count every second cell in a column that meets certain criteria
    By RalphCr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2012, 08:40 AM
  4. [SOLVED] Trying to count cells greater than # in one column if another column meets criteria
    By lorne17 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-14-2012, 07:01 PM
  5. Count items in column B if column c meets criteria
    By loki11 in forum Excel General
    Replies: 3
    Last Post: 01-17-2012, 09:20 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