+ Reply to Thread
Results 1 to 3 of 3

IF Function

  1. #1
    Registered User
    Join Date
    06-27-2018
    Location
    Fife, Scotland
    MS-Off Ver
    2016
    Posts
    4

    IF Function

    Hi there,

    I posted the following the other day:

    ((Data:
    5 collums of data (A,B,C,D,E) and 33 participants.
    If Function needed for:
    define person as 'risk' if either '3 out of 4 values (A,B,C,D) are smaller than 10' OR if '2 out of 4 values (A,B,C,D) are smaller than 10 AND E< 15'. Otherwise no risk.))

    Special-K kindly provided a formula that solved the problem. Now my work has turned round with another set of conditions :

    In addition to the risk category, I now need another two categories.
    1. risk (see above)
    2. medium (if neither risk nor no risk)
    3. no risk (3 out 4 values of A,B,C,D greater than 40% and E>40)

    I have spent ages trying to amend the function I already have for the risk category only, but all I get is a lot of different error messages!
    This is one of many attempts:
    =IF(OR(COUNTIF(A3:D3,"<10%")=3,AND(COUNTIF(A3:D3,"<10%")=2,E3<15)),"Risk",IF(COUNTIF(A3:D3,">40%")>3),AND(F3>40),"no risk","medium")


    Sorry for posting this again! Any help would be greatly apprreciated!
    Helen
    Attached Files Attached Files
    Last edited by Helen28; 06-29-2018 at 11:00 AM. Reason: Additional condiitions

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: IF Function

    Try

    in G3
    =IF(OR(COUNTIF(A3:D3,"<10%")=3,AND(COUNTIF(A3:D3,"<10%")=2,E3<15)),"","No ")&"Risk"
    and copy down the column
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    06-27-2018
    Location
    Fife, Scotland
    MS-Off Ver
    2016
    Posts
    4

    Re: IF Function

    Special-K,

    it works! Thank you so much for your help!

    Best wisches,
    Helen

+ 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. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  2. [SOLVED] Usage of standard functions into custom function (or user defined function)
    By tusharb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2016, 12:43 AM
  3. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  4. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  5. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 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