+ Reply to Thread
Results 1 to 8 of 8

quite complicated functions(ebay fees)

  1. #1
    Registered User
    Join Date
    07-03-2007
    Posts
    3

    quite complicated functions(ebay fees)

    hi there.
    what i want to do is create a spreadsheet to work out how much i would need to sell an item for on ebay.

    sold between £0.01 - £4.99 10% for the amount of the selling price up to £4.99
    £5.00 - £9.99 - 10% for the initial £4.99 plus 8% of the remaining selling price balance
    £10.00 - £49.99 - 10% of the initial £4.99 plus 8% of the initial £5.00 - £9.99 plus 6% of the remaining selling price balance
    £50.00 - £499.99 - 10% of the initial £4.99 plus 8% of the initial £5.00 - £9.99 plus 6% of the initial £10.00 - £49.99 plus 4% of the remaining selling price balance

    right.
    so if i sell an item for £40 i need to be able to see how much i would pay in fees
    any idea how i could do this? i did some excel functions at GCSE level but not many and i have tried and failed with this once i know the function i can work out some of the other stuff i need myself. just that first bit would be nice.

    cheers
    Last edited by macwillis; 07-03-2007 at 03:41 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this link helps

    http://www.excelforum.com/showthread...highlight=ebay

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-03-2007
    Posts
    3
    thanks
    but no not really
    because i the fees vary depends on how much it sold for it needs to work out that so it it was £40 it would be 10 % of the first £4.99 and then 8% of the rest up until 9.99 and then 6% of the rest of the money up until the £40.

    i dont have set fees.

    any ideas?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,789
    If sale price is in A1 this should give you the fees

    =A1*4%+(MIN(A1,50)+MIN(A1,10)+MIN(A1,5))*2%

  5. #5
    Registered User
    Join Date
    06-23-2007
    Posts
    24
    daddylonglegs could you please explain how you come to this answer as i am very new to excel and did it a very long way around.

    i first inputted my figure lets just say its: 1000

    then in the cell below this figure i inputted this massive formula =IF(C4<=4.99,C4*1.1-(C4),IF(C4<=9.99,(((C4-4.99)*(1.08))-(C4-4.99))+(0.5),IF(C4<=49.99,(((C4-9.99)*(1.06))-(C4-9.99))+(0.9),IF(C4<=449.99,(((C4-49.99)*(1.04))-(C4-49.99))+(3.3),IF(C4>=500,(((C4-49.99)*(1.04))-(C4-49.99))+(3.3),0)))))

    which worked out the fee (41.30) then i subtracted the fee from the original figure to come to the total price excluding fee's of £958.70

    obviously the MIN function is the answer i just need it explaining to me
    Last edited by 8RaM; 07-03-2007 at 06:29 PM.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,789
    I simplified the formula slightly. The one I started off with was this

    =A1*4%+MIN(A1,50)*(6%-4%)+MIN(A1,10)*(8%-6%)+MIN(A1,5)*(10%-8%)

    The trick is to break the formula down in a different way. Rather than looking at how much the % is for each band you can get the total by multiplying the whole amount by the top band % [A1*4%] then adding the top of the next band - or A1, whichever is lower [MIN(a1,50)] multiplied by the difference between the 2 bands [6%-4%]. you then do the same for the two remaining bands. In this case, because the difference in bands is always 2% you can simplify to

    =A1*4%+(MIN(A1,50)+MIN(A1,10)+MIN(A1,5))*2%

    Note: This formula keeps adding 4% no matter how high the amount goes. If this is supposed to become 0% above £500 then it can be adjusted to

    =MIN(A1,500)*4%+(MIN(A1,50)+MIN(A1,10)+MIN(A1,5))*2%

    You can also do the same thing with SUMPRODUCT. This formula will give the same result as the first formula I posted

    =SUMPRODUCT(--(A1>{0,5,10,50}),A1-{0,5,10,50},{10,-2,-2,-2})/100

  7. #7
    Registered User
    Join Date
    06-23-2007
    Posts
    24
    I will have to read this over a few times but i do sort of get it just like anything once the penny drops it will always be logical. cheers for the explanation and i hope macwillis is happy with the result.

    I myself was happy to have figured my first question on here out but just as i went to post you had added a forumla 80% smaller than mine so it squashed mine a little but, its all a learning curve, thanks again.

  8. #8
    Registered User
    Join Date
    07-03-2007
    Posts
    3
    yup thats great i think that will do. now i just need to work out hot to make it work out the insertion fee and other paypal fees.
    £0.01 - £4.99 - 3p
    £5.00 - £9.99 - 5p
    £10.00 - £49.99 - 7p
    £50.00 - £499.99 - 9p
    £500 and over is 11p

    seening as im selling buy not only items these are set figures.

    if i write spread sheet with what i need in it could someone have a look for me?

    im using excel for mac but that shouldn't have a difference.

+ 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