looking up across sheets?

%3CLINGO-SUB%20id%3D%22lingo-sub-1597714%22%20slang%3D%22en-US%22%3Elooking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1597714%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EI%20am%20a%20teacher%20trying%20to%20work%20on%20next%20year's%20timetable%2C%20and%20I%20am%20allocating%20staff%20to%20classes.%3C%2FP%3E%3CP%3EOn%20Sheet%201%20I%20have%20the%20classes%20listed%20with%20the%20number%20of%20lessons%20a%20fortnight%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_0-1597799501619.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213223i97DE43C9307C5FE4%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_0-1597799501619.png%22%20alt%3D%22Mosomiv_0-1597799501619.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIn%20column%20C%20I%20will%20type%20the%20teachers%203-letter%20code%20so%20I%20know%20who%20is%20teaching%20that%20class%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_1-1597799575973.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213224i8B07020EAF3BBF37%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_1-1597799575973.png%22%20alt%3D%22Mosomiv_1-1597799575973.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20far%20so%20good.%3C%2FP%3E%3CP%3ENow%20in%20Sheet%202%20I%20want%20the%20teachers%20to%20be%20allocated%20their%20classes%2C%20so%20I%20can%20see%20how%20many%20lessons%20that%20teacher%20has%20(what%20their%20load%20is)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_2-1597799745256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213225iC589AFCB9378ABFB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_2-1597799745256.png%22%20alt%3D%22Mosomiv_2-1597799745256.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20want%20column%20B%20and%20C%20to%20be%20filled%20from%20Sheet%201.%3C%2FP%3E%3CP%3EI%20enter%20the%20teachers%20codes%20in%20Sheet%201%20against%20the%20class%2C%20and%20Sheet%202%20is%20automatically%20populated%20with%20the%20class%20code%20and%20the%20number%20of%20lessons%20against%20the%20appropriate%20teacher.%3C%2FP%3E%3CP%3ETo%20help%20with%20doing%20the%20sums%2C%20I%20wouldn't%20mind%20if%20Sheet%202%20looked%20like%20this%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_3-1597799845003.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213226i3732F568C076A4D7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_3-1597799845003.png%22%20alt%3D%22Mosomiv_3-1597799845003.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ebut%20that's%20not%20the%20end%20of%20the%20world%20if%20it%20doesn't.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%20on%20how%20to%20do%20this%3F%20Any%20help%20would%20be%20much%20appreciated.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1597714%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1597849%22%20slang%3D%22en-US%22%3ERe%3A%20looking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1597849%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F763883%22%20target%3D%22_blank%22%3E%40Mosomiv%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20further%20complicate%20matters%2C%20i%20need%20this%20to%20work%20for%20all%20the%20classes%2C%20so%20there%20will%20be%20multiple%20columns%3C%2FP%3E%3CP%3Eeg%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_0-1597808026473.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213231i5302C32B289EA9AB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_0-1597808026473.png%22%20alt%3D%22Mosomiv_0-1597808026473.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20the%20Maths%20staffing%20may%20end%20up%20looking%20like%20this%20(for%20Years%207%20%26amp%3B%208%20for%20example)%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_1-1597808154473.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213232iDABEF4DAE16C5EB5%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_1-1597808154473.png%22%20alt%3D%22Mosomiv_1-1597808154473.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAgain%2C%20any%20help%20or%20suggestions%20would%20be%20very%20much%20appreciated!%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1600868%22%20slang%3D%22en-US%22%3ERe%3A%20looking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1600868%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F763883%22%20target%3D%22_blank%22%3E%40Mosomiv%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20use%20INDEX%2FMATCH%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.excel-easy.com%2Fexamples%2Findex-match.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.excel-easy.com%2Fexamples%2Findex-match.html%3C%2FA%3E%20to%20return%20lessons%20and%20their%20numbers%20based%20on%20teacher%20code%20and%20class%20number.%20If%20you%20provide%20sample%20file%20it'll%20be%20easier%20to%20illustrate%20on%20formula.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1601305%22%20slang%3D%22en-US%22%3ERe%3A%20looking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1601305%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20reply%2C%20I%20was%20thinking%20maybe%20Index%20and%20Match%20would%20do%20it%2C%20but%20I%20need%20to%20learn%20how%20to%20use%20them%20better.%3C%2FP%3E%3CP%3EMy%20concern%20is%20if%20one%20teacher%20is%20teaching%202%20year%207%20Maths%20classes%2C%20how%20do%20i%20get%20both%20classes%20listed%20against%20their%20name%3F%20How%20do%20I%20do%20a%20formula%20that%20puts%20all%20of%20their%20classes%20across%20the%20row%20against%20their%20name%3F%3C%2FP%3E%3CP%3EI've%20attached%20the%20file%20for%20you%20to%20have%20a%20look%20at.%3C%2FP%3E%3CP%3EThanks%20again%20for%20looking%20at%20this%20for%20me%2C%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1601990%22%20slang%3D%22en-US%22%3ERe%3A%20looking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1601990%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F763883%22%20target%3D%22_blank%22%3E%40Mosomiv%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20the%20file.%20Could%20you%20please%20clarify%20how%20do%20you%20map%202021%20classes%20on%20Class%201%2C%20Class%202%2C%20etc%20in%20Sheet1%3F%20Perhaps%20you%20may%20add%20one-two%20codes%20to%20the%20tables%20with%20manually%20added%20desired%20result.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20question%20is%20on%20which%20version%20of%20Excel%20you%20are%3F%20Mainly%20is%20it%20support%20dynamic%20arrays%20or%20not%2C%20other%20words%20do%20you%20have%20functions%20as%20XLOOKUP%2C%20FILTER.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1602616%22%20slang%3D%22en-US%22%3ERe%3A%20looking%20up%20across%20sheets%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1602616%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20what%20we%20normally%20do%20is%20manually%20enter%2C%20on%20%222021%20Classes'%20sheet%2C%20the%20teacher%20code%20against%20a%20class%2C%20depending%20on%20who%20we%20want%20to%20teach%20it.%3C%2FP%3E%3CP%3EThen%20I%20copy%20all%20of%20those%20codes%20into%20one%20list%20(so%20instead%20of%20being%20multiple%20lists%20across%20the%20sheet%20(eg%20Year%207%20classes%2C%20then%20Year%208%20classes%20etc)%20they%20are%20all%20in%20one%20big%20list).%20I%20then%20sort%20them%20by%20the%20teacher%20code%20and%20copy%20across%20to%20sheet%201%20and%20paste%20down%20the%20bottom%20somewhere%2C%20then%20transpose%20them%2C%201%20teacher%20at%20a%20time%2C%20so%20they%20become%20horizontal%20lists%20for%20each%20teacher%20which%20I%20then%20copy%20and%20paste%20up%20the%20top%20of%20sheet%201%20against%20the%20teacher%20code.%20This%20is%20just%20for%20the%20teacher%20code%20and%20class%20code.%20I%20also%20use%20vlookup%20to%20get%20the%20hours%20with%20the%20codes%20as%20well.%3C%2FP%3E%3CP%3EVery%20messy%2C%20hence%20my%20need%20for%20a%20better%20solution!%3C%2FP%3E%3CP%3EI'll%20repost%20the%20file%20with%20some%20example%20teacher%20codes%20on%20'2021%20classes'%20and%20the%20desired%20effect%20on%20Sheet%201.%3C%2FP%3E%3CP%3EI%20have%20Excel%20for%20Office%20365%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mosomiv_0-1597958560827.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F213561iAF645110A631C71B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Mosomiv_0-1597958560827.png%22%20alt%3D%22Mosomiv_0-1597958560827.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThanks%20again%20for%20helping%20me!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi there,

