Looking for help with three complex formulas

%3CLINGO-SUB%20id%3D%22lingo-sub-1546504%22%20slang%3D%22en-US%22%3ELooking%20for%20help%20with%20three%20complex%20formulas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1546504%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EHello%20from%20Australia.%20I%20am%20desperately%20seeking%20some%20assistance%20with%20a%20complex%20formula.%20(Complex%20to%20me%20at%20least)%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EProblem%201%3A%20I%20need%20the%20girl's%20tab%20(second%20tab)%20to%20bring%20across%20limited%20columns%20(so%20only%20some%20of%20the%20details%20and%20only%20the%20rows%20that%20have%20'Girls'%20in%20it)%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3E....%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EProblem%202%3A%20Same%20as%20above%20but%20for%20boys.%20I%20need%20the%20boys%20tab%20(second%20tab)%20to%20bring%20across%20limited%20columns%20(so%20only%20some%20of%20the%20details%20and%20only%20the%20rows%20that%20have%20'Boys'%20in%20it)%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3E....%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EProblem%203%3A%20I%20need%20the%20third%20tab%20to%20calculate%20the%20total%20school%20points%20from%20each%20school%20and%20show%20the%20school%20with%20the%20highest%20points%20to%20the%20lowest%20points%20(like%20a%20ladder)%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3E....%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EAll%20these%20formulas%20need%20to%20work%20in%20both%20excel%20and%20google%20sheets.%20Please%20email%20me%20raff%40agostino.net.au%20I%20am%20happy%20to%20pay%20but%20I%20will%20need%20to%20be%20shown%20how%20the%20formulas%20work.%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3ESo%20three%20problems%20to%20solve%20working%20in%20both%20google%20sheet%20and%20excel.%20%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3E....%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EThe%20files%20can%20be%20found%20here%2C%20once%20you%20have%20it%20working%20please%20email%20me%20with%20the%20details%20of%20where%20I%20can%20see%20it%20working.%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22_1mf%20_1mj%22%3E%3CSPAN%3EHere%20is%20the%20link%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdrive.google.com%2Fdrive%2Fu%2F0%2Ffolders%2F1U8ArqHicP8m7WtBNXeR4zk5RG2IzLbh0%3Ffbclid%3DIwAR2FmnRJEHRYJa83IPJQ_rPYApH-gkFASHtNI7wEDVZ9QgpCC1UIb2Bqvq0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdrive.google.com%2Fdrive%2Fu%2F0%2Ffolders%2F1U8ArqHicP8m7WtBNXeR4zk5RG2IzLbh0%3Ffbclid%3DIwAR2FmnRJEHRYJa83IPJQ_rPYApH-gkFASHtNI7wEDVZ9QgpCC1UIb2Bqvq0%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1546504%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20for%20web%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1546576%22%20slang%3D%22en-US%22%3ERe%3A%20Looking%20for%20help%20with%20three%20complex%20formulas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1546576%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740229%22%20target%3D%22_blank%22%3E%40Raffy1944%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20you%20want%20to%20do%20can%20be%20done%20quite%20easily%20with%20the%20FILTER%20function%20within%20SORT.%20However%2C%20because%20Google%20Sheets%20doesn't%20seem%20to%20help%20with%20the%20syntax%2C%20I%20think%20you'd%20find%20it%20a%20LOT%20easier%20to%20do%20in%20Excel%20first%2C%20and%20then%20export%20to%20Google.%20I've%20created%20this%20formula%20in%20the%20attached%20revision%20of%20your%20posted%20Excel%20sheet.%20It%20delivers%20the%20results%20you%20wanted%20for%20the%20boys.%20All%20that's%20needed%20to%20adapt%20it%20for%20the%20girls%20is%20to%20change%20one%20word.%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSORT(SORT(FILTER(MASTERSHEET!A2%3AU9%2CMASTERSHEET!F2%3AF9%3D%22MALE%22)%2C8)%2C5)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DSORT(SORT(FILTER(MASTERSHEET!A2%3AU9%2CMASTERSHEET!F2%3AF9%3D%22FEMALE%22)%2C8)%2C5)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EAnd%20I%20want%20to%20draw%20to%20your%20attention%20the%20fact%20that%20this%20single%20formula%2C%20in%20cell%20A2%20in%20each%20case%2C%20fills%20ALL%20of%20the%20adjacent%20rows%20and%20columns%20with%20the%20data%20specified%20by%20the%20selection%20criteria.%20This%20is%20called%20%22spilling%22%20in%20that%20the%20results%20spill%20into%20adjacent%20rows%2Fcolumns.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20highly%20recommend%20eliminating%20the%20blank%20columns%20from%20your%20master%20sheet%20(which%20I've%20also%20done).%20They%20don't%20contribute%20to%20a%20clean%20data%20table.%20Use%20that%20kind%20of%20thing%2C%20if%20you%20must%2C%20with%20your%20output%20results.%20A%20master%20data%20table%20should%20be%20simply%20rows%20and%20columns%20with%20data%20in%20each%20cell%20(except%20for%20those%20where%2C%20for%20example%2C%20somebody%20didn't%20have%20a%20tennis%20ball%20result%2C%20or%20whatever).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20columns%20because%20that%20was%20easier%20than%20doing%20it%20again%20and%20again%20for%20only%20the%20blue.%20If%20you%20only%20want%20those%2C%20then%20hide%20the%20columns%20delivered%20by%20FILTER%20that%20you%20don't%20need.%20Otherwise%2C%20you'll%20be%20setting%20yourself%20up%20for%20the%20possibility%20of%20errors%20by%20needing%20to%20repeat%20the%20formula%20with%20a%20smaller%20subset%20of%20columns%20in%20that%20first%20argument.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22Good%20on%20you%2C%20mate!%22%20It%20looks%20like%20you've%20done%20the%20right%20thing%20here%20and%20used%20fake%20names%20for%20each%20person.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20you're%20asking%20is%20relatively%20easy%20with%20FILTER%20and%20SORT.%20And%20google%20sheets%20does%20support%20these%20functions%20as%20well.%20As%20noted%20above%2C%20though%2C%20Google%20doesn't%20give%20as%20much%20help%20with%20syntax%20when%20you're%20writing%20the%20formulas.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere's%20a%20YouTube%20video%20that%20should%20help%20you%20with%20understanding%20the%20Dynamic%20Array%20functions%20that%20I've%20used%20here.%20-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9I9DtFOVPIg%3C%2FA%3E%3C%2FP%3E%3CP%3EFeel%20free%20to%20come%20back%20here%20with%20further%20questions%20as%20you%20need%20to.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1546583%22%20slang%3D%22en-US%22%3ERe%3A%20Looking%20for%20help%20with%20three%20complex%20formulas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1546583%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F740229%22%20target%3D%22_blank%22%3E%40Raffy1944%3C%2FA%3E%26nbsp%3B%2C%20Assuming%20you%20have%20the%20latest%20version%20of%20Excel%20(office%20365)%20with%20the%20new%20dynamic%20array%20functions%20enabled.%20Please%20see%20attached..%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor
Hello from Australia. I am desperately seeking some assistance with a complex formula. (Complex to me at least)
Problem 1: I need the girl's tab (second tab) to bring across limited columns (so only some of the details and only the rows that have 'Girls' in it)
....
Problem 2: Same as above but for boys. I need the boys tab (second tab) to bring across limited columns (so only some of the details and only the rows that have 'Boys' in it)
....
Problem 3: I need the third tab to calculate the total school points from each school and show the school with the highest points to the lowest points (like a ladder)
....
All these formulas need to work in both excel and google sheets. Please email me raff@agostino.net.au I am happy to pay but I will need to be shown how the formulas work.
So three problems to solve working in both google sheet and excel.
....
The files can be found here, once you have it working please email me with the details of where I can see it working.
2 Replies
Highlighted

