+ Reply to Thread
Results 1 to 6 of 6

COUNTIF function? Or something else?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-25-2016
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    COUNTIF function? Or something else?

    Hi there! I need help figuring out how to use the countif function or another function for this case.

    I have a spreadsheet with a lot of number data in columns B-G. I want Excel to tell me how many times there is a number greater than 0 in BOTH columns C and G. How do I do this? I've tried using countif and can't figure it out. I've also tried googling and no one seems to talk about this. Is there a formula I can use for this?

    Also, is there a way to set up multipliers in Excel? So for example, I have a total column. If the total is 12 or less, enter 1. If the total is 12-24, enter 2. And so on by multiples of 12?

    Thank you!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIF function? Or something else?

    For the count...

    =COUNTIFS(C:C,">0",G:G,">0")

    For the other question...

    How many levels are there?

    If the number was 12 what level would that be, 1 or 2?

    You have:

    12 or less, enter 1
    12-24, enter 2

    So there's an overlap at 12.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIF function? Or something else?

    Maybe this for the 12 multiplier...

    1 to 12 = 1
    13 to 24 = 2
    25 to 36 = 3
    37 to 48 = 4
    49 to 60 = 5
    61 to 72 = 6
    etc
    etc

    A1 = some number

    =CEILING(A1/12,1)

  4. #4
    Registered User
    Join Date
    06-25-2016
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: COUNTIF function? Or something else?

    Hi Tony,

    Thanks so much. The countifs worked!

    In regards to the 12 question, 12 would be 1. So I should have said if the number is 21 or less, it would be 1. If it was 13-24, it would be 2. 25-36, would be 3. So on and so forth in multiples of 12.

  5. #5
    Registered User
    Join Date
    06-25-2016
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: COUNTIF function? Or something else?

    Thanks Tony! The multiplier worked!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIF function? Or something else?

    You're welcome. Thanks for the feedback!

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  2. [SOLVED] IF function combination of COUNTIF function
    By emina002 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-20-2012, 01:53 AM
  3. Replies: 9
    Last Post: 07-02-2012, 07:02 PM
  4. Using Countif Function with the Month & Year Function
    By laya1024 in forum Excel General
    Replies: 3
    Last Post: 02-03-2009, 07:52 PM
  5. please help how to combine IF function with Countif function
    By Dinesh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2006, 03:35 PM
  6. How do I use a countif function according to two other countif fu.
    By Kirsty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2006, 07:50 AM
  7. Embed a countif function in subtotal function?
    By Stuck at work in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2006, 11:20 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