+ Reply to Thread
Results 1 to 4 of 4

If all cells = "OK" then.....

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    183

    If all cells = "OK" then.....

    I have a 10 cells containing the word "OK" or "Error" depending on an IF statement in each cell.

    However Im now trying my make a sum cell for this. IF all cells contains OK then "OK" if not write "Error"..

    How can I do this?

  2. #2
    Bob Phillips
    Guest

    Re: If all cells = "OK" then.....

    =IF(COUNTIF(A1:M1,"OK")=13,"OK","Error")

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Ctech" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a 10 cells containing the word "OK" or "Error" depending on an IF
    > statement in each cell.
    >
    > However Im now trying my make a sum cell for this. IF all cells
    > contains OK then "OK" if not write "Error"..
    >
    > How can I do this?
    >
    >
    > --
    > Ctech
    >
    >
    > ------------------------------------------------------------------------
    > Ctech's Profile:

    http://www.excelforum.com/member.php...o&userid=27745
    > View this thread: http://www.excelforum.com/showthread...hreadid=516538
    >




  3. #3
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    183
    Thanks

    Regards,

    Chris

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Wink countif

    [QUOTE=Ctech]I have a 10 cells containing the word "OK" or "Error" depending on an IF statement in each cell.

    However Im now trying my make a sum cell for this. IF all cells contains OK then "OK" if not write "Error"..


    =COUNTIF(A1:A10,"ok")
    =if(range=10,then"ok","error")

+ 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