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!
 
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
4100100503030
Carpentry II A Day
Cell Formulas
RangeFormula
B4B4=100-SUM(IFERROR(VLOOKUP(TRIM(MID(SUBSTITUTE(B3,","," "),SEQUENCE(5,,1,5),5)),Deductions!$A$3:$B$15,2,0),0))
C4:F4C4=B4-SUM(IFERROR(VLOOKUP(TRIM(MID(SUBSTITUTE(C3,","," "),SEQUENCE(5,,1,5),5)),Deductions!$A$3:$B$15,2,0),0))

That seems to be what i'm looking for but when I put your formula into my spreadsheet it doesn't change when I add codes. going by the screenshot you posted that looks like it works like what i'm asking. Thank you so much for spending your time trying to help me. If I could get it to work on my sheet like it looks like its working on yours that would be it.
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I've changed the formula after you saw it, so have another look at post#10
 
Upvote 0
What do you get in the cells?
 
Upvote 0
Do you have the SEQUENCE function?
 
Upvote 0
Not all versions of 365 have the sequence function yet, do you?
 
Upvote 0
What happens if you put this into an empty cell
Excel Formula:
=SEQUENCE(2)
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

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