+ Reply to Thread
Results 1 to 7 of 7

Return 3 values

  1. #1
    Registered User
    Join Date
    09-12-2016
    Location
    Breda
    MS-Off Ver
    2010
    Posts
    14

    Return 3 values

    Hello,

    Having difficulties to get my furmula working, I have the following:

    =IF((U5<L3; "PASS";IF(U5=0;"";IF(U5<1;"";"FAIL")) )

    If U5 is higher than the valua in L3 it needs to return "PASS", if it is 0 it needs to remain Blanc, if the value is anywehere between 1 and 10 it needs to return "FAIL"

    Hope you can help me.

    Thank you!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,673

    Re: Return 3 values

    Try

    =IF(U5>L3; "PASS";IF(U5=0;"";IF(AND(U5>=1;U5<=10);"FAIL";"")) )
    Last edited by JohnTopley; 07-10-2017 at 08:20 AM.

  3. #3
    Registered User
    Join Date
    09-12-2016
    Location
    Breda
    MS-Off Ver
    2010
    Posts
    14

    Re: Return 3 values

    Thank you, still struggling. Working on the workbook for too long I guess... Maybe it's easier if I upload it and explain what I want to do, attached the file.

    1. Column U Shows the count of "GK" and "NVD" that are entered for columns K to T. If the value of the sum of these 2 counts is 1 or more the value in column V needs to return FAIL.
    2. If all values in the columns K to T are VD it should recognize this and show pass in Column V
    3. If there are no values the cell needs to remain empty (also if not all columns are filled in)

    Small detail. this template now has 10 columns to enter data, however this can be less too, the amount of columns (and values column V and U need to look at) is mentioned in L3 (used in other formula's). The number of columns not needed will be deleted from the template)
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Return 3 values

    feed some data in the attached file and show the expected result manually for better understanding.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,673

    Re: Return 3 values

    Try

    =IF(COUNTIF($K5:$T5,"VD")=L3; "PASS";IF($U5>=1;"FAIL",""))

  6. #6
    Registered User
    Join Date
    09-12-2016
    Location
    Breda
    MS-Off Ver
    2010
    Posts
    14

    Re: Return 3 values

    That's doing exactly what I needed, thank you so much!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,197

    Re: Return 3 values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 3
    Last Post: 03-10-2017, 07:56 PM
  2. [SOLVED] return FROM TO values from custom defined range , and return all possible combination
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2016, 01:38 PM
  3. [SOLVED] VBA code to look up a list of values based on entered values and return all values.
    By dnwadams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2015, 10:14 PM
  4. Replies: 3
    Last Post: 12-13-2013, 06:23 AM
  5. [SOLVED] Return value if within range, return multiple values if ranges overlap
    By cde1983 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2013, 06:16 AM
  6. Replies: 1
    Last Post: 07-03-2013, 12:14 AM
  7. Replies: 2
    Last Post: 11-12-2012, 06:26 AM

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