Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
JBSAND1001
 
Posts: n/a
Default Formula for copying a sequence for every 8th cell

Hello,
I am looking for a formula that will copy data either text or
numerical data in a sequence but for every 8th cell. I keep running into the
problem of excel using the abosulte/relative reference to capture the string.
For example

Cell A1:A20 = 1-20 I want to capture in sequence 1-20 in column B except
every 8th cell.

A1=1 B1=1
A2=2 B2=""
A3=3.... B3="".....
A20=20 B8=2
B9=""
B10=""....
B16=3
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
in B1 enter
=IF(MOD(ROW()-1,8)=0,OFFSET($A$1,INT((ROW()-1)/8),0),"")
and copy down.

NOTE: every 8th cell means the sequence:
B1
B9
B17
....

and NOT
B1
B8
B16

--
Regards
Frank Kabel
Frankfurt, Germany

JBSAND1001 wrote:
Hello,
I am looking for a formula that will copy data either text or
numerical data in a sequence but for every 8th cell. I keep running
into the problem of excel using the abosulte/relative reference to
capture the string. For example

Cell A1:A20 = 1-20 I want to capture in sequence 1-20 in column B
except every 8th cell.

A1=1 B1=1
A2=2 B2=""
A3=3.... B3="".....
A20=20 B8=2
B9=""
B10=""....
B16=3



  #3   Report Post  
Andy Brown
 
Posts: n/a
Default

A1=1 B1=1
A2=2 B2=""
A3=3.... B3="".....
A20=20 B8=2
B9=""
B10=""....
B16=3


Strictly speaking that's not every 8th row. That aside, try something like

=IF(ROW()=1,$A$1,IF(MOD(ROW(),8)<0,"",INDIRECT("A "&(ROW()/8)+1)))

HTH,
Andy


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=INDEX($B$1:$B$100,(ROW()-ROW($A$1))*8+1)

JBSAND1001 wrote:
Hello,
I am looking for a formula that will copy data either text or
numerical data in a sequence but for every 8th cell. I keep running into the
problem of excel using the abosulte/relative reference to capture the string.
For example

Cell A1:A20 = 1-20 I want to capture in sequence 1-20 in column B except
every 8th cell.

A1=1 B1=1
A2=2 B2=""
A3=3.... B3="".....
A20=20 B8=2
B9=""
B10=""....
B16=3

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
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM
using content of a cell in a formula in another cell mpierre Excel Worksheet Functions 3 December 28th 04 03:43 PM
How can I write an if-then formula for 0 or less than 0 in cell t. Baz1 Excel Worksheet Functions 1 November 30th 04 04:33 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 02:48 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"