+ Reply to Thread
Results 1 to 6 of 6

Use outputs from formula, compare then and return with one of the three conditions

  1. #1
    Registered User
    Join Date
    04-11-2015
    Location
    Abu Dhabi
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Use outputs from formula, compare then and return with one of the three conditions

    Greeting,

    I am preparing a machine monitoring excel sheet. Values for the parameters are populated thru phd uniformance.
    For example I have listed four tag nos. for vibrations.
    Column I has the value populated from PHD
    In Column M has the return value based on the formula (shown in the attached picture)

    Now I want to write a formula to check the four outputs and return with following.
    1) "NORMAL" is all four cell have "Normal"
    2) "ALERT" is one of the cell has "Alert" and rest are "Normal"
    3) "DANGER" if one of the cell has "Danger" and rest are "Normal" OR "Alert"

    I've tried this formula but is not working. Pl help
    =IF(OR(M5="Danger", M6="Danger",M7="Danger",M8="Danger")="Danger", "DANGER", IF(OR(M5="Alert", M6="Alert",M7="Alert",M8="Alert")="Alert","ALERT","NORMAL"))

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Use outputs from formula, compare then and return with one of the three conditions

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Use outputs from formula, compare then and return with one of the three conditions

    Please Login or Register  to view this content.
    or try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    04-11-2015
    Location
    Abu Dhabi
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Use outputs from formula, compare then and return with one of the three conditions

    It worked. Thanks a lot TMS.

    Regards,
    dmk18572

  5. #5
    Registered User
    Join Date
    04-11-2015
    Location
    Abu Dhabi
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Use outputs from formula, compare then and return with one of the three conditions

    Thanks popipipo.
    It works too.

    Regards,
    dmk18572

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Use outputs from formula, compare then and return with one of the three conditions

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] VBA to compare 2 data outputs and select only lines with changes
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-22-2014, 07:51 AM
  2. Need help with compare and return formula...
    By cavsfan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-19-2014, 05:03 AM
  3. [SOLVED] Formula to return a value if certain other conditions are met.
    By hammer2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2013, 11:06 AM
  4. [SOLVED] Sort and compare multiple database outputs identifying variances.
    By Dilbet in forum Excel General
    Replies: 4
    Last Post: 01-31-2013, 04:14 AM
  5. Replies: 4
    Last Post: 06-12-2012, 11:36 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