Results 1 to 4 of 4

Thread: HELP - Calculation Based on Dynamic Variables (What-if Scenario)

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    2
    Rep Power
    0

    HELP - Calculation Based on Dynamic Variables (What-if Scenario)

    Hi,

    I am a VBA beginner. What i am trying to do is to automate the allocation of the commission (Column AB3:AB17) based on Actual Sales.

    Attached is an example for reference.
    Column C is the actual sales and Row 2 is the target in the excel file.

    Commission to be awarded only if the actual sales is between the target - for example, 1% of the amount between 60k & 69.99k and then 5% of the amount between 70k and 79.99k

    Example Business Case Scenario

    a) 1% Commission for achieving the 60K target (60K, 120K, 180K, ...)
    b) 5% Commission for achieving the 70K target (70K, 140K, 210K, ...)
    c) 9% Commission for achieving the 120K target (120K, 240K, 360K, ...)

    If a sales order is 66.8K, the dealer gets a commission of 1%
    If a sales order is 133.6K, the dealer gets a commission of 26% (where 1% from achieving the 60K Target and 25% for achieving the 120K target)

    In the example file attached, I manually allocated the commission (Column D3 to AA15, taking reference from the 10x10 grid at D22:O16) based on the actual sales per order and a simple formula to calculate the total commission to be payout (Column AC3:AC17).

    The manual effort is time-consuming and not error-proof.

    Greatly appreciated if anyone can help.

    Thank you.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by memories; 10-27-2020 at 02:44 PM.

  2. #2
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,385
    Rep Power
    10
    Hello memories,
    Welcome to ExcelFox
    Unless I am mistaken , I do not think anyone will be able to help you based on your short explanation and screenshot and attached file.
    You have not made any attempt to explain what it is you want to be done
    I have looked at your file and I don’t have the slightest idea what you are asking for.

    Remember: You know your project. So all will be crystal clear to you.
    We can’t read your mind.

    It is very unlikely that anyone will have done exactly what you are doing.
    So based on your short post, nobody is likely to have the slightest idea what you are doing, what you did manually, what should be done automatically and why , when etc.. etc…

    At the very least, tell us what you did manually and why


    Alan
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

  3. #3
    Junior Member
    Join Date
    Oct 2020
    Posts
    2
    Rep Power
    0
    Thanks for the support. I have updated the post, hope this help to understand my challenge better.

    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg
    https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1
    https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw
    https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK
    https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv
    https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc
    https://www.youtube.com/watch?v=bs-urI_o8jo&lc=UgyBACXgNY4j_cHgH5J4AaABAg.9oTkVdzfqfm 9wlhQrYJP3M
    https://www.youtube.com/watch?v=bs-urI_o8jo&lc=UgxYgiEZuS9I3xkjJv54AaABAg
    https://www.youtube.com/watch?v=DVFFApHzYVk&lc=Ugyi578yhj9zShmhuPl4AaABAg
    https://www.youtube.com/watch?v=GqzeFYWjTxI&lc=UgxvxlnuTRWiV6MUZB14AaABAg
    https://www.youtube.com/watch?v=_8i1fVEi5WY&lc=Ugz0ptwE5J-2CpX4Lzh4AaABAg
    https://www.youtube.com/watch?v=0ltJS7uHfK4&lc=UgxoHAw8RwR7VmyVBUt4AaABAg. 9C-br0lEl8V9xI0_6pCaR9
    https://www.youtube.com/watch?v=0ltJS7uHfK4&lc=Ugz5DDCMqmHLeEjUU8t4AaABAg. 9bl7m03Onql9xI-ar3Z0ME
    https://www.youtube.com/watch?v=0ltJS7uHfK4&lc=UgxYnpd9leriPmc8rPd4AaABAg. 9gdrYDocLIm9xI-2ZpVF-q
    https://www.youtube.com/watch?v=0ltJS7uHfK4&lc=UgyjoPLjNeIAOMVH_u94AaABAg. 9id_Q3FO8Lp9xHyeYSuv1I
    https://www.reddit.com/r/windowsxp/comments/pexq9q/comment/k81ybvj/?utm_source=reddit&utm_medium=web2x&context=3
    https://www.youtube.com/watch?v=bs-urI_o8jo&lc=UgxYgiEZuS9I3xkjJv54AaABAg
    https://www.youtube.com/watch?v=bs-urI_o8jo&lc=UgyBACXgNY4j_cHgH5J4AaABAg.9oTkVdzfqfm 9wlhQrYJP3M
    ttps://www.youtube.com/watch?v=LP9fz2DCMBE
    https://www.youtube.com/watch?v=LP9fz2DCMBE&lc=UgzbPgJUMCztIOQDym14AaABAg
    https://www.youtube.com/watch?v=LP9fz2DCMBE&lc=UgzbPgJUMCztIOQDym14AaABAg. 9wdo_rWgxSH9wdpcYqrvp8
    ttps://www.youtube.com/watch?v=bFxnXH4-L1A
    https://www.youtube.com/watch?v=bFxnXH4-L1A&lc=UgxuODisjo6cvom7O-B4AaABAg.9w_AeS3JiK09wdi2XviwLG
    https://www.youtube.com/watch?v=bFxnXH4-L1A&lc=UgxBU39bTptFznDC1PJ4AaABAg
    ttps://www.youtube.com/watch?v=GqzeFYWjTxI
    https://www.youtube.com/watch?v=GqzeFYWjTxI&lc=UgwJnJDJ5JT8hFvibt14AaABAg
    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Last edited by DocAElstein; 11-30-2023 at 02:49 PM.

  4. #4
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    9,385
    Rep Power
    10
    Sorry, I spent an hour and can’t figure out what you want.
    If no one else can help you here then maybe try at one of the more busy forums, such as excelforum.com or mrexcel.com
    I doubt if writing the coding would be difficult. There is probably not much of a challenge for someone understanding basic VBA.
    I think you will need to hope to find someone that has done something exactly like this and knows at a glance already what it is that you are actually doing.

    Failing that you are going to need to take the time to walk through an example saying exactly what you did and where and why , etc....

    I know it is going to all sound ridiculously obvious to you what you want, because you know what you want. So any explanation you give , you will understand.

    You say you manually done it, “…. manually allocated the commission (Column D3 to AA15, taking reference from the 10x10 grid at D22:O16)based on the actual sales per order and a simple formula to calculate the total commission to be payout (Column AC3:AC17) …” .. but you have not said in detail exactly what steps you took.
    Your explanations read to me like a quick summary. They would be useful to refresh and remind of the general idea of what’s going on, but not so much use to anyone trying to find out from scratch what you want.
    The only thing I understand is the simple formula. I can’t figure out exactly how you came to put those figures in. And you are not saying if you actually want the macro to put those figures in or just give the final Sum results.
    Maybe I could understand if I studied it for a few more hours, and then wrote a few codes doing slightly different things for you to choose from.... but if you want help in a free forum then I think you should make it more obvious what exactly you want, for someone who has no idea about what you are doing, or wanting to do.

    Good luck

    Alan

    P.S: If you post the same question at other forums, then its useful to tell everybody everywhere where you have posted the same question
    Last edited by DocAElstein; 10-28-2020 at 05:01 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    _...KILL A MODERATOR!!

Similar Threads

  1. Replies: 19
    Last Post: 09-23-2020, 10:33 AM
  2. Replies: 8
    Last Post: 06-01-2020, 06:13 PM
  3. Replies: 6
    Last Post: 05-18-2020, 02:32 AM
  4. Replies: 1
    Last Post: 08-20-2013, 04:31 PM
  5. Replies: 3
    Last Post: 08-15-2013, 01:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •