+ Reply to Thread
Results 1 to 12 of 12

I think I need an "IF" formula

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    I think I need an "IF" formula

    I have a fairly simple task I'm trying to accomplish, but I'm not sure how to write the formula. I think I need to use an "IF" formula. I have a commission structure that is partly based on the credit score of a customer and the other part is based on the monthly rate I setup for the customer.

    If the customers credit score is between 600-624 and I setup the customers monthly rate at $40.00 per month, I get paid the Monthly Rate of $40.00 X 2 = $80.00. If the customers credit score is 625 or higher, I get paid the customers Monthly Rate $40.00 X 4 = 160.00.

    I can get the "IF" function to work for one credit range or the other but I don't know how to have both equations in the same cell depending on what the credit score is? Can someone please help me on this?

    Ex. =IF(Q2<=624,2)*M2

  2. #2
    Registered User
    Join Date
    05-24-2013
    Location
    Hampshire
    MS-Off Ver
    Office 2013
    Posts
    49

    Re: I think I need an "IF" formula

    =IF(Q2<=624,SUM($m$2*2),IF(Q2>=625,SUM($m$2*4)))

    Ash

    EDIT: Bear with me one moment, just checking it works lol
    Last edited by Ash_; 03-11-2014 at 12:29 PM.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: I think I need an "IF" formula

    Try:
    =IF(Q2>624,4,IF(Q2>599,2))*M2
    Suppose that paid = zero if credit core is less than 600.
    Quang PT

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: I think I need an "IF" formula

    May be this.....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: I think I need an "IF" formula

    @Richard
    +1 for your formula. lol.....actually you are right. It needs only one logical test anything <=624. I know you might be laughing after seeing other formulas. Even I am laughing on myself.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I think I need an "IF" formula

    @sktneer,

    I was premature. I'd missed the condition about >600. I've just deleted my post.

    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: I think I need an "IF" formula

    @Richard

    But I think your approach was correct. Probably you wrote "=IF(Q2<=624,2,4)*M2" which is doing as same as others. Now I am confused.

  8. #8
    Registered User
    Join Date
    05-24-2013
    Location
    Hampshire
    MS-Off Ver
    Office 2013
    Posts
    49

    Re: I think I need an "IF" formula

    How about:

    If you want 0 to show if below 600:
    Please Login or Register  to view this content.
    or

    If you want a blank cell to show if below 600:
    Please Login or Register  to view this content.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: I think I need an "IF" formula

    @sktneer

    Yes that is indeed what I originally wrote.

    However I'd missed the OPs statement that "If the customers credit score is between 600-624", which I subsequently interpreted to mean there is no commission if the credit score is 599 or less.

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

    Re: I think I need an "IF" formula

    another
    =LOOKUP(Q2,{0,600,625},{0,2,4})*M2
    "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

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,651

    Re: I think I need an "IF" formula

    @Richard

    I think OP has not explained well that what if the credit score is less than 600. Or he is only interested for anything equal to or more than 600. Only he can explain it better.

  12. #12
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: I think I need an "IF" formula

    Thank you all for the input! I was able use you input and make it work. Thank you so much!

+ 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: 4
    Last Post: 11-17-2013, 12:05 PM
  2. [SOLVED] How to short my formula which is ="("&a1&","&a2&","&a3&","&a4&" end in "&a200&")
    By vengatvj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-07-2013, 07:49 PM
  3. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  4. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  5. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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