#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default data lookup

I am looking for a formula that will allow me to tell a cell to return data
from a cell that is a set number of cells below the current cell in a
vertical array of data. For example, if I have data in cells A1:A100, I want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell B3 to
return cell A20, etc.

Can anyone help?

Thanks!

Scott
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default data lookup

Try this:

Entered in B1 and copied down as needed.

=INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)

This is what you'll get:

B1 = A1
B2 = A10
B3 = A20
B4 = A30

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
I am looking for a formula that will allow me to tell a cell to return data
from a cell that is a set number of cells below the current cell in a
vertical array of data. For example, if I have data in cells A1:A100, I
want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell B3 to
return cell A20, etc.

Can anyone help?

Thanks!

Scott



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default data lookup

Thank you very much, this is exactly what I needed. I have over 45,000 rows
of data and this saved me a tremendous amount of time. Now, I have another
question:

Since I am able to reference the data that I need. how do I reference the
cell directly next to it? I believe this is a vlookup function, but I have
never used it before.



"T. Valko" wrote:

Try this:

Entered in B1 and copied down as needed.

=INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)

This is what you'll get:

B1 = A1
B2 = A10
B3 = A20
B4 = A30

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
I am looking for a formula that will allow me to tell a cell to return data
from a cell that is a set number of cells below the current cell in a
vertical array of data. For example, if I have data in cells A1:A100, I
want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell B3 to
return cell A20, etc.

Can anyone help?

Thanks!

Scott




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default data lookup

how do I reference the cell directly next to it?

You could use the same formula just change the column that it references.

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
Thank you very much, this is exactly what I needed. I have over 45,000
rows
of data and this saved me a tremendous amount of time. Now, I have
another
question:

Since I am able to reference the data that I need. how do I reference the
cell directly next to it? I believe this is a vlookup function, but I
have
never used it before.



"T. Valko" wrote:

Try this:

Entered in B1 and copied down as needed.

=INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)

This is what you'll get:

B1 = A1
B2 = A10
B3 = A20
B4 = A30

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
I am looking for a formula that will allow me to tell a cell to return
data
from a cell that is a set number of cells below the current cell in a
vertical array of data. For example, if I have data in cells A1:A100,
I
want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell B3
to
return cell A20, etc.

Can anyone help?

Thanks!

Scott






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 577
Default data lookup

Ok, I should have figured that out before I asked that. Thank you though.
Now that I have the formula put into the worksheet, I double-clicked the
little black box in the cell to have the formula copy all the way down. The
problem is, since the formula is referencing blank cells after the last value
is referenced, I am getting values that return #ref!. Is there an "if" or
"or" statement that I can add to the formula that tells the fomula to stop
referencing cells once all the cells with numbers have been referenced?

"T. Valko" wrote:

how do I reference the cell directly next to it?


You could use the same formula just change the column that it references.

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
Thank you very much, this is exactly what I needed. I have over 45,000
rows
of data and this saved me a tremendous amount of time. Now, I have
another
question:

Since I am able to reference the data that I need. how do I reference the
cell directly next to it? I believe this is a vlookup function, but I
have
never used it before.



"T. Valko" wrote:

Try this:

Entered in B1 and copied down as needed.

=INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)

This is what you'll get:

B1 = A1
B2 = A10
B3 = A20
B4 = A30

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
I am looking for a formula that will allow me to tell a cell to return
data
from a cell that is a set number of cells below the current cell in a
vertical array of data. For example, if I have data in cells A1:A100,
I
want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell B3
to
return cell A20, etc.

Can anyone help?

Thanks!

Scott








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default data lookup

One way:

If you're using Excel 2007:

=IFERROR(INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10),"")

This one will work in any version of Excel:

=IF(ISERROR(INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)),"",INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10))


--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
Ok, I should have figured that out before I asked that. Thank you though.
Now that I have the formula put into the worksheet, I double-clicked the
little black box in the cell to have the formula copy all the way down.
The
problem is, since the formula is referencing blank cells after the last
value
is referenced, I am getting values that return #ref!. Is there an "if" or
"or" statement that I can add to the formula that tells the fomula to stop
referencing cells once all the cells with numbers have been referenced?

"T. Valko" wrote:

how do I reference the cell directly next to it?


You could use the same formula just change the column that it references.

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
Thank you very much, this is exactly what I needed. I have over 45,000
rows
of data and this saved me a tremendous amount of time. Now, I have
another
question:

Since I am able to reference the data that I need. how do I reference
the
cell directly next to it? I believe this is a vlookup function, but I
have
never used it before.



"T. Valko" wrote:

Try this:

Entered in B1 and copied down as needed.

=INDEX(A$1:A$30,(ROWS(B$1:B1)-1)*10)

This is what you'll get:

B1 = A1
B2 = A10
B3 = A20
B4 = A30

--
Biff
Microsoft Excel MVP


"scott" wrote in message
...
I am looking for a formula that will allow me to tell a cell to
return
data
from a cell that is a set number of cells below the current cell in
a
vertical array of data. For example, if I have data in cells
A1:A100,
I
want
cell B1 to return cell A1, and cell B2 to return cell A10, and cell
B3
to
return cell A20, etc.

Can anyone help?

Thanks!

Scott








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup data based on data comparison Dan Excel Worksheet Functions 7 November 6th 07 10:52 PM
Lookup of data Boggis2000 Excel Worksheet Functions 2 January 24th 06 04:28 PM
how do I lookup data based on two columns of data bttreadwell Excel Worksheet Functions 2 November 19th 05 03:54 AM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM


All times are GMT +1. The time now is 11:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"