+ Reply to Thread
Results 1 to 5 of 5

IF Formula with Multi Value

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    Chennai,India
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    26

    IF Formula with Multi Value

    Hello everyone. Am a basic excel user and need help in this requirement. I have huge and need to

    Condition is, if Cell A1 having the value P1 and A2 is >= 30 then result is Compliant else Noncompliant, if Cell A1 having the value P2 and A2 is >= 60 then result is Compliant else Noncompliant, if Cell A1 having the value P3 and A2 is >= 90 then result is Compliant else Noncompliant
    Regards
    Dhilip

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

    Re: IF Formula with Multi Value

    A sample sheet might help (see banner... top).... but try:

    =IF(OR(AND(A1=P1,A2>=30),AND(A1=P2,A2>=60),AND(A1=P3,A2>=90)),"Compliant","Non-compliant")
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-22-2013
    Location
    Chennai,India
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    26

    Re: IF Formula with Multi Value

    thanks for the quick help Glenn this worked.
    =IF(OR(AND(A1="P1",A2>="30"),AND(A1=P2,A2>="60"),AND(A1="P3",A2>=90)),"Non-Compliant","Compliant")

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

    Re: IF Formula with Multi Value

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  5. #5
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: IF Formula with Multi Value

    Hi dhilipan,

    You seem to have "Compliant" and "Non-Compliant" the wrong way around and a bunch of things in quotes that shouldn't be. Unless the number in A2 is entered as text, that is. Try this, which is Glenn's solution but with quotation marks around the P1, P2 and P3.

    =IF(OR(AND(A1="P1",A2>=30),AND(A1="P2",A2>=60),AND(A1="P3",A2>=90)),"Compliant","Non-compliant")

+ 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] Multi criteria INDEX/MATCH in multi-column FILTER spill range
    By Coley356 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2021, 04:23 PM
  2. Copy Multi Rows From Multi Sheets Based On Column Value And Create New Workbooks
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2017, 04:51 PM
  3. Writing the loop for updating multi-table MS access file using multi-sheet excel
    By relabz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2016, 03:10 PM
  4. [SOLVED] Regular formula or array for multi colum multi criteria?
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2016, 01:40 PM
  5. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  6. [SOLVED] How do I calculate Daily Sales for multi-day, multi-tech jobs?
    By David in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 06:35 AM
  7. Replies: 3
    Last Post: 06-07-2005, 09:05 AM

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