Change cells' amounts for single pay day to be less than Max Limit for pay Day

KevinA626

New Member
Joined
Oct 9, 2017
Messages
3
Hello all,

I know the title isn't the best, but I can't think of how to word it. Basically, the software I'm using is not supposed to pay the employees more than x amount (in the example I will provide, x amount = 1,000). The program exports an excel file with the name in column a, the week ending date in column b, and the amount in column c.

NameWeek EndingAmount
Smith, John9/23/2017268
Smith, John9/23/2017252
Smith, John9/23/20170
Smith, John9/23/20170
Smith, John9/23/20170
Smith, John9/30/2017250
Smith, John9/30/2017250
Smith, John9/30/2017250
Smith, John9/30/2017250
Smith, John9/30/2017250
Smith, John10/7/201750
Smith, John10/7/201745
Smith, John10/7/201750
Smith, John10/7/201740
Smith, John10/14/2017500
Smith, John10/14/2017500

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Basically, the amounts for each week ending date cannot surpass x amount = 1000 (they can equal 1000, just not surpass). Instead, the sum of the amounts for each work ending date have to be edited to equal 1000. Below is an example of how I changed on employee compared to how he was listed in the above example. If you notice, 9/30/2017's amounts were more than 1000 in the above example, but I changed them to equal 1000 in the below example. There is no max for an individual amount. There is only a max for week ending date total amounts. Also, if the week ending date total amount is less than 1000, I would like the original amounts to remain.

NameWeek EndingAmount
Smith, John9/23/2017288
Smith, John9/23/2017252
Smith, John9/23/20170
Smith, John9/23/20170
Smith, John9/23/20170
Smith, John9/30/2017450
Smith, John9/30/2017300
Smith, John9/30/2017250
Smith, John9/30/2017
Smith, John9/30/2017
Smith, John10/7/201750
Smith, John10/7/201745
Smith, John10/7/201750
Smith, John10/7/201740
Smith, John10/14/2017500
Smith, John10/14/2017500

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If you just want to blank the amount entries once 1000 is reached, then maybe


Excel 2010
ABCD
1NameWeek EndingAmountRevised
2Smith, John9/23/2017268268
3Smith, John9/23/2017252252
4Smith, John9/23/201700
5Smith, John9/23/201700
6Smith, John9/23/201700
7Smith, John9/30/2017250250
8Smith, John9/30/2017250250
9Smith, John9/30/2017250250
10Smith, John9/30/2017250250
11Smith, John9/30/2017250
12Smith, John10/07/20175050
13Smith, John10/07/20174545
14Smith, John10/07/20175050
15Smith, John10/07/20174040
16Smith, John10/14/2017500500
17Smith, John10/14/2017500500
Sheet2
Cell Formulas
RangeFormula
D2=IF(SUMIF($B$2:B2,B2,$C$2:C2)>1000,"",C2)
 
Upvote 0
If you just want to blank the amount entries once 1000 is reached, then maybe

Excel 2010#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB">#DAE7F5 " />#DAE7F5 ;text-align: center;color: #161120">
ABCD
1NameWeek EndingAmountRevised
2Smith, John9/23/2017268268
3Smith, John9/23/2017252252
4Smith, John9/23/201700
5Smith, John9/23/201700
6Smith, John9/23/201700
7Smith, John9/30/2017250250
8Smith, John9/30/2017250250
9Smith, John9/30/2017250250
10Smith, John9/30/2017250250
11Smith, John9/30/2017250
12Smith, John10/07/20175050
13Smith, John10/07/20174545
14Smith, John10/07/20175050
15Smith, John10/07/20174040
16Smith, John10/14/2017500500
17Smith, John10/14/2017500500

<colgroup><col style="width: 25pxpx" https:="" www.mrexcel.com="" forum="" usertag.php?do="list&action=hash&hash=DAE7F5"" target="_blank"></colgroup><colgroup><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
#DAE7F5 ;color: #161120">Sheet2

#FFFFFF " >
Worksheet Formulas#FFFFFF ;border-collapse: collapse; border-color: #BBB">#DAE7F5 ;color: #161120">
CellFormula
#DAE7F5 ;color: #161120">D2=IF(SUMIF($B$2:B2,B2,$C$2:C2)>1000,"",C2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
Momentman, Thank you for your reply! Although, I forgot to include the criteria of names changing (in column A). If the name on the left changes, the formula would be affected, correct? Basically, the name & date combination cannot have more than 1,000 total value.

Do you have any suggestions! Thanks again!
 
Upvote 0
Hi Momentman,

I figured out how to use multiple criteria (name & date and not just date) when calculating the sum of values - I used the SUMIFS formula.

I do have another question you may be able to help with.

If, for example, the value is zero'd out by the following value (as show in bold in Cells C2:C3 and D2:D3), I would like the formula to keep the numbers. Right now, what it is doing is taking out the positive number but leaving the negative number, making for a sum of -1100, in the example shown below, instead of 1100 + (-1100) = 0.

Do you have any suggestions?

Thank you!

If you just want to blank the amount entries once 1000 is reached, then maybe

Excel 2010#FFFFFF ;border: 1px solid;border-collapse: collapse; border-color: #BBB">#DAE7F5 " />#DAE7F5 ;text-align: center;color: #161120">
ABCD
1NameWeek EndingAmountRevised
2Smith, John9/23/201711001100
3Smith, John9/23/2017-1100-1100
4Smith, John9/23/201700
5Smith, John9/23/201700
6Smith, John9/23/201700
7Smith, John9/30/2017250250
8Smith, John9/30/2017250250
9Smith, John9/30/2017250250
10Smith, John9/30/2017250250
11Smith, John9/30/2017250
12Smith, John10/07/20175050
13Smith, John10/07/20174545
14Smith, John10/07/20175050
15Smith, John10/07/20174040
16Smith, John10/14/2017500500
17Smith, John10/14/2017500500

<colgroup><col style="width: 25pxpx" https:="" www.mrexcel.com="" forum="" usertag.php?do="list&action=hash&hash=DAE7F5"" target="_blank"></colgroup><colgroup><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
#DAE7F5 ;color: #161120">Sheet2

#FFFFFF " >
Worksheet Formulas#FFFFFF ;border-collapse: collapse; border-color: #BBB">#DAE7F5 ;color: #161120">
CellFormula
#DAE7F5 ;color: #161120">D2=IF(SUMIF($B$2:B2,B2,$C$2:C2)>1000,"",C2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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