Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

How to retrieve entire row (actually 26 columns) of data ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Father Jack - 06 Jun 2007 03:10 GMT
I want my students to be able to see their grades online w/o viewing the
entire spreadsheet. My intention is to hide the working spreadsheet, & show
them a sheet with the same column headings (quiz 1, quiz 2, etc.).  The data
cells will populate w/ the data from the underlying hidden sheet when they
type in their (unique) student ID number.

I'm comortable w/ vlookup, but haven't used the other possibilities, like
index/match, etc., and now I need a way to find the student ID in the
worksheet, & return all the data in that row.
JE McGimpsey - 06 Jun 2007 04:10 GMT
If your students have access to the XL workbook, you should assume that
they have access to every part of it. XL's internal protection is useful
only for preventing inadvertent mistakes:

   http://www.mcgimpsey.com/excel/removepwords.html

and VBA and Workbook-level protection aren't particularly better:

   http://www.mcgimpsey.com/excel/fileandvbapwords.html

(and a simple hex editor will reveal most of the data, even if the
student doesn't have XL).

That said, VLOOKUP is just a specialized form of INDEX(MATCH()), so
which implementation you use depends on whether the ID is at the first
column of data or not. For instance, if  the ID is in column A:

   =VLOOKUP(AA1,A:Z,26,FALSE)

will return the value in column Z corresponding to the match, while if
the ID is in column J instead, this will return the corresponding value
in column B:

   =INDEX(B:B, MATCH(AA1,J:J,FALSE))

Note that, even if you use hidden sheets, the unique student ID number
isn't a password - it's probably easily obtainable from other sources.
But if not, giving access to a workbook with names and IDs will fix
that...

> I want my students to be able to see their grades online w/o viewing the
> entire spreadsheet. My intention is to hide the working spreadsheet, & show
[quoted text clipped - 5 lines]
> index/match, etc., and now I need a way to find the student ID in the
> worksheet, & return all the data in that row.
Father Jack - 07 Jun 2007 03:59 GMT
JE: I appreciate your concern for security, but, in fact, students already
have access to this information in multiple places--both online and on
physical bulletin boards.  I'm trying to retrieve a whole row of data,
rather than a single cell.   Is that possible?

Father Jack

> If your students have access to the XL workbook, you should assume that
> they have access to every part of it. XL's internal protection is useful
[quoted text clipped - 38 lines]
>> index/match, etc., and now I need a way to find the student ID in the
>> worksheet, & return all the data in that row.
JE McGimpsey - 07 Jun 2007 04:35 GMT
Use VLOOKUP...

> JE: I appreciate your concern for security, but, in fact, students already
> have access to this information in multiple places--both online and on
> physical bulletin boards.  I'm trying to retrieve a whole row of data,
> rather than a single cell.   Is that possible?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.