+ Reply to Thread
Results 1 to 7 of 7

Formula - Counting a combination based in two colums

  1. #1
    Registered User
    Join Date
    04-01-2015
    Location
    johannesburg, south africa
    MS-Off Ver
    2010
    Posts
    3

    Formula - Counting a combination based in two colums

    Hi All

    I really need help with this, i am rather new to excel. I have tried every formula i can think of and every formula i have found online.


    Column A contains a list of products sold (Apples, Oranges, Pears)
    Column B contains the week of the month in which that the product was sold (1,2,3,4,5)

    I need to count how many time the word "Apple" appears in column A if the number 2 appears in column B next to it.

    PLEASE HELP

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Formula - Counting a combination based in two colums

    Use

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by zbor; 04-02-2015 at 04:44 AM. Reason: S

  3. #3
    Registered User
    Join Date
    04-01-2015
    Location
    johannesburg, south africa
    MS-Off Ver
    2010
    Posts
    3

    Re: Formula - Counting a combination based in two colums

    Thanks for the quick response.

    I have tried this formula, but it tells me that i have entered too many arguments. When i try change to countifs the value stays at 0. i dont know if im maybe using the countifs formula wrong.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula - Counting a combination based in two colums

    just s was missed in @zbor formula
    try this
    =COUNTIFS(A1:A1000,"Apple",B1:B1000,2)

    edit the range as per your needs
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    04-01-2015
    Location
    johannesburg, south africa
    MS-Off Ver
    2010
    Posts
    3

    Re: Formula - Counting a combination based in two colums

    I found the problem, when i entered the word "apples" in the drop down box i had entered a space after ("apples ". The formula was looking for the word without a space...... i feel really silly now...

    to anyone reading this: ensure your formulas search criteria is an exact match to the way you had entered the word/value into the cell.

    Thanks you all for your time.

  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: Formula - Counting a combination based in two colums

    Hi Jakes,

    Try this, If you want to count everything containing Apples (with spaces or without space) in column A & 2 in Column B (Week number).

    =COUNTIFS($A:$A,"Apples*",$B:$B,2)

    Thanks,
    Last edited by adhawan06; 04-02-2015 at 04:54 AM.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula - Counting a combination based in two colums

    Deleted deleted

+ 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. [SOLVED] Counting ListB(records combination) in ListA by formula
    By sandy666 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2015, 03:37 PM
  2. [SOLVED] Counting data with len formula combination
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2014, 10:34 AM
  3. [SOLVED] Formula's value based off combination of two other cells
    By kosherboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2014, 10:35 PM
  4. Need Formula to count cells in row based on info in other colums
    By wideout84 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2013, 01:53 PM
  5. Replies: 4
    Last Post: 07-16-2013, 07:44 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