+ Reply to Thread
Results 1 to 6 of 6

if(countif(if...logic help

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-27-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    113

    if(countif(if...logic help

    Hello i have the following formula, but it appears to not be working correctly.

    =IF(COUNTIF(D8:O8,"<=3"),0,IF(E26>=100%,C27/12*COUNTIF(D8:O8,">0"),0))

    basically, what i want to show is

    if the count D8:O8 is <= 3 then 0,
    otherwise
    IF(E26>=100%,C27/12*COUNTIF(D8:O8,">0"),0))

    can someone pls help with my logic!

    thx u
    Last edited by step_one; 09-23-2011 at 11:46 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: if(countif(if...logic help

    In words the first part of your formula is doing this...

    "If D8:O8 contains any numbers less than or equal to three the return a zero......otherwise evaluate this IF function"

    perhaps that isn't what you want - can you elucidate - I don't understand what this part means:

    if the count D8:O8 is <= 3.....
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    04-27-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: if(countif(if...logic help

    basically
    D8:O8 = months

    so im showing the annual bonus...the annual bonus doesnt apply to ppl that have less than 3 months of tenure

    so if D8:O8 is <=3 months

    then annual bonus is 0

    otherwise, calculate bonus using this:
    IF(E26>=100%,C27/12*COUNTIF(D8:O8,">0"),0))


    can u help!

  4. #4
    Forum Contributor
    Join Date
    04-27-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: if(countif(if...logic help

    i tried this approach, but no having much luck either...

    =IF(AND(E26>=100%,COUNTIF(D8:O8,">3")),C27/12*COUNTIF(D8:O8,">0"),0)

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: if(countif(if...logic help

    So what values do you actually have in D8:O8 - are they 1s and zeroes or something else?

  6. #6
    Forum Contributor
    Join Date
    04-27-2011
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: if(countif(if...logic help

    hello thxs for the help with that....


    i made in a mistake in my countif



    i had 0s in my range, so once i changed it to "" or blanks, the formula worked...thxs alot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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