@Raffy1944 

 

What you want to do can be done quite easily with the FILTER function within SORT. However, because Google Sheets doesn't seem to help with the syntax, I think you'd find it a LOT easier to do in Excel first, and then export to Google. I've created this formula in the attached revision of your posted Excel sheet. It delivers the results you wanted for the boys. All that's needed to adapt it for the girls is to change one word.

=SORT(SORT(FILTER(MASTERSHEET!A2:U9,MASTERSHEET!F2:F9="MALE"),8),5)

=SORT(SORT(FILTER(MASTERSHEET!A2:U9,MASTERSHEET!F2:F9="FEMALE"),8),5)

And I want to draw to your attention the fact that this single formula, in cell A2 in each case, fills ALL of the adjacent rows and columns with the data specified by the selection criteria. This is called "spilling" in that the results spill into adjacent rows/columns.

 

I also highly recommend eliminating the blank columns from your master sheet (which I've also done). They don't contribute to a clean data table. Use that kind of thing, if you must, with your output results. A master data table should be simply rows and columns with data in each cell (except for those where, for example, somebody didn't have a tennis ball result, or whatever).

 

All the columns because that was easier than doing it again and again for only the blue. If you only want those, then hide the columns delivered by FILTER that you don't need. Otherwise, you'll be setting yourself up for the possibility of errors by needing to repeat the formula with a smaller subset of columns in that first argument.

 

"Good on you, mate!" It looks like you've done the right thing here and used fake names for each person.

 

What you're asking is relatively easy with FILTER and SORT. And google sheets does support these functions as well. As noted above, though, Google doesn't give as much help with syntax when you're writing the formulas.

 

Here's a YouTube video that should help you with understanding the Dynamic Array functions that I've used here. https://www.youtube.com/watch?v=9I9DtFOVPIg

Feel free to come back here with further questions as you need to.

Learn everything about our brand-new Dynamic Arrays and how you can use them to build advanced spreadsheets. Arrays (CSE) have long been present in Excel, bu...
Highlighted

@Raffy1944 , Assuming you have the latest version of Excel (office 365) with the new dynamic array functions enabled. Please see attached..