How to search a spreadsheet for a name?

Hi. A spreadsheet newbie here.
I want to be able to enter a person's name into a sheet/table and have Numbers tell me whether that name has already been entered into that, or some other, sheet (and, hopefully, where). Can someone suggest a formula for doing that, or at least point me in the right direction?

Thanks,
Bob

Quad G5, Mac OS X (10.5.6)

Posted on Feb 22, 2009 7:40 AM

Reply
22 replies

Feb 25, 2009 12:43 PM in response to Bob deWitt

Okay. I appreciate the spirited discussion here, but let's all try to remain friends.... 🙂

First of all, let me re-iterate that I am a spreadsheet newbie. I might be able to utilize a function to create a formula after enough hair-pulling, but I am not necessarily skilled or intelligent enough to automatically see implications when suggested to me if they are not obvious. For instance, I can't figure out how to use FIND as suggested by 'dbk'.

On the other hand, I need to more fully explain what I would like to do so you guys that know what you are doing can either show me how it might be done, or tell me that it can't.

So, here it is:
I am an art professor and one of the coordinators for the Art Department at a local university (so I'm an artist, not a programmer...bad news to begin with). As a coordinator, I have to set up semester schedules for all of the teachers in my area in the department. I have been doing that with a spreadsheet (rather than paper and pencil). Each teacher has at least three classes that they teach at different hours throughout the week (usually Monday-Wednesday-Friday & Tuesday-Thursday), in different classrooms.

What I have been doing is to enter the teachers' names, classes, and hours (durations) into a spreadsheet associated with the different classrooms. I have made each classroom a different table so I can keep them differentiated. The problem comes in keeping track of where each teacher is teaching and at what time and in what classroom so that there are no overlaps or conflicts.

Added to this is that there are three other coordinators that are also scheduling for their classes. Everything is entered into a master chart, a physical matrix (a big sheet of paper with all of the above data colored onto it). The resulting juggling act is a nightmare of making certain that rooms, times, and teachers are properly allocated. After everything is assigned, there is always a frantic re-juggling when conflicts are (inevitably) uncovered.

I was hoping that there would be a way to automate at least SOME of this process. I mean, computers are supposed to be tools for making our lives easier, right?

So, in a nut-shell, what I want to be able to do is to create a spreadsheet into which I can enter the name of an instructor into a time slot for a particular classroom and be alerted if that time slot is already taken by some other class, or the teacher already has another time commitment at that hour in a different classroom. See what a tangled web I weave?

The reason I didn't explain all of this to begin with was that I suspected no-one would read such a lengthy post and bother to respond.

Regards,
Bob

Feb 25, 2009 1:55 PM in response to Bob deWitt

As I often wrote:
when a problem is correctly described, it's quite solved 😉

User uploaded file

In the table named Tableau 1 it build a resume of class usage.


cell B3: =IF(VLOOKUP($A,class 1 :: $A:$E,2,0),TRUE,"")
cell C3: =IF(VLOOKUP($A,class 1 :: $A:$E,3,0),TRUE,"")
cell D3: =IF(VLOOKUP($A,class 1 :: $A:$E,4,0),TRUE,"")
cell E3: =IF(VLOOKUP($A,class 1 :: $A:$E,5,0),TRUE,"")

cell F3: =IF(VLOOKUP($A,class 2 :: $A:$E,2,0),TRUE,"")
cell G3: =IF(VLOOKUP($A,class 2 :: $A:$E,3,0),TRUE,"")
cell H3: =IF(VLOOKUP($A,class 2 :: $A:$E,4,0),TRUE,"")
cell I3: =IF(VLOOKUP($A,class 2 :: $A:$E,5,0),TRUE,"")

cell J3: =IF(VLOOKUP($A,class 3 :: $A:$E,2,0),TRUE,"")
cell K3: =IF(VLOOKUP($A,class 3 :: $A:$E,3,0),TRUE,"")
cell L3: =IF(VLOOKUP($A,class 3 :: $A:$E,4,0),TRUE,"")
cell M3: =IF(VLOOKUP($A,class 3 :: $A:$E,5,0),TRUE,"")

fill down every rows with a teacher name.

In row 10 ( a footer row),
in B10 enter =COUNTIF(B,TRUE)
fill to the right.

If the value is 0, the class is unoccupied
If the value is 1, the class is occupied
If the value is greater than 1, the class is surbooked 😉

Yvan KOENIG (from FRANCE mercredi 25 février 2009 22:55:19)

Feb 25, 2009 8:32 PM in response to Bob deWitt

Yvan is extremely knowledgeable at getting exact solutions.

As for using the "Find" command the way I say, assuming you actually mean "find" and not the other stuff I offered, it is really quite simple. Press command-F to bring up the find listing and then enter the name. As you type, a list will show every reference that matches what you have typed so far, in all the sheets and tables in that particular file. If you click on one of the matches, your cursor will move to that spot on the table. To get rid of the find listing, press command-F again (at least that's the only way I know of from my limited experimenting.

Feb 26, 2009 3:14 AM in response to Bob deWitt

Alternate response

User uploaded file

It's easier because there is no need to edit formulas by hand.

In B3, F3 & J3 enter:

=IF(ISERROR(VLOOKUP($A,class 1 :: B,1,0)),"",TRUE)
fill down
select B3:B9 fill to right (from B to E)

select F3:F9 fill to right (from F to I)

select J3:J9 fill to right (from J to M)

That's all folks.

Yvan KOENIG (from FRANCE jeudi 26 février 2009 12:13:58)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to search a spreadsheet for a name?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.