+ Reply to Thread
Results 1 to 13 of 13

If/Then formula with multiple factors

  1. #1
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    If/Then formula with multiple factors

    I need to create formula(s) for the following:

    if cell G35 is <0 but greater than -5.00% then Cell G23 times 98.5%. if cell G35 is <-5.0% but greater than -10.00% then Cell G23 times 95.0%. If cell G35 is <-10% then G23 times 90%

    if cell G36 is <0 but greater than -250,000 then Cell G23 times 98.5%. if cell G36 is <250,000 but greater than -500,000 then Cell G23 times 95.0%. If cell G36 is <-500,000 then G23 times 90%

    if cell G37 is <0 but greater than -5.00% then Cell G23 times 95%. if cell G37 is <-5.0% but greater than -15.00% then Cell G23 times 85.0%. If cell G37 is <-20% then G23 times 75%

    if cell G38 is <0 but greater than -5.00% then Cell G23 times 98.5%. if cell G38 is <-10.0% but greater than -25.00% then Cell G23 times 95.0%. If cell G38 is <-25% then cell G23 times 80%

    if cell G39 is >0 but < than 10.00% then Cell G23 times 95.0%. if cell G39 is >10.0% but less than 20.00% then Cell G23 times 90.0%; if cell G39 is >20% then Cell G23 times 80%

    if cell G40 is >0 but less than 10.00% then Cell G23 times 98.5%; if cell G40 is >10.0% but less than 15.00% then Cell G23 times 95.0%; if cell G40 is >15% then G23 times 85%

    if cell G41 is >0 but less than 250,000 then Cell G23 times 95%. if cell G41 is >250,000 but less than 500,000 then Cell G23 times 85.0%. If cell G41 >500,000 then cell G23 times 80%

    Any help would be greatly appreciated

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    where are you putting the formuals in another cell
    so an IF ()
    should work

    if cell G35 is <0 but greater than -5.00% then Cell G23 times 98.5%. if cell G35 is <-5.0% but greater than -10.00% then Cell G23 times 95.0%. If cell G35 is <-10% then G23 times 90%
    IF( AND(G35<0, G35>-0.05) , G23*0.985, IF( AND(G35 < -0.05 , G35 > -0.1 ) , G23*0.95, IF( g35 < -0.1, G23 * 0.9 , "does not meet criteria")))

    I have not included -0.05 - as not used an equal =
    so

    > -0.05 < -0.05 will not include 0.05
    same for -0.1

    if G35 is 0 or greater than you will get a "does not meet criteria"

    Does that work for you , if so then we can work out all the other criteria for your other rules
    but before doing that , just want to make sure the rules are clear
    Last edited by etaf; 11-17-2014 at 03:58 PM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    That will be fine. Thank you so very much for your help!

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    Does that mean you can work out the rest of the formulas
    or /and
    you are happy with not picking up the -0.5 or -1 or will you use an equals somewhere ?

  5. #5
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    Sorry I was trying to attach my spreadsheet so you could see where the formula(s) would be in the cell/worksheet. So you could see the function I am trying to establish. But I hate to say that I am having difficulty with that as well. This experience is not doing a lot for my ego, I can tell you that.

    Okay so I am not sure I understand what you are saying about the -.05 and-.1. Are you saying it won't pick up those numbers if they are exact? Like it will not figure -.05 but it will figure any variance (example -.056 and -.049)?

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    Okay so I am not sure I understand what you are saying about the -.05 and-.1. Are you saying it won't pick up those numbers if they are exact? Like it will not figure -.05 but it will figure any variance (example -.056 and -.049)?
    only because of what you said

    G35 is <0 but greater than -5.00%
    if cell G35 is <-5.0% but greater than -10.00%

    So
    if greater than does not include -5
    if less than does not include -5
    so which of the rules do you want to apply to include -5
    then all you do is make it
    less than or equal < =
    Greater than or equal > =
    you need to decide which rule * 98.5 or * 95 you want -5 to be include in

    sorry you are having trouble uploading a file
    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  7. #7
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    Test Calculations.xlsx

    I don't know if I will ever be able to express enough gratitude to you for the help you have given/continue to give me. I would buy you a coffee and a pastry if I could!!

    I have uploaded my test spreadsheet and revised the formula to include the equal to in the areas you mentioned. sorry that it took me so long to get what you were saying there.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    so are all those formulas working OK as you want now ?

    thanks for the coffee and Pastry - exactly what i like

  9. #9
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    No, the formulas that contain the numeric calculation instead of the percentage are not calculating correctly. For instance on this formula:

    if cell G36 is <0 but greater than or equal to -250,000 then Cell G23 times 98.5%. if cell G36 is <250,000 but greater than or equal to-500,000 then Cell G23 times 95.0%. If cell G36 is <-500,000 then G23 times 90%
    My variance is -330,000 but it is calculating the cell using If cell G36 is <-500,000 then G23 times 90%

    The other "number" formula (G41) is not calculating correctly either.

    I am sure this is clear as mud so I have attached my spreadsheet again so you can see, if that would help any.

    Trust me, at this point I am thinking coffee for a year. You have no idea how much you have helped me!


    Test Calculations.xlsx

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    =IF( AND(G36<0, G36>=250), F23*0.985, IF( AND(G36 <-250, G36>=-500 ), F23*0.95, IF( G36<-500, F23 * 0.9, "does not meet criteria")))

    so this is testing if G36 <0 and is >=250 - which cannot be true
    the AND is saying
    the Value must be less than zero AND also must be greater or eqaul to 250 at the same time - which cannot happen

    , but does that not need to be -250
    AND(G36<0, G36>=- 250)
    and again is it not supposed to be 250,000

    =IF( AND(G36<0, G36>=-250000), F23*0.985, IF( AND(G36 <-250000, G36>=-500000 ), F23*0.95, IF( G36<-50000, F23 * 0.9, "does not meet criteria")))

    AND

    if cell G41 is >0 but less than or equal to 250,000 then Cell G23 times 95%. if cell G41 is >250,000 but less than or equal to 500,000 then Cell G23 times 85.0%. If cell G41 >500,000 then cell G23 times 80%
    =IF( AND(G41>0, G41<=250), F23*0.95, IF( AND(G41 >250, G41<=500 ), F23*0.85, IF( G41 >500, F23 * 0.8, "does not meet criteria")))
    should be
    =IF( AND(G41>0, G41<=250000), F23*0.95, IF( AND(G41 >250000, G41<=500000 ), F23*0.85, IF( G41 >500000, F23 * 0.8, "does not meet criteria")))

    I'm in UK so will be signing off soon and back again tomorrow late afternoon early evening UK timezone
    and can help some more then
    Last edited by etaf; 11-17-2014 at 07:01 PM.

  11. #11
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    THANK YOU SO VERY MUCH!!!!

    You saved me, no joke. I had looked at this formula until my eyes were bleeding. Sadly to no avail.

    I really appreciate your help. I would have never even gotten close with out it.

  12. #12
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: If/Then formula with multiple factors

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  13. #13
    Registered User
    Join Date
    11-17-2014
    Location
    Clarksville, TN
    MS-Off Ver
    Professional Plus 2013
    Posts
    7

    Re: If/Then formula with multiple factors

    Done and Done. :D

+ 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. Replies: 0
    Last Post: 03-20-2013, 11:18 AM
  2. Excel 2007 : if statement with multiple factors
    By ricenog in forum Excel General
    Replies: 4
    Last Post: 06-30-2010, 06:22 PM
  3. Replies: 6
    Last Post: 07-31-2009, 10:58 AM
  4. How do I format a formula to recognize multiple comparison factors
    By CandaceES in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-20-2006, 03:35 PM
  5. Multiple IF factors
    By kamille824 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2005, 10:06 PM

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