Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: If Formula and Countif

  1. #1
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,655
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-01-14 16:22, justine wrote:
    I asked it wrong before, so I'll try again.

    I need a formula that will count how many NS are in E20 thru M20 also, I need in the same formula to enter a N/A if there are Quit or Inj in the same E20 thru M20. is that possible? (Also, I need it to return a blank cell if there aren't any NS, Quit or Inj entered.

    Thanks!

    [ This Message was edited by: justine on 2002-01-14 16:23 ]
    All this in the same formula?


  2. #2
    New Member
    Join Date
    Feb 2002
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I asked it wrong before, so I'll try again.

    I need a formula that will count how many NS are in E20 thru M20 also, I need in the same formula to enter a N/A if there are Quit or Inj in the same E20 thru M20. is that possible? (Also, I need it to return a blank cell if there aren't any NS, Quit or Inj entered.

    Thanks!

    [ This Message was edited by: justine on 2002-01-14 16:23 ]

  3. #3
    New Member
    Join Date
    Feb 2002
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Yes.. Is that possible?

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Location
    London, UK
    Posts
    167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =IF(COUNTIF(E20:M20,"Quit")>0,"N/A",IF(COUNTIF(E20:M20,"Inj")>0,"N/A",IF(COUNTIF(E20:M20,"NS")>0,COUNTIF(E20:M20,"NS"),"")))

    <table style="background-color:#0e54be" cellspacing="1" cellpadding="2"><td style="background-color:#ceffff;font-family:arial;color:#072c63;font-size:8pt;"> DALEY :P </td></table>

  5. #5
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,655
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-15 06:00, justine wrote:
    Yes.. Is that possible?
    No, unless the data are such that only one of the conditions holds, for example,

    when CountOf(NS)>0, Quit and NJ do not occur in the range.

    Aladin

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •