Finding next and previous values specific to the ID field

surendarmani

New Member
Joined
Mar 24, 2022
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Hi,

My dataset has >13500 rows. I have already generated this dataset for students who have taken more than 5 courses per semester. Now, Each row represents a student who has taken at least 1 course per semester, which is also known as the academic period(202110 - Fall 2021; 202220-Spring 2021).

Active_UG_Students_with_GPA_by_Term_v3__with_sorting_edit_in_progress.xlsx
ABCDEFGH
2101Student12019202.52941177No Previous DataNo Next Data
3101Student12020102.75No Previous DataNo Next Data
4101Student12021103.4No Previous DataNo Next Data
5101Student12021202.4No Previous DataNo Next Data
6102Student22021104.No Previous DataNo Next Data
7102Student22021204.No Previous DataNo Next Data
8102Student22022104.No Previous DataNo Next Data
9103Student32019203.No Previous DataNo Next Data
10103Student32020103.5No Previous DataNo Next Data
11104Student42019203.25No Previous DataNo Next Data
12104Student42020103.75No Previous DataNo Next Data
13104Student42021104.No Previous DataNo Next Data
14104Student42021203.5No Previous DataNo Next Data
15105Student52019201.75No Previous DataNo Next Data
Any_semesters_with_valid_GP (2
Cell Formulas
RangeFormula
E2:E15E2=IFERROR(1/(1/SUMIFS(C:C,$A:$A,$A2,$C:$C,$C2-1)),"No Previous Data")
H2:H15H2=IFERROR(1/(1/SUMIFS(F:F,$A:$A,$A2,$C:$C,$C2+1)),"No Next Data")
Named Ranges
NameRefers ToCells
'Any_semesters_with_valid_GP (2'!_FilterDatabase='Any_semesters_with_valid_GP (2'!$A$1:$H$13860H2:H15, E2:E15



My goal of this project is to find an average previous and next term GPA for this population and see whether allowing students to take overloads(5 or more courses per semester) is a good thing or not. Comparing the average GPA of the previous term to overload and next term to overload and evaluating the impact on the student learning curve. So, if the student has taken a course next term and has a row, I want to print that GPA in the appropriate column. If not, I want to print,"no value found".
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

My dataset has >13500 rows. I have already generated this dataset for students who have taken more than 5 courses per semester. Now, Each row represents a student who has taken at least 1 course per semester, which is also known as the academic period(202110 - Fall 2021; 202220-Spring 2021).

Active_UG_Students_with_GPA_by_Term_v3__with_sorting_edit_in_progress.xlsx
ABCDEFGH
2101Student12019202.52941177No Previous DataNo Next Data
3101Student12020102.75No Previous DataNo Next Data
4101Student12021103.4No Previous DataNo Next Data
5101Student12021202.4No Previous DataNo Next Data
6102Student22021104.No Previous DataNo Next Data
7102Student22021204.No Previous DataNo Next Data
8102Student22022104.No Previous DataNo Next Data
9103Student32019203.No Previous DataNo Next Data
10103Student32020103.5No Previous DataNo Next Data
11104Student42019203.25No Previous DataNo Next Data
12104Student42020103.75No Previous DataNo Next Data
13104Student42021104.No Previous DataNo Next Data
14104Student42021203.5No Previous DataNo Next Data
15105Student52019201.75No Previous DataNo Next Data
Any_semesters_with_valid_GP (2
Cell Formulas
RangeFormula
E2:E15E2=IFERROR(1/(1/SUMIFS(C:C,$A:$A,$A2,$C:$C,$C2-1)),"No Previous Data")
H2:H15H2=IFERROR(1/(1/SUMIFS(F:F,$A:$A,$A2,$C:$C,$C2+1)),"No Next Data")
Named Ranges
NameRefers ToCells
'Any_semesters_with_valid_GP (2'!_FilterDatabase='Any_semesters_with_valid_GP (2'!$A$1:$H$13860H2:H15, E2:E15



My goal of this project is to find an average previous and next term GPA for this population and see whether allowing students to take overloads(5 or more courses per semester) is a good thing or not. Comparing the average GPA of the previous term to overload and next term to overload and evaluating the impact on the student learning curve. So, if the student has taken a course next term and has a row, I want to print that GPA in the appropriate column. If not, I want to print,"no value found".
Next Academic Period/ GPA - represents the next active semester that the student took courses and secured some grades.
Previous Academic Period/ GPA - represents the previous active semester that the student took courses and secured some grades with GPA calculated.
 
Upvote 0
Hi,

Just following up to see whether there is a method to find those previous and next semester field values.

Thanks
 
Upvote 0
Hi,

If I understand correctly.
Shouldn't you be SUMming Column D for your Column E formula ? (currently, you sum column C)
And, you're subtracting 1 (-1) from Column C in your Column E formula, shouldn't it be -10 (ten) ?
Same applies to your Column H formula, you sum Column F, which is Blank, I assume you want Also Column D, change/adjust accordingly, and I used +10.

Book3.xlsx
ABCDEFGH
1
2101Student12019202.529412No Previous DataNo Next Data
3101Student12020102.75No Previous DataNo Next Data
4101Student12021103.4No Previous Data2.4
5101Student12021202.43.4No Next Data
6102Student22021104No Previous Data4
7102Student220212044No Next Data
8102Student22022104No Previous DataNo Next Data
9103Student32019203No Previous DataNo Next Data
10103Student32020103.5No Previous DataNo Next Data
11104Student42019203.25No Previous DataNo Next Data
12104Student42020103.75No Previous DataNo Next Data
13104Student42021104No Previous Data3.5
14104Student42021203.54No Next Data
15105Student52019201.75No Previous DataNo Next Data
Sheet1073
Cell Formulas
RangeFormula
E2:E15E2=IFERROR(1/(1/SUMIFS(D:D,$A:$A,$A2,$C:$C,$C2-10)),"No Previous Data")
H2:H15H2=IFERROR(1/(1/SUMIFS(D:D,$A:$A,$A2,$C:$C,$C2+10)),"No Next Data")
 
Upvote 0
Thanks much for your response. The next and previous academic period is sequential.
These would be sequence:
201920, 201930, 202010, 202020, 202030, 202110 (To avoid this confusion on sequence, I've now created custom sorting in the report)

Students do not necessarily take courses every semester and so don't need to follow the sequence They can skip a semester or two in between. For example Student1 took courses and secured GPA of 2.75 on 202010, but he skipped 202020 and 202030 and directly took courses on 202110 to get 3.4 GPA which would be his next semester GPA.

In this case, Student1(row 3) will have 2.529412 as the previous GPA and 3.4 as the next GPA.

Please let me know if you have any questions.

Appreciate your time and assistance.
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,783
Members
449,188
Latest member
Hoffk036

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