Consulting

Results 1 to 4 of 4

Thread: Excel Formula to compare between actual values and target values

  1. #1
    VBAX Tutor
    Joined
    Jan 2020
    Posts
    204
    Location

    Question Excel Formula to compare between actual values and target values

    Hi, I am trying to compare the actual values and the target values in order to validate if it's PASS or FAIL based on a condition.

    I have the following columns: TARGET, H or L, ACTUAL, PASS/FAIL.

    The Target column contains numbers of different types. Could be whole number, decimal, percentage, seconds, and two values (minimum and maximum).
    H or L column means that:
    H : ACTUAL has to be higher than target
    L : ACTUAL has to be lower than target

    The formula I have is: =IF(I2="","",IF(AND(G2="H",I2>=F2),"P",IF(AND(G2="L",I2<=F2),"P","F")))

    However that won't work on the one with a minimun and maximum. Any ideas?

    Thank you
    Attached Files Attached Files

  2. #2
    VBAX Tutor
    Joined
    Jan 2020
    Posts
    204
    Location
    Hello, I have solved this. Thank you
    Last edited by jazz2409; 04-25-2020 at 07:18 PM.

  3. #3
    VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Can you share the solution? Please.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  4. #4
    VBAX Tutor
    Joined
    Jan 2020
    Posts
    204
    Location
    Not sure if there is another way, but I decided to just split the target column into two: minimum and maximum targets then I used IF AND

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •