Having trouble getting cell to do what I want

stankier

New Member
Joined
Feb 23, 2016
Messages
13
I am new to the site and I have been having an issue I can not figure out! I am working on our payroll program, and I want Excel to add a specific amount, say 24, to every employees bank of hours monthly. I want this to be done automatically without having to enter a figure. So for example on the first of ever month the program would add these hours to a column "A". I have the complete program done except for this.

After it adds these hours in to column "A" I need the cell to have a maximum amount, say 200, that it will not allow it to exceed. Anything over that 200 I need to automatically deduct said amount and multiply it by $10. So as an example if employee "Ben" has earned 180 hours in his bank, March first he will get 24 hours added to that amount. So he would have 204. Then it would deduct 4 hours, keeping him at max amount of 200, and multiply 4 by $10= $40.

Can this be done?
 
not sure i understand your question.

do you want always add 24 to column A, say?
what's the validation criteria?

it will be easier if you can share the file in dropbox or similar
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
not sure i understand your question.

do you want always add 24 to column A, say?
what's the validation criteria?

it will be easier if you can share the file in dropbox or similar

Here is a sample excel. The sheet labeled "needed" is what I need. The Sheet labeled "example" is to show how it may need to look. I need it to look like "needed" sheet when all set and down, for my accounting Dept. I don't mind "hiding" sheets if needed.


https://www.dropbox.com/s/vocl5pjv1344h0o/sample%20pay%20excel.xlsx?dl=0
 
Upvote 0
not sure if this work for you or not.

the shaded cells all data validated to 0, 24 that can be extended as required.
that you have a record of which months that added 24 for each employee.


Excel 2012
BCDEFGHIJKLMNO
4EmployeeTotal Time Earned
5A8162424024
6B85124024
7C72
8D837
9E628
10F1152
11G720
12H1020
13I1152
14J847
15K1152
16L72
Needed
Cell Formulas
RangeFormula
E5=X9+SUM(H5:O5)
 
Upvote 0
not sure if this work for you or not.

the shaded cells all data validated to 0, 24 that can be extended as required.
that you have a record of which months that added 24 for each employee.


Excel 2012
BCDEFGHIJKLMNO
4EmployeeTotal Time Earned
5A8162424024
6B85124024
7C72
8D837
9E628
10F1152
11G720
12H1020
13I1152
14J847
15K1152
16L72
Needed
Cell Formulas
RangeFormula
E5=X9+SUM(H5:O5)

SO if I understand you, the cells labeled H,I,J,K etc.. are pay dates example H=March #1 pay, I=March #2 pay etc?
 
Upvote 0
yes, those are the 24 (or 0) added for each pay.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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