+ Reply to Thread
Results 1 to 15 of 15

Check the condition and return the value as "1"

  1. #1
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Post Check the condition and return the value as "1"

    IN my Excel i have two conditions to fullfull if either one is true then return with the answer in the cell with the value "1"

    Condition one & Condition Two.

    If the text in the cell of the Row 1 is red or If there is a cell with Yellow highlight then return the value with "1" Else "0"

    Thank you. Looking forward for the answer

  2. #2
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Attached the file
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Check the condition and return the value as "1"

    In your real sheet, are the text colours and fills changed manually, or (using a rule) with conditional formatting? If it's done manually, is there any rule that you apply? Otherwise this is not easy.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Yes it has condition, I have done the coloring and the nightlights here manually.

    If the Column I has Solution Design then consider column J, K L,M, N should be in the future from the current date Else the Row has "Error"
    If the Column I has Decision pending then Consider Column J in the past and the rest K,L,M,N should be in the future else the row has "Error"

    Thank you in advance for the reply.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Check the condition and return the value as "1"

    OK. Can you repost your sample sheet, showing what you expect to see... and where you expect to see it. I follow your basic requirement (I think!!)

  6. #6
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Hi Glen,

    Thank you for the reply. Here is the file and the result that i would like to see at the end of the Column.
    Please have a look at the file attached.
    Attached Files Attached Files

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Check the condition and return the value as "1"

    Try in AM2 then drag down:

    Please Login or Register  to view this content.
    Quang PT

  8. #8
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Hi Bebo,

    Have tried but returns with formula error. May be some parenthesis is missing !!!?

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Check the condition and return the value as "1"

    It works for me
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Hi Bebo, Now i see it works in your file. Only difference is ; and ,

    But the row 5 should return with 1 because there is no error in it. But it returns with the result Error !!!!!

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Check the condition and return the value as "1"

    K5 is 01-May-2020 in the past then error.

  12. #12
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    THank you so much for the formula it works Appreciated

  13. #13
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    Greetings i have one more additional feature together with this formula to enrich.

    How to add if the further cells like R2, AB2, AC2, ACD2 are empty or value 0 Return it as Error ?

    Thank you in advance.

  14. #14
    Registered User
    Join Date
    10-12-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    11

    Re: Check the condition and return the value as "1"

    =IF(OR(AND(I2="Solution Design",INDEX(J2:N2 > TODAY(),)),AND(I2="Decision pending",J2 < TODAY(),INDEX(K2:N2 > TODAY(),))),1,"Error"

    How to add if the further cells like R2, AB2, AC2, ACD2 are empty or value 0 Return it as Error ?

    Thank you in advance.

    This applies for both Solution Design & DEcision pending.

  15. #15
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Check the condition and return the value as "1"

    Try:

    =IF(OR(R2=0,AB2=0,AC2=0,AD2=0),"Error", "YOUR FORMULA")

+ 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. [SOLVED] Check multiple cells and return "Pass" or "Fail"
    By PC78 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2019, 03:26 PM
  2. [SOLVED] Return row # from column A if "Value" = X or Y if condition "yes" is met.
    By TheFireBat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-20-2017, 05:50 PM
  3. Check hyperlinks in excel - return "Y" or "N"
    By dawsonsoo in forum Excel General
    Replies: 2
    Last Post: 05-12-2015, 08:39 AM
  4. [SOLVED] Check next row if value is, "FALSE," if "TRUE," return specified value from this row
    By Dave_Doodle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-19-2015, 10:18 AM
  5. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  6. check for condition"Number or not" and subtract
    By kannanr03 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 08-03-2012, 12:35 PM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 PM

Tags for this Thread

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