+ Reply to Thread
Results 1 to 6 of 6

Using the IF formula show commission based on what year customer was created

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    Cranberry Township, PA
    MS-Off Ver
    OFFICE 365
    Posts
    12

    Lightbulb Using the IF formula show commission based on what year customer was created

    I am looking to show a percentage based on the year. The 1st year I get 4% of column E. The 2nd year I get 1.5%, the 3rd year I get 1%, the 4th year I get 0.5% and the 5th year on I do not get a commission. Can you please show how to write this formula.
    Attached Files Attached Files

  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,737

    Re: Using the IF formula show commission based on what year customer was created

    Is this based on the creation date
    Then you could use
    =YEARFRAC(I2,TODAY()) to calculate the year fraction

    Then use INT() to just get the complete years
    =INT(YEARFRAC(I2,TODAY()))

    now you can use an nested IF to work out the commision

    =IF(INT(YEARFRAC(I2,TODAY())) >= 4, (E2*0.04)+(E2*0.015)+(E2*0.01)+(E2*0.005),IF(INT(YEARFRAC(I2,TODAY())) = 3, (E2*0.04)+(E2*0.015)+(E2*0.01),IF(INT(YEARFRAC(I2,TODAY())) = 2, (E2*0.04)+(E2*0.015),IF(INT(YEARFRAC(I2,TODAY())) = 1, (E2*0.04), 0))))
    Attached Files Attached Files
    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-08-2014
    Location
    Cranberry Township, PA
    MS-Off Ver
    OFFICE 365
    Posts
    12

    Re: Using the IF formula show commission based on what year customer was created

    Your formula is great, but the only issue is rows 4, 5, 6 the create date is 2012. I only get commissions based on 5 years where I would not get a commission for these dates. Is there a way to edit the formula to show 1st yr 4%, 2nd yr 1.5% 3rd yr 1% 4th yr 0.5% and 5th yr, 6th, 7th, 8th, 9th yrs show zero commission.

  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,737

    Re: Using the IF formula show commission based on what year customer was created

    OK, so we could just add another IF for 5 or greater as zero, and then usd = 4 only

    =IF(INT(YEARFRAC(I2,TODAY())) >= 5, 0 , IF(INT(YEARFRAC(I2,TODAY())) = 4, (E2*0.04)+(E2*0.015)+(E2*0.01)+(E2*0.005),IF(INT(YEARFRAC(I2,TODAY())) = 3, (E2*0.04)+(E2*0.015)+(E2*0.01),IF(INT(YEARFRAC(I2,TODAY())) = 2, (E2*0.04)+(E2*0.015),IF(INT(YEARFRAC(I2,TODAY())) = 1, (E2*0.04), 0)))))

    usually I would change so we don't have zero at beginning and end

    But....
    does that work OK
    Attached Files Attached Files
    Last edited by etaf; 08-04-2020 at 06:54 PM.

  5. #5
    Registered User
    Join Date
    11-08-2014
    Location
    Cranberry Township, PA
    MS-Off Ver
    OFFICE 365
    Posts
    12

    Re: Using the IF formula show commission based on what year customer was created

    Maybe I am not explaining it correctly. If I bring on a new customer I get 4% commission based on the start date, counting backwards or from 8/4/2020 and 8/4/2019 I get 4% commission, from 8/3/2019 to 8/4/2018 I get 1.5% commission. From 8/3/2018 to 8/4/2017 I get 1% commission. from 8/3/2017 to 8/4/2016 I get 0.5% commission. From 8/3/2016 to 1/1/2000 I get zero commission.

    Row 9 - I should get $64.00 commission but the formula says I get $0.00 -

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

    Re: Using the IF formula show commission based on what year customer was created

    How about:
    Please Login or Register  to view this content.
    Quang PT

+ 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] Drop Down list showing current month & year and formula to show Prev Year
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2020, 11:54 PM
  2. formula for show customer address
    By rana19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2016, 10:54 AM
  3. [SOLVED] formula for show customer address
    By rana19 in forum Excel General
    Replies: 10
    Last Post: 05-19-2016, 05:14 AM
  4. Replies: 7
    Last Post: 01-25-2016, 08:10 AM
  5. Replies: 0
    Last Post: 11-23-2012, 01:27 AM
  6. show customer based on Weekday
    By Jill in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2006, 11:15 AM
  7. [SOLVED] show customer based on Weekday
    By Jill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2006, 11:15 AM

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