What excel formula should I use?

%3CLINGO-SUB%20id%3D%22lingo-sub-3193585%22%20slang%3D%22en-US%22%3EWhat%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193585%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20told%20to%20use%20a%20specific%20formula%20but%20I%20do%20not%20understand%20how%20this%20formula%20can%20be%20used%20with%20what%20I%20need%20to%20accomplish.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I've%20got%20a%20list%20of%20people%20who%20have%20or%20have%20not%20attended%20different%20events%20(marked%20Y%20if%20attended%20and%20N%20if%20not%20attended).%20I%20have%20the%20numerous%20names%20going%20down%20the%20rows%20and%20the%20different%20events%20across%20the%20columns%20at%20the%20top.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20once%20this%20has%20been%20filled%20in%20I%20need%20to%20form%20automatic%20registers%20where%20for%20each%20event%2C%20when%20I%20put%20a%20Y%20in%20the%20cell%20to%20say%20someone%20has%20attended%2C%20their%20name%20automatically%20goes%20on%20the%20register.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20told%20to%20use%20a%20Vlookup%20but%20from%20what%20I%20can%20understand%20from%20playing%20around%20with%20a%20vlookup%20I%20need%20to%20search%20for%20a%20name%20or%20some%20value%20to%20get%20the%20true%20or%20false%20criterion%20response%20which%20isn't%20the%20automatic%20response%20I'm%20looking%20for.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20got%20any%20ideas%20what%20formula%20or%20formulas%20I%20would%20use%3F%20I'm%20not%20too%20skilled%20with%20excel%20so%20the%20simplest%20instructions%20available%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3193585%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3193657%22%20slang%3D%22en-US%22%3ERe%3A%20What%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193657%22%20slang%3D%22en-US%22%3EAssuming%20you%20have%20the%20latest%20Excel%20FILTER()%20would%20be%20even%20easier%3A%3CBR%20%2F%3E%3DFILTER(%5BLIST%20OF%20NAMES%5D%2C%20%5BCol%20with%20Y%2FN%5D%3D'Y'%2C%22%22)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3193791%22%20slang%3D%22en-US%22%3ERe%3A%20What%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3193791%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1313560%22%20target%3D%22_blank%22%3E%40BMatths%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DFILTER(A2%3AA27%2CXLOOKUP(M1%2CB1%3AF1%2CB2%3AF27)%3DN1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BWith%20Office365%20or%202021%20or%20Excel%20online%20you%20can%20apply%20FILTER%20function%20to%20dynamically%20select%20the%20event%20and%20%22Y%22%20or%20%22N%22%20as%20shown%20in%20the%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3198771%22%20slang%3D%22en-US%22%3ERe%3A%20What%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3198771%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1174419%22%20target%3D%22_blank%22%3E%40Quadruple_Pawn%3C%2FA%3E%26nbsp%3BHi%2C%20I%20can't%20use%20a%20filter%20as%20the%20registers%20need%20to%20be%20on%20a%20separate%20excel%20spreadsheet.%20There%20are%20a%20lot%20of%20events%20and%20only%20certain%20people%20need%20to%20see%20the%20data%20for%20each%20club%20to%20safeguard%20data%20so%20I%20need%20a%20separate%20spreadsheet%20that%20automatically%20updates.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3200377%22%20slang%3D%22en-US%22%3ERe%3A%20What%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3200377%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1313560%22%20target%3D%22_blank%22%3E%40BMatths%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3DFILTER(A2%3AA27%2CSWITCH(M1%2C%22Event%201%22%2CTabelle31!B2%3AB27%2C%22Event%202%22%2CC2%3AC27%2C%22Event%203%22%2CTabelle28!U2%3AU27%2C%22Event%204%22%2CTabelle27!O2%3AO27%2C%22Event%205%22%2CTabelle26!L2%3AL27)%3DN1)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20works%20in%20my%20spreadsheet.%204%20of%205%20events%20are%20located%20on%20different%20sheets%20(%22Tabelle31%22%2C%26nbsp%3B%22Tabelle28%22%2C%26nbsp%3B%22Tabelle27%22%20and%26nbsp%3B%22Tabelle26%22)%20in%20this%20example.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3200436%22%20slang%3D%22en-US%22%3ERe%3A%20What%20excel%20formula%20should%20I%20use%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3200436%22%20slang%3D%22en-US%22%3EI%20believe%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1313560%22%20target%3D%22_blank%22%3E%40BMatths%3C%2FA%3E%20is%20saying%20they%20are%20in%20a%20completely%20different%20workbook.%20The%20problem%20then%20is%20that%20worksheet%20functions%20will%20only%20update%20from%20an%20external%20workbook%20when%20that%20other%20workbook%20is%20open.%20You%20could%20use%20power%20query%20to%20get%20the%20data%20and%20that%20query%20can%20update%20on%20open%20but%20it%20still%20won't%20be%20'live'%20since%20you%20will%20have%20to%20refresh%20data%20to%20get%20another%20update.%3C%2FLINGO-BODY%3E
New Contributor

Hi, 

 

I've been told to use a specific formula but I do not understand how this formula can be used with what I need to accomplish. 

 

So I've got a list of people who have or have not attended different events (marked Y if attended and N if not attended). I have the numerous names going down the rows and the different events across the columns at the top.

 

Now once this has been filled in I need to form automatic registers where for each event, when I put a Y in the cell to say someone has attended, their name automatically goes on the register. 

 

I was told to use a Vlookup but from what I can understand from playing around with a vlookup I need to search for a name or some value to get the true or false criterion response which isn't the automatic response I'm looking for.

 

Has anyone got any ideas what formula or formulas I would use? I'm not too skilled with excel so the simplest instructions available would be appreciated. 

 

Thank you. 

 

 

 

 

7 Replies
Assuming you have the latest Excel FILTER() would be even easier:
=FILTER([LIST OF NAMES], [Col with Y/N]='Y',"")

@BMatths 

=FILTER(A2:A27,XLOOKUP(M1,B1:F1,B2:F27)=N1)

 With Office365 or 2021 or Excel online you can apply FILTER function to dynamically select the event and "Y" or "N" as shown in the attached file.

@mtarler @Quadruple_Pawn Hi, I can't use a filter as the registers need to be on a separate excel spreadsheet. There are a lot of events and only certain people need to see the data for each club to safeguard data so I need a separate spreadsheet that automatically updates. 

@BMatths 

 

=FILTER(A2:A27,SWITCH(M1,"Event 1",Tabelle31!B2:B27,"Event 2",C2:C27,"Event 3",Tabelle28!U2:U27,"Event 4",Tabelle27!O2:O27,"Event 5",Tabelle26!L2:L27)=N1)

 

This works in my spreadsheet. 4 of 5 events are located on different sheets ("Tabelle31", "Tabelle28", "Tabelle27" and "Tabelle26") in this example.

I believe @BMatths is saying they are in a completely different workbook. The problem then is that worksheet functions will only update from an external workbook when that other workbook is open. You could use power query to get the data and that query can update on open but it still won't be 'live' since you will have to refresh data to get another update.
Yes that's what I'm saying. So will it not update if I save the first workbook?
my understanding is that if workbook B has references to workbook A and you make changes to workbook A, then:
if the refs in workbook B are cell references they will not update unless book A is open when you have book B open
if the ref is a data connection (e.g. power query) then it can be set to update on open. But if another user updates book A while you have book B open, you will not see that update unless you force a data refresh.
An alternative approach might be to have a single workbook that has the private data on a hidden sheet and had protection turned on. It isn't 100% secure (actually far from that) but for an average user, it works well. I would consider it like those little luggage locks, anyone could pick or break the lock and get in but that would be intentionally doing something they shouldn't. Like they say, locks keep honest people out.
BTW, I went 1 step further when I did this by having a intermediate sheet so I have a login sheet where they put in their name and PW and then a report sheet showing all their information. But that report sheet just pulls data from that intermediate sheet and the intermediate sheet pulls all the data from the actual data. This further helps keep the source of the data abstracted from the casual user.
It all depends on how private that information is. Is it just info they have no business looking at but by no means top secret or is it really confidential information? In my case it is just training records that are by no means top secret, but if they come to see their training records they don't need to sift through everyone else's.