+ Reply to Thread
Results 1 to 12 of 12

Multiple condition formula

Hybrid View

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Multiple condition formula

    I hope the title is appropriate though It doesn't fully express what I need. I need a formula that is basically an IF OR UNLESS statement. When you type that into Google it has nothing to do with Excel.

    The formula below says is that if G40 = any of the following then the cell should fill with "Not Changed" but if P40 is less than Q1 which is a Gross profit percentage then subtract S40 from E40 and populate the cell with the answer. E40 = a billing rate and S40 is that billing rate times Q1. The formula is either calculating a new pay rate for me or not changing the old rate and placing "Not Changed" in the field. The problem now is that I also need the formula to take into consideration another job title (Column G) + a company name (Column M) and instead of using the percentage used in Q1 use a percentage in R1.

    Is this even possible. Please let me know if this is not understood.

    =IF(OR(G40="Behavioral Specialist Consult",G40="Mobile Therapist",G40="Lead Clinician",G40="Licensed Clinician/New Jersey",G40="Psychologist / Psychiatrist",G40="Non Licensed Clinician",G40="Counselor"),"Not Changed",IF(P40<$Q$1,E40-S40,"Not Changed"))

    THANK YOU TO ALL OF YOU WHO ARE TEACHING ME!
    Last edited by Cjax; 07-28-2009 at 10:37 AM.

  2. #2
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: If or

    If there needs to be more explanation please let me know. Thanks

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: If or

    need to see a sample with results you expect
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: If or

    Here's my spreadsheet with names changed and coded so as not to release confidential info. Hopefully this along with the original question helps. Thanks again.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: If or

    You forgot to include samples of your expected results, enough of them to demonstrate all the various hurdles. Obviously this would be manual, we'll try to help with the formula version.
    Last edited by JBeaucaire; 07-27-2009 at 08:19 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: If or

    Hi again JBeaucaire - you've helped me before...I'm not sure I understand how to provide samples. Do you mean directly in the spreadsheet? Column Q is where I want the formula to reside and is where the current formula is. It meets all of my needs except for the add on which would say that if column m equals C or EW and P is less than Q1 then calculate a new pay rate based on R1.

    So should I include a sample of the add on. in the spreadsheet and then tell you which cell the sample answer resides in? Sorry if I'm being dense.

  7. #7
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: If or

    So I guess all of column Q is an example of all the results I need expect for the new part.

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: If or

    In Q3, this adds in the new level test, but you didn't explain the new pay rate, so I marked it for you to enter that formula...

    =IF(ISNUMBER(MATCH(G3,{"B","C","LC","LN","M","NLC","PP"},0)),"Not Changed",IF(P3<$Q$1,IF(ISNUMBER(MATCH(M3,{"C","EW"},0)),"New Rate based on R1",E3-S3),"Not Changed"))

  9. #9
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: If or

    This looks like this is going to work perfectly. I'm going to add it in now bu I have a question about my new formula. If the formula I would add into the red area is E3-(R1*E3) well it not enter in correctly because of the parenthesis?

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If or

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  11. #11
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Multiple condition formula

    JBeuacaire - don't kill me but in one of my posts above I forgot to mention that in the new level test in addition to the criteria in column M it also needs to meet one piece of criteria in column G.

  12. #12
    Registered User
    Join Date
    06-24-2009
    Location
    Royersford, Pa
    MS-Off Ver
    Excel 2007
    Posts
    89

    Re: Multiple condition formula

    So I figured it out after using the formula that JBeuacaire gave me and then adding a section. See below:

    =IF(ISNUMBER(MATCH(G3,{"B","C","LC","LCN","M","NLC","PP"},0)),"Not Changed",IF(P3<$Q$1,IF(AND(ISNUMBER(MATCH(M3,{"C","EW"},0))*(G3="T")),E3-($R$1-E3),E3-S3),"Not Changed"))

    What I changed is in bold.

    Thanks guys for 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