+ Reply to Thread
Results 1 to 4 of 4

How do I create a formula with if and countif

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    aafted pass
    MS-Off Ver
    2010
    Posts
    2

    How do I create a formula with if and countif

    I need help please. I have a table Let's say Store number in column A, States in column B, Sales in column C, and I am trying to create a formula that will count the number of stores by States if Sales are greater than 0. I have tried a combination of countif and if, and countifs withouth success. Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I create a formula with if and countif

    =COUNTIFS(A:A, "Store A", B:B, "VT", C:C, ">0")
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: How do I create a formula with if and countif

    if state name is "AA" or refer cell

    =COUNTIFS(C1:C10,">0",B1:B10,"AA")
    Click just below left if it helps, Boo?ath?

  4. #4
    Registered User
    Join Date
    08-08-2014
    Location
    aafted pass
    MS-Off Ver
    2010
    Posts
    2

    Re: How do I create a formula with if and countif

    @Chemist, I could not get it to work but Boopa's formula worked fine.
    Thanks to both of 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. [SOLVED] How do i create a countif formula in excel?
    By jp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2006, 05:15 AM
  2. [SOLVED] I need to create an array formula combined with a countif
    By Rochelle B in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-25-2005, 01:05 AM
  3. [SOLVED] How do I create a COUNTIF function with more than one criteria?
    By QC Coug in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  4. How do I create a COUNTIF function with more than one criteria?
    By BCowans in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. [SOLVED] How do I create a COUNTIF function with more than one criteria?
    By BCowans in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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