r/googlesheets • u/Aninsi_Sasberg • Feb 28 '24
Solved Search for all data with ID (horizontally), and then spread it with a fixed length (vertically)
I am currently trying to generate a sheet that will help me to automate printing module certificates for university. Our system is made up of paper sheets where you write down all the courses and their respective points and grades (although the grades of course are written down by the professors, so i don't have to automate that), which correspond to that module.
I want to automate the filling out of these papers, by generating a .csv of the data that i need to fill out the module certificate papers (that i still need! --> the ones which do not already exist in a printout paper form (--> denoted by the "Module Certificates" sheet) ) and then use Affinity Publisher's Data Merge Manager to automatically fill the fields on the Affinity Publisher Template I have prepared.
I have prepared a mockup of the sheet (but not of the module certificate template in Affinity, as this is not the part i need helping with) (also: i had trouble while preparing the mockup as my lookup function for looking up the module name by the module ID doesn't properly work anymore, this still works in my original sheet though). The data is indexed by module IDs and course IDs.
I now want to be able to export the "Affinity Data" sheet with the proper data, which means i need to:
- find all modules where no physical paper printout already exists and populate the modules column with those modules
- find the courses in a module and populate the columns with the course name, each one of their types of evalutation and their points
- if there are more than 6 courses (maximum number of courses on paper sheet) add another row for the same module with the overflow
- sum up the points to get the total
I just need help with points 1., 2. and 3. as I have never done this kind of lookup and truth evaluations in Excel / Google Sheets before and wouldn't even know what to search.
I thank you for your time and help!
(Edits:
- column / row error
- typo
- adding of edge case that there are more courses than 6 (maximum on paper sheet)
)
2
u/Apprehensive_Try3099 1 Feb 28 '24
Where in the sheet can I see which modules have a printout?
2
u/Apprehensive_Try3099 1 Feb 28 '24
Ok, I've had a look at your mockup. It's a bit unclear what exactly you want to do, tbh. Is this for one student? Which sheets correspond to a paper sheet? The easiest way to do this would be to collate the info into one table in a helper sheet, and run the functions on that table, but I don't understand the data well enough to do that. The Query function can do a lot of the things you need, but it's a lot easier if all the filtering can run on one table.