+ Reply to Thread
Results 1 to 8 of 8

IF function for multiple multiplications on one cell

  1. #1
    Registered User
    Join Date
    10-18-2021
    Location
    Sydney, AUS
    MS-Off Ver
    unsure
    Posts
    5

    IF function for multiple multiplications on one cell

    Hello,

    In the attached Excel doc I have highlighted the cells in yellow that I am looking at. This is for working out commissions off of sales. The rule is:
    If a sales consultant's total retail value is:
    less than $200 = 0
    $200-$300 = multiplied by 15%
    $300-$400 = multiplied by 25%
    $400 + = multiplied by 40%

    I need the one cell (e.g AA8 to be able to have all those rules applied). Then I will be able to drag the formula down for the rest of the rows.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: IF function for multiple multiplications on one cell

    =if(z8<200,0,if(and(z8>199,z8<300),z8*0.15,if(and(z8>299,z8<400),z8*0.25,z8*0.4)))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: IF function for multiple multiplications on one cell

    is this a tiered formula such as $375 sales, the first $200 gets nothing, the next $100 is multiplied by 15% then the last $75 is multiplied by 25%?
    or is this a straight amount that all $375 would be multiplied by 25%?

    if it is the 2nd one then this should work for you... =IF(Z8>199.99,Z8*0.15,IF(Z8>299.99,Z8*0.25,IF(Z8>399.99,Z8*0.4,0)))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: IF function for multiple multiplications on one cell

    disregard my if stmt, I had the values reversed (didn't test them )
    should have been... =IF(Z8>399.99,Z8*0.4,IF(Z8>299.99,Z8*0.25,IF(Z8>199.99,Z8*0.15,0)))
    an alternative would be this lookup... =Z8*(LOOKUP(Z8,{0,200,300,400},{0,0.15,0.25,0.4}))

  5. #5
    Registered User
    Join Date
    10-18-2021
    Location
    Sydney, AUS
    MS-Off Ver
    unsure
    Posts
    5

    Re: IF function for multiple multiplications on one cell

    Hi Alan,

    Thanks so much that's amazing.

    If you want to go again I have another one on the new upload 'USE THIS ONE'

    Highlighted in yellow again. This time the rules are:
    1 sale = multiplied by 0
    2 sales= multiplied by 0.5
    3 sales= multiplied by 0.75
    4 + = multiplied by 1

    Looking at the values $20, $25, $30, $39, $49, $69 and if the consultant has done $99 and 3 sales I need it to multiply that by 0.75 because it's 3 sales.
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: IF function for multiple multiplications on one cell

    here it is as a lookup... =O8*LOOKUP(N8,{1,2,3,4},{0,0.5,0.75,1})
    here it is with an if statement... =IF(N8>3,O8*1,IF(N8>2,O8*0.75,IF(N8>1,O8*0.5,0)))

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: IF function for multiple multiplications on one cell

    =if(n8=1,0,if(n8=2,o8*0.5,if(n8=3,o8*0.75,o8)))

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: IF function for multiple multiplications on one cell

    And another option:
    =O8*CHOOSE(MIN(N8, 4), 0,0.5,0.75,1)

+ 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. Add column values including multiplications
    By chris0744 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-01-2017, 02:18 PM
  2. Establish pattern to simplify multiplications
    By Edlee in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-28-2015, 04:57 AM
  3. Summing many multiplications
    By CBR600 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2014, 06:51 AM
  4. multiplications added across columns.
    By eeep13 in forum Excel General
    Replies: 3
    Last Post: 10-04-2012, 01:04 AM
  5. Short way of doing this? Sum Many multiplications
    By StackOfPostItNotes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-29-2010, 08:24 PM
  6. [SOLVED] Newbie question....about auto multiplications of colum data
    By Just Wondering in forum Excel General
    Replies: 4
    Last Post: 12-13-2005, 10:15 AM
  7. Replies: 1
    Last Post: 09-20-2005, 06:05 PM

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