+ Reply to Thread
Results 1 to 9 of 9

Problem solving complex if/and/or formula

  1. #1
    Registered User
    Join Date
    03-20-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Problem solving complex if/and/or formula

    I am having difficulties coming up with a formula to solve the following criteria... please help!!!

    1 point for K2=A OR K2=B OR K2=C OR K2=D
    1 point for L2>139 OR M2>89 (if both, still only add 1 point)
    1 point for N2>149 OR R2<40 OR S2>99 OR T2>199 (if one or more, still only add 1 point)
    1 point for O2>125 OR O2 has red font
    1 point for W2>26 IF (Q2>1.0 if D2=M OR Q2>0.8 if D2=F)

    I need all the points to add up in X2.
    Attached Files Attached Files
    Last edited by dab37843; 09-12-2012 at 10:19 AM.

  2. #2
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Problem solving complex if/and/or formula

    post an attachment please

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problem solving complex if/and/or formula

    you will require vba because of the font color criterion. is the color manually applied or applied by conditional formatting?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    03-20-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Problem solving complex if/and/or formula

    attachment posted

  5. #5
    Registered User
    Join Date
    03-20-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Problem solving complex if/and/or formula

    I manually create the color based on criteria but could change it to have a X in one of the cells instead.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problem solving complex if/and/or formula

    can you clarify the last criterion?
    the formula will be something like
    =OR(K1={"A","B","C","D"})+OR(L1>139,M1>89)+OR(N1>149,R1<40,S1>99,T1>199)+OR(O1>125,Y1="X")+OR(W1>26)
    which assumes Y1=X instead of the red font color and is awaiting details of the W1 criteria

  7. #7
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Problem solving complex if/and/or formula

    =(IF(OR(K2="A", K2="B", K2="C", K2="D"), 1, 0))+(IF(OR(L2>139, M2>89), 1, 0))+(IF(OR(N2>149, AND(R2<40,R2>0), S2>99, T2>199), 1, 0))+(IF(AND(OR(AND(D2="M", Q2>1), AND(D2="F", Q2>0.8)), W2>26), 1, 0))

    Ive got this for all conditions except the second last one with the cell in red.
    what do u mean by put an x? would the criteria be:
    1 point for O2>125 OR O2 has "an x in it"

  8. #8
    Forum Contributor
    Join Date
    08-01-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Problem solving complex if/and/or formula

    ahh ok then use this
    =(IF(OR(K2="A", K2="B", K2="C", K2="D"), 1, 0))+(IF(OR(L2>139, M2>89), 1, 0))+(IF(OR(N2>149, AND(R2<40,R2>0), S2>99, T2>199), 1, 0))+(IF(AND(OR(AND(D2="M", Q2>1), AND(D2="F", Q2>0.8)), W2>26), 1, 0))+(IF(OR(O2>125, O2="X"), 1, 0))

  9. #9
    Registered User
    Join Date
    03-20-2012
    Location
    Springfield, MO
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Problem solving complex if/and/or formula

    Problem solved! Thank you for all the help!!

+ 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