I am a teacher trying to work on next year's timetable, and I am allocating staff to classes.

On Sheet 1 I have the classes listed with the number of lessons a fortnight:

Mosomiv_0-1597799501619.png

In column C I will type the teachers 3-letter code so I know who is teaching that class:

Mosomiv_1-1597799575973.png

So far so good.

Now in Sheet 2 I want the teachers to be allocated their classes, so I can see how many lessons that teacher has (what their load is):

Mosomiv_2-1597799745256.png

I want column B and C to be filled from Sheet 1.

I enter the teachers codes in Sheet 1 against the class, and Sheet 2 is automatically populated with the class code and the number of lessons against the appropriate teacher.

To help with doing the sums, I wouldn't mind if Sheet 2 looked like this:

Mosomiv_3-1597799845003.png

but that's not the end of the world if it doesn't.

 

Any thoughts on how to do this? Any help would be much appreciated.

Thanks

5 Replies

@Mosomiv 

To further complicate matters, i need this to work for all the classes, so there will be multiple columns

eg

Mosomiv_0-1597808026473.png

So the Maths staffing may end up looking like this (for Years 7 & 8 for example):

Mosomiv_1-1597808154473.png

 

Again, any help or suggestions would be very much appreciated!

Thanks

 

@Mosomiv 

You may use INDEX/MATCH https://www.excel-easy.com/examples/index-match.html to return lessons and their numbers based on teacher code and class number. If you provide sample file it'll be easier to illustrate on formula.

@Sergei Baklan 

Thanks for your reply, I was thinking maybe Index and Match would do it, but I need to learn how to use them better.

My concern is if one teacher is teaching 2 year 7 Maths classes, how do i get both classes listed against their name? How do I do a formula that puts all of their classes across the row against their name?

I've attached the file for you to have a look at.

Thanks again for looking at this for me, much appreciated!

 

@Mosomiv 

Thank you for the file. Could you please clarify how do you map 2021 classes on Class 1, Class 2, etc in Sheet1? Perhaps you may add one-two codes to the tables with manually added desired result.

 

Another question is on which version of Excel you are? Mainly is it support dynamic arrays or not, other words do you have functions as XLOOKUP, FILTER.

@Sergei Baklan 

So what we normally do is manually enter, on "2021 Classes' sheet, the teacher code against a class, depending on who we want to teach it.

Then I copy all of those codes into one list (so instead of being multiple lists across the sheet (eg Year 7 classes, then Year 8 classes etc) they are all in one big list). I then sort them by the teacher code and copy across to sheet 1 and paste down the bottom somewhere, then transpose them, 1 teacher at a time, so they become horizontal lists for each teacher which I then copy and paste up the top of sheet 1 against the teacher code. This is just for the teacher code and class code. I also use vlookup to get the hours with the codes as well.

Very messy, hence my need for a better solution!

I'll repost the file with some example teacher codes on '2021 classes' and the desired effect on Sheet 1.

I have Excel for Office 365:

Mosomiv_0-1597958560827.png

Thanks again for helping me!

 

I have