Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default referencing the data in a cell

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?
  #2   Report Post  
Member
 
Posts: 58
Default

Quote:
Originally Posted by kraway View Post
I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?
Kraway:

Paste this formula in cell B1 and copy down as far as needed.

Code:
=IF(MOD(ROW()-1,5)=0,ROW(),"")
Paste this formula in cell C1 and copy down, hide column B.

Code:
=IF(ISERR(SMALL(B:B,ROW(A1))),"",OFFSET($A$1,SMALL(B:B,ROW(A1))-1,0))

Last edited by GoBow777 : January 12th 08 at 07:21 PM
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default referencing the data in a cell

Try this in c1 and drag down

=INDEX(A:A,(ROW(A1)-1)*6+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default referencing the data in a cell

OOps your step was 5 not 6 so I really meant this!!

=INDEX(A:A,(ROW(A1)-1)*5+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default referencing the data in a cell

Hi,

=OFFSET($A$1,(ROW()-1)*5,0)

HTH


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default referencing the data in a cell

That didn't work but I think I have the idea now.

"Mike H" wrote:

OOps your step was 5 not 6 so I really meant this!!

=INDEX(A:A,(ROW(A1)-1)*5+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default referencing the data in a cell

what didn't work about it?

"kraway" wrote:

That didn't work but I think I have the idea now.

"Mike H" wrote:

OOps your step was 5 not 6 so I really meant this!!

=INDEX(A:A,(ROW(A1)-1)*5+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default referencing the data in a cell

Your formula works, I screwed it up when I applied to actual data. My fault
totally. Sorry:)

"Mike H" wrote:

what didn't work about it?

"kraway" wrote:

That didn't work but I think I have the idea now.

"Mike H" wrote:

OOps your step was 5 not 6 so I really meant this!!

=INDEX(A:A,(ROW(A1)-1)*5+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default referencing the data in a cell

No problem, thank you for the feedback

Mike

"kraway" wrote:

Your formula works, I screwed it up when I applied to actual data. My fault
totally. Sorry:)

"Mike H" wrote:

what didn't work about it?

"kraway" wrote:

That didn't work but I think I have the idea now.

"Mike H" wrote:

OOps your step was 5 not 6 so I really meant this!!

=INDEX(A:A,(ROW(A1)-1)*5+1)

Mike

"kraway" wrote:

I have a column of data, say column A. I want to show the value of every 5th
row in column A in column C. This means cell C1 will reference cell A1, cell
C2 will reference cell A6, cell C3 will reference cell A11, etc. Is there a
formula that I can drag down column C to produce this result?

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
Data referencing DeadpanDad Excel Worksheet Functions 2 June 8th 07 05:05 PM
Referencing Data chad Excel Worksheet Functions 1 August 24th 06 05:17 PM
referencing data from a table arbutus Excel Worksheet Functions 2 March 24th 06 05:29 AM
Prevent equation from skipping data when referencing import data? lybrt98 Excel Discussion (Misc queries) 0 August 30th 05 05:01 PM
referencing a sheet named in a cell then using data from that sheet gbeard Excel Worksheet Functions 4 April 15th 05 08:42 AM


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

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

About Us

"It's about Microsoft Excel"