ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Programming Cell ID's (https://www.excelbanter.com/excel-discussion-misc-queries/140228-programming-cell-ids.html)

Jeremy

Programming Cell ID's
 
I have a very basic issue in excel and I can't for the life of me find the
solution. I have a dense worksheet of data and I want to distill some of the
information into a much shorter list. The data is ordered and the
information I want to pull out from the big sheet and put in the little sheet
occurs in the same column in every 30th cell. In my new sheet, I want my
column of information to refer to every 30th cell. In other words, I want
h28, h58, h88, h118, etc. Unfortunately, I don't know how to make excel
automate this process (there's too much info for me to do it by hand). Does
anyone know how to do this? Thanks.

William Horton

Programming Cell ID's
 
Try the below formula...

=INDIRECT(ADDRESS(ROW()*30,1,1,1,"Sheet2"))

Where Sheet2 is the name of the sheet that you want to reference. Start the
formula in row1 of your new sheet and copy the formula down for as many rows
as you need. If you don't want to start the formula in row 1 of your new
sheet you will have to enter the formula
=INDIRECT(ADDRESS(ROW()*30-X,1,1,1,"Sheet2")) Where X is the number of rows
you need to subtract to get the formula to work right.

Hope this helps.


"Jeremy" wrote:

I have a very basic issue in excel and I can't for the life of me find the
solution. I have a dense worksheet of data and I want to distill some of the
information into a much shorter list. The data is ordered and the
information I want to pull out from the big sheet and put in the little sheet
occurs in the same column in every 30th cell. In my new sheet, I want my
column of information to refer to every 30th cell. In other words, I want
h28, h58, h88, h118, etc. Unfortunately, I don't know how to make excel
automate this process (there's too much info for me to do it by hand). Does
anyone know how to do this? Thanks.


bj

Programming Cell ID's
 
try
in A1 of Sheet2
=indirect("'Sheet1'H"&((Row()-1)*30+28)
and copy down


"Jeremy" wrote:

I have a very basic issue in excel and I can't for the life of me find the
solution. I have a dense worksheet of data and I want to distill some of the
information into a much shorter list. The data is ordered and the
information I want to pull out from the big sheet and put in the little sheet
occurs in the same column in every 30th cell. In my new sheet, I want my
column of information to refer to every 30th cell. In other words, I want
h28, h58, h88, h118, etc. Unfortunately, I don't know how to make excel
automate this process (there's too much info for me to do it by hand). Does
anyone know how to do this? Thanks.


Niek Otten

Programming Cell ID's
 
Hi Jeremy,

In row1:

=INDIRECT("sheet1!h"&28+(ROW()-1)*30)

Copy down as far as you need and adjust sheet name and start row if necessary

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"Jeremy" wrote in message ...
|I have a very basic issue in excel and I can't for the life of me find the
| solution. I have a dense worksheet of data and I want to distill some of the
| information into a much shorter list. The data is ordered and the
| information I want to pull out from the big sheet and put in the little sheet
| occurs in the same column in every 30th cell. In my new sheet, I want my
| column of information to refer to every 30th cell. In other words, I want
| h28, h58, h88, h118, etc. Unfortunately, I don't know how to make excel
| automate this process (there's too much info for me to do it by hand). Does
| anyone know how to do this? Thanks.



Harlan Grove[_2_]

Programming Cell ID's
 
"Jeremy" wrote...
....
occurs in the same column in every 30th cell. In my new sheet, I want my
column of information to refer to every 30th cell. In other words, I want
h28, h58, h88, h118, etc. Unfortunately, I don't know how to make excel

....

Three responses all using INDIRECT. If you like slow recalculation, use
INDIRECT. If you have any interest in faster recalc, and if the first such
formula would be in cell B2 in newsheet, try

newsheet!B2:
=INDEX(othersheet!$H:$H,ROWS(B$2:B2)*30-2)

and fill down.




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com