+ Reply to Thread
Results 1 to 7 of 7

Simple indicator

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Simple indicator

    I would like to create an indicator.

    This indicator should display "OK" when two columns both either display a bunch of letters in the same row or both of the columns display a value of 0.

    The indicator should display "ERROR" if the left column displays a 0 and the right column displays a bunch of letters.

    I have been trying:

    =IF(AND(B3:B17=0,C3:C17<>0),"ERROR","OK")

    But that does not work.

    The following example might help:

    Simple example.xlsx

    Thanks already!!!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Simple indicator

    hi Kybynn, try this:
    =IF(OR(AND(ISTEXT(B3),ISTEXT(C3)),AND(B3=0,C3=0)),"OK","ERROR")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Simple indicator

    or like this ???
    don't know if this is applicable also.

    =IF(COUNT(G3:G17)<>COUNT(H3:H17),"Error","OK") - counts 0
    or
    =IF(SUMPRODUCT((G3:G17<>H3:H17)+0)>0,"Errors","Ok") - check every row if same
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Simple indicator

    Thanks a lot! In the end, I used =IF(COUNT(G3:G17)<>COUNT(H3:H17),"Error","OK").

    Stars for everyone!!!

    Cheers!

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Simple indicator

    Your Welcome from both of us. don't forget to mark this thread as "solved" thanks.

  6. #6
    Registered User
    Join Date
    02-22-2012
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Simple indicator

    Thanks for the reminder. I find it just amazing, that someone as young as you is capable using a computer and be so good at Excel!

    Very nice!

  7. #7
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Simple indicator

    realised i got your question wrongly. =x
    thanks for the rating anyway!

+ 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