+ Reply to Thread
Results 1 to 9 of 9

<SOLVED>Please help to count numbers in column, based on the criteria in the other column

  1. #1
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    <SOLVED>Please help to count numbers in column, based on the criteria in the other column

    Hello,

    "example attached" Forum Question_2.xlsx

    I have 2 columns. First - # of items, second - priority. I need to count a number of items of a certain priority. Please help

    Thank you!
    Last edited by Royser12345; 03-03-2014 at 06:54 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,502

    Re: "Vlookup" help or "countif" help?

    Have you tried =COUNTIF(C:C,1)?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: "Vlookup" help or "countif" help?

    I don't think this is what I need. I need a count of items in column 1 based on the priority they belong in column 2

  4. #4
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: "Vlookup" help or "countif" help?

    Fotis1991, thanks for pointing at the proper rule. Title has been changed accordingly. Regards,

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Please help to count numbers in column, based on the criteria in the other column

    Why do you say that Sambo kid's suggestion does not works for you? That formula gives the number 3 as a result which for your example is correct.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Please help to count numbers in column, based on the criteria in the other column

    So you mean, perhaps:

    =SUMIF(C:C,1,B:B)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Please help to count numbers in column, based on the criteria in the other column

    apologies perhaps for not being accurate enough in describing the problem... I am only doing my best

    in my case the correct answer would be 132 which is the sum of indeed 3 priority 1 items. So I need a formula summing values in the 1 column based on the criteria (priority) in the second column

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Please help to count numbers in column, based on the criteria in the other column

    So you need to ADD-SUM the numbers.Not to count these..

    So your solution is in post#6!

  9. #9
    Registered User
    Join Date
    02-23-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Please help to count numbers in column, based on the criteria in the other column

    XOR LX, Fotis1991, Sambo Kid thanks a lot for your help, problem solved

+ 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: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  3. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  4. IF(COUNTIF(Thursday,"John Doe")>1,"error"," ")
    By jayd77 in forum Excel General
    Replies: 3
    Last Post: 10-26-2005, 09:17 PM
  5. [SOLVED] IF(VLOOKUP("MYDATA", MYNAME, 4) = 0, "TRUE", "FALSE")
    By Souris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2005, 01:05 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