A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sampling



 
 
Thread Tools Display Modes
  #1  
Old September 23rd, 2008, 06:15 PM posted to microsoft.public.excel.worksheet.functions
snickerbart
external usenet poster
 
Posts: 1
Default Sampling

I am trying to find a formula in EXCEL that I can use to extract a specific
line of information form one worksheet to another.

Here's my problem: I am give 16,000 lines of information to select a random
1% sampling from. A Random Number generator is used to deternime which lines
are to be sampled. Rather then scrolling down to review each line, I am
trying to use a formula on a second worksheet that will extract the
information from the original worksheet by entering the line number to be
reviewed.

ex. enter "109" in cell H1 on sheet2
result = Sheet1!109:109 from (A1:G1) on Sheet2
enter "204" in cell H2 on Sheet2
result = Sheet1!204:204 from (A2:G2) on Sheet2

Thanks in advance,
  #2  
Old September 23rd, 2008, 07:11 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
Default Sampling

snickerbart wrote:
I am trying to find a formula in EXCEL that I can use to extract a specific
line of information form one worksheet to another.

Here's my problem: I am give 16,000 lines of information to select a random
1% sampling from. A Random Number generator is used to deternime which lines
are to be sampled. Rather then scrolling down to review each line, I am
trying to use a formula on a second worksheet that will extract the
information from the original worksheet by entering the line number to be
reviewed.

ex. enter "109" in cell H1 on sheet2
result = Sheet1!109:109 from (A1:G1) on Sheet2
enter "204" in cell H2 on Sheet2
result = Sheet1!204:204 from (A2:G2) on Sheet2

Thanks in advance,


Put the following in A1:G160

=INDIRECT("Sheet1!R"&$H1&"C"&COLUMN(),FALSE)
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.