Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculating bonuses - but not a VLOOKUP or CEILING?

I have a big PivotTable of sales of specific products against
salespeople.

Product Salesperson1 Salesperson2
product1 1 5
product2 0 11
product3 6 2
product4 3 6

Salespeople are paid a bonus if sales are in multiples of 5 - they get
no bonus for selling 0-4 units. A 5 euro bonus for selling 5, 6, 7, 8
or 9 units. Then 10 euro for shifting 10, 11, 12, 13, or 14. Then a 15
euro bonus, etc. So in the above examples, Salesperson1 would get 5
euro total. Salesperson2 would get 20.

I can copy out the pivot results to another sheet and insert a column
for each salesperson that runs a CEILING formula against each adjacent
cell. Then sum the ceiling column for each salesperson, getting their
total bonus. This works fine. I also ran a VLOOKUP, which worked a-ok
too. But there are a lot of columns to insert.

What single cell formula would I enter underneath each salesperson's
column that could calculate their total bonus?

Joe.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Calculating bonuses - but not a VLOOKUP or CEILING?

=5*int(sum(b2:b6)/5)
--
Wag more, bark less


"Joe Murphy" wrote:

I have a big PivotTable of sales of specific products against
salespeople.

Product Salesperson1 Salesperson2
product1 1 5
product2 0 11
product3 6 2
product4 3 6

Salespeople are paid a bonus if sales are in multiples of 5 - they get
no bonus for selling 0-4 units. A 5 euro bonus for selling 5, 6, 7, 8
or 9 units. Then 10 euro for shifting 10, 11, 12, 13, or 14. Then a 15
euro bonus, etc. So in the above examples, Salesperson1 would get 5
euro total. Salesperson2 would get 20.

I can copy out the pivot results to another sheet and insert a column
for each salesperson that runs a CEILING formula against each adjacent
cell. Then sum the ceiling column for each salesperson, getting their
total bonus. This works fine. I also ran a VLOOKUP, which worked a-ok
too. But there are a lot of columns to insert.

What single cell formula would I enter underneath each salesperson's
column that could calculate their total bonus?

Joe.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculating bonuses - but not a VLOOKUP or CEILING?

On May 9, 2:47*pm, Brad wrote:
=5*int(sum(b2:b6)/5)


That's not it, alas. I could have been clearer in my example.

It's not the multiples of 5 that create the bonus, it's multiples of 5
_of each product_ that get the bonus.

So for Salesperson1, he doesn't get a 10 euro bonus for shifting 10
units total. He gets a 5 euro bonus for shifting 6 units of one
product, and the rest are ignored.

Salesperson2 gets a 5+10+0+5=20 euro.

Joe.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Calculating bonuses - but not a VLOOKUP or CEILING?

=SUMPRODUCT(5*INT(C3:C6/5))
This should do it.
--
Wag more, bark less


"Joe Murphy" wrote:

On May 9, 2:47 pm, Brad wrote:
=5*int(sum(b2:b6)/5)


That's not it, alas. I could have been clearer in my example.

It's not the multiples of 5 that create the bonus, it's multiples of 5
_of each product_ that get the bonus.

So for Salesperson1, he doesn't get a 10 euro bonus for shifting 10
units total. He gets a 5 euro bonus for shifting 6 units of one
product, and the rest are ignored.

Salesperson2 gets a 5+10+0+5=20 euro.

Joe.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculating bonuses - but not a VLOOKUP or CEILING?

On May 9, 3:21*pm, Brad wrote:
=SUMPRODUCT(5*INT(C3:C6/5))
This should do it. *


It totally did. You're a star.

(and man, I have to go read about SUMPRODUCT)

Joe.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Calculating bonuses - but not a VLOOKUP or CEILING?

You're welcome

Would you please click the button that says that the response answered the
question. I would appreciate it.

--
Wag more, bark less


"Joe Murphy" wrote:

On May 9, 3:21 pm, Brad wrote:
=SUMPRODUCT(5*INT(C3:C6/5))
This should do it.


It totally did. You're a star.

(and man, I have to go read about SUMPRODUCT)

Joe.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculating bonuses - but not a VLOOKUP or CEILING?

On May 9, 3:50*pm, Brad wrote:
You're welcome

Would you please click the button that says that the response answered the
question. *I would appreciate it.


I'd love to, but I'm just browsing Usenet through Google. Are you
viewing the groups through some portal? Let me know if that's the case
and I'lll click anything you like.

Joe.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct to find monthly bonuses Nick Krill Excel Worksheet Functions 6 July 4th 07 12:03 AM
need to work out bonuses Grd Excel Worksheet Functions 4 May 19th 06 08:59 PM
Max, Ceiling, If, Etc Chris W via OfficeKB.com Excel Discussion (Misc queries) 3 November 22nd 05 09:40 PM
Something like CEILING or FLOOR gusvenables Excel Worksheet Functions 3 October 28th 05 04:09 AM
Bonuses and Penalties in Grade Books Kahlan Excel Worksheet Functions 5 October 12th 05 06:20 AM


All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"