+ Reply to Thread
Results 1 to 2 of 2

COUNTIF COMBINATION??

  1. #1
    Heather
    Guest

    COUNTIF COMBINATION??

    Hello,

    Can you combine a countif and if statement?
    Such as:
    =Countif(AA4:AF4,">0") this yields an answer.
    =IF(AF29>0,AF29, IF($F29=AH$3,($V29+$W29+$X29+$Y29)/6,0))

    I would like only answers in the countif statement that are = to 6 to yield
    a 0 and not perform the IF statement. But if the countif statement yields
    less than a 6, to continue with the IF statement.

    I hope that makes sense.

    Any help would be great.

    Thanks in advance.
    --
    Heather

  2. #2
    JulieD
    Guest

    Re: COUNTIF COMBINATION??

    Hi Heather

    how about
    =IF(COUNTIF(AA4:AF4,">0")<6,IF(AF29>0,AF29,
    IF($F29=AH$3,($V29+$W29+$X29+$Y29)/6,0)),0)

    --
    Cheers
    JulieD
    check out www.hcts.net.au/tipsandtricks.htm
    ....well i'm working on it anyway
    "Heather" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    >
    > Can you combine a countif and if statement?
    > Such as:
    > =Countif(AA4:AF4,">0") this yields an answer.
    > =IF(AF29>0,AF29, IF($F29=AH$3,($V29+$W29+$X29+$Y29)/6,0))
    >
    > I would like only answers in the countif statement that are = to 6 to
    > yield
    > a 0 and not perform the IF statement. But if the countif statement yields
    > less than a 6, to continue with the IF statement.
    >
    > I hope that makes sense.
    >
    > Any help would be great.
    >
    > Thanks in advance.
    > --
    > Heather




+ 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