Formula that deducts points for each code I input.

bricegoing

New Member
Joined
Sep 23, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor Participation, T for Tardy, etc...) have them lose that number of points. I have each code and the number of points it deducts on another sheet in excel but don't know how to make it look up the code and then deducts the points. Thanks for any help!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your 2 sheets. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0

I would like cell B4, C4, D4, and so on, to start with 100 pts. and for each code I put into B3,C3,D3, etc... to reference the table on the sheet named deductions and subtract the correct number of points for that code. (Example for code PP 20 points would be removed from their starting total of 100. If they have PP, T, it would take 20 points for the PP and 10 points for the T code leaving them at 70. Hopefully this helps some.
 
Upvote 0
Is this what you mean
Employability Grades Auto Grade.xlsx
ABCDE
111/09/202018/09/202025/09/202002/10/2020
2StudentEmployabilityEmployabilityEmployabilityEmployability
3Gavin BellPPT
41001008070
Carpentry II A Day
Cell Formulas
RangeFormula
B4B4=100-IFNA(VLOOKUP(B3,Deductions!$A$3:$B$15,2,0),0)
C4:E4C4=B4-IFNA(VLOOKUP(C3,Deductions!$A$3:$B$15,2,0),0)
 
Upvote 0
Is this what you mean
Employability Grades Auto Grade.xlsx
ABCDE
111/09/202018/09/202025/09/202002/10/2020
2StudentEmployabilityEmployabilityEmployabilityEmployability
3Gavin BellPPT
41001008070
Carpentry II A Day
Cell Formulas
RangeFormula
B4B4=100-IFNA(VLOOKUP(B3,Deductions!$A$3:$B$15,2,0),0)
C4:E4C4=B4-IFNA(VLOOKUP(C3,Deductions!$A$3:$B$15,2,0),0)

That works if there is only one code, but if I input multiple codes it goes back to 100. Is it possible for it to deduct for multiple codes?
 
Upvote 0
Realistically you would need a macro for that.
Doing that with a formula would not be simple
 
Upvote 0
Just thought of something if you have the dynamic array functions
Employability Grades Auto Grade.xlsx
ABCDEF
111/09/202018/09/202025/09/202002/10/202009/10/2020
2StudentEmployabilityEmployabilityEmployabilityEmployabilityEmployability
3Gavin BellPP,T,SSL,L
41001005080100
Carpentry II A Day
Cell Formulas
RangeFormula
B4:F4B4=100-SUM(IFERROR(VLOOKUP(TRIM(MID(SUBSTITUTE(B3,",",REPT(" ",15)),SEQUENCE(5,,1,15),15)),Deductions!$A$3:$B$15,2,0),0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,593
Members
452,654
Latest member
mememe101

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