Correct Pay Calculation

JJ in SD

Active Member
Joined
Jul 30, 2002
Messages
316
Good Morning,

I have people who get paid based on units and gross profit. Sometimes they get full credit and sometimes they get a fraction of the units and gross. I can count the whole units they are involved with by using =SUMPRODUCT(ISTEXT(B4:B22)*($B$4:$B$22=A1)) and I can count the actual units they get paid for by using =SUM(C4,C5,C6,C8,C10,C16,C17,C18,C20,C22) manually. What I would like is to be able to not use the SUM function and still count the number of “U” and “N” including the fractional credits using a SUMPRODUCT (I Think).

The correct answers are in cells C1 & C2

When I attempt to use SUMPRODUCT in the gross columns it counts the entries and not the amounts. The correct amount for the “Paid Gross” is in Cell G4.

Thanks in advance
JJ in SD
NRSG Pay.xls
ABCDEFG
1TotalUnitsActualUnitsTotalGrossPaidGrossCorrectCorrect
2N87$8.00$8.00amountforamountfor
3U751/3$7.00$7.00totalgrosspaidgross
4T15121/3$15.00$15.00$825.00$625.00
5
6N1/2$50.00$25.00
7N1$20.00$20.00
8N1$60.00$60.00
9U1/2$120.00$60.00
10N1/2$90.00$45.00
11U1$30.00$30.00
12N1$25.00$25.00
13U1$30.00$30.00
14U1/2$100.00$50.00
15U1$75.00$75.00
16U1$60.00$60.00
17U1/3$30.00$10.00
18N1$25.00$25.00
19N1$40.00$40.00
20N1$70.00$70.00
Sheet3
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
JJ in SD said:
Thanks Yogi, but when I try to access your formula I get a "runtime error"???

Brian,

Again with my brain disengaged I spoke too soon. I did not take the $500 into account...

JJ
NRSG Pay.xls
ABCDE
1%Paid7.00%GrossPayableComm
2Pack$500.00
3Example#1(300.00)($800.00)$25.00
4Example#21,356.00$856.00$59.92
51,235.00$735.00$51.45
6512.00$12.00$25.00
72,500.00$2,000.00$140.00
8$0.00($500.00)$25.00
9$0.00($500.00)$25.00
10$0.00($500.00)$25.00
11$0.00($500.00)$25.00
Sheet1

JJ,

What should be the result in Column E be, if Column C is less than 500 or 0?
 
Upvote 0
Brian,

The result in column E below row 7 should be 0. The sum of column will be paid commissions (E14). In fact if there were no data in columns C & D column E would show 0

Thanks again, JJ
NRSG Pay.xls
ABCDE
1%Paid7.00%GrossPayableComm
2Pack$500.00
3Example#1(300.00)($800.00)$25.00
4Example#21,356.00$856.00$59.92
51,235.00$735.00$51.45
6512.00$12.00$25.00
72,500.00$2,000.00$140.00
8$0.00($500.00)$25.00
9$0.00($500.00)$25.00
10$0.00($500.00)$25.00
11$0.00($500.00)$25.00
12
13ActualSum$401.37
14CorrectSum$301.37
Sheet1
 
Upvote 0
JJ in SD said:
Brian,

The result in column E below row 7 should be 0. The sum of column will be paid commissions (E14). In fact if there were no data in columns C & D column E would show 0
...

In D3 enter & copy down:

=C3-$B$2

In E3 enter one of & copy down:

=IF(C3,IF(D3,MAX(25,D3*$B$1),0),0)

=IF(C3*D3,MAX(25,D3*$B$1),0)
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top