Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Paul
 
Posts: n/a
Default Formula on nth row

My worksheet has blocks of 6 rows for each item I'm reporting on. I want to
apply a formula to the last row in each section, using data from the previous
column and the other cells in the same column, i.e

b6 = sum(a6-b1-b2-b3-b4+b5)
c6 = sum(b6-c1-c2-c3-c4+c5) etc.

I think I can get to each 6th row, by

if(mod(row(a1:a240) - 1),6) = 0, but not sure how to apply the formula

Thanks for any suggestions
  #2   Report Post  
arno
 
Posts: n/a
Default

Hi Paul,

My worksheet has blocks of 6 rows for each item I'm reporting on.


I am not sure what you are doing.

Pls. try to enter 6 formulas for a block (even if you do it manually,
without copying) and then copy all 6 formulas and paste them down your
list. The range for the paste operation must be a multiple of 6 (arrgh,
bad english, = 6, 12, 18...60... rows, ok?).

arno

  #3   Report Post  
Duke Carey
 
Posts: n/a
Default

Paul -

Insert a new column or use an empty column and enter this formula

=mod(row(),6)=0
or, if you have a header row make it
=mod(row()-1,6)=0
This will return TRUE for every 6th row, FALSE otherwise
Filter on the TRUE values
Enter your formula(s) in the first filtered row
Copy the formulas
Select the entire range
Press the F5 key, click on Special, and select Visible Cells Only
Paste
Undo your filter



"Paul" wrote:

My worksheet has blocks of 6 rows for each item I'm reporting on. I want to
apply a formula to the last row in each section, using data from the previous
column and the other cells in the same column, i.e

b6 = sum(a6-b1-b2-b3-b4+b5)
c6 = sum(b6-c1-c2-c3-c4+c5) etc.

I think I can get to each 6th row, by

if(mod(row(a1:a240) - 1),6) = 0, but not sure how to apply the formula

Thanks for any suggestions

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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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