+ Reply to Thread
Results 1 to 8 of 8

Need help with formula for calculating fees based on product selected from list

  1. #1
    Registered User
    Join Date
    04-21-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Unhappy Need help with formula for calculating fees based on product selected from list

    Good afternoon,

    I'm trying to figure out how to write a formula that if a product in column B is entered from a list of products on sheet 2, then it will calculate the fees based on the cost of the and qty is cells E and D.

    So basically if I select Win 7 for the product, then it will multiple the price x qty x 10% to give me the fees i'd receive for selling the balloon.

    In addition to that formula I need one to do the same thing for a Win 7 bundled product, so if I selected a bundle it would multiple the cost of the bundle X 17% to give me the individual cost of win 7 of the bundle then multiple that X qty X 10% to give me the fees.

    I'm attaching my spreadsheet, I've tried average, sumif and countif, but I don't understand how to calculate the fees after it finds the product in my list.

    Can anyone please help.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need help with formula for calculating fees based on product selected from list

    If i understand you correctly (not sure I do though), try the following formula in A4...

    =IF(B4="","",(D4*E4)*1.1)

    If all you want is your 10% profit, change the 1.1 to 0.1

    How do you determine if you have sold a "bundle"?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-21-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need help with formula for calculating fees based on product selected from list

    Quote Originally Posted by FDibbins View Post
    If i understand you correctly (not sure I do though), try the following formula in A4...

    =IF(B4="","",(D4*E4)*1.1)

    If all you want is your 10% profit, change the 1.1 to 0.1

    How do you determine if you have sold a "bundle"?
    It's based off what the rep quotes, so we would know if they sold the bundle or not. But will "","" allow me to pick from the list on sheet #2?

    Basically depending on which product they pick off the list it will figure the fees they received by that product. Some are bundled, and some are individual and have different pay %'s.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need help with formula for calculating fees based on product selected from list

    the "","" is just checking to see if there is anything in B4. if there is, it runs the calculation, if there isnt, it shows "nothing" in the cell. the formula doesnt "pick" anything, it uses data already entered into your "Fees" table.

    Your 2 sheets dont show any price, so i assumed that it was user-entered. the only data in your "Products" sheet is the product name and version. if you were to add a price to those, then you could use a vlookup() to find the price, based on which product is selected. see the attached, and let me know if that is what you want. I added data validation to "Product 1" in your fees sheet to aid in entering products, and making sure they are spelled the same as in your Products sheet
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-21-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need help with formula for calculating fees based on product selected from list

    I apologize if i'm not explaining correctly.

    Here is the way it works. I have a report, it shows me what products have been sold and the price and qty that have been sold, based off specific products in this list that are sold there are different fees the rep receives if they sell that product. I am trying to figure out a formula based off the product they sell what the fees would be.

    So if they sell Win 7 then the formula would be =average(B5="Win 7",(E5*D5*.01)) that will tell be based on that 1 product what the fees would be, but I want the formula to be able to do this from a list of products, not 1 product that I am specifically telling it to look for.

    Hope this helps

  6. #6
    Registered User
    Join Date
    04-21-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need help with formula for calculating fees based on product selected from list

    Sorry the formula would be =AVERAGE(IF(B5="Win Pro",E5*D5*0.01)) for a single product, but I am looking to have it look at a list of critera.

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Need help with formula for calculating fees based on product selected from list

    Hello Teny,

    If I am following you correctly, you can use VLOOKUP,

    In Product sheet column C enter it's correspondent %, then use in Fees sheet A4

    =IFERROR(D4*E4*VLOOKUP(B4,Products!A:C,3,0),"")

    then copy down. If the product in B4 is NOT from the product list will show a blank.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  8. #8
    Registered User
    Join Date
    04-21-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need help with formula for calculating fees based on product selected from list

    Thanks all,

    I figured it out. IF(COUNTIF formula worked perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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