ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   formula drag down/copy changing integers of 6 (https://www.excelbanter.com/excel-discussion-misc-queries/219776-formula-drag-down-copy-changing-integers-6-a.html)

mainsol

formula drag down/copy changing integers of 6
 
Good Morning!

I am wondering how to copy a cell and paste it so that the cell reference
within the formula changes. For example:

=IF('EAST Region PSR Detail '!A9=""," ",'EAST Region PSR Detail '!A9)
when dragged down becomes
=IF('EAST Region PSR Detail '!A10=""," ",'EAST Region PSR Detail '!A10)

What I need to accomplish is to have the cell reference within the formula
to change by 6 integers vs 1, so the correct formula would be
=IF('EAST Region PSR Detail '!A15=""," ",'EAST Region PSR Detail '!A15)

Roger Govier[_3_]

formula drag down/copy changing integers of 6
 
Hi

=IF(INDEX('EAST Region PSR Detail '!A:A,9+(Row(A1)-1)*6)=""," ",
INDEX('EAST Region PSR Detail '!A:A,9+(Row(A1)-1)*6))

--
Regards
Roger Govier

"mainsol" wrote in message
...
Good Morning!

I am wondering how to copy a cell and paste it so that the cell reference
within the formula changes. For example:

=IF('EAST Region PSR Detail '!A9=""," ",'EAST Region PSR Detail '!A9)
when dragged down becomes
=IF('EAST Region PSR Detail '!A10=""," ",'EAST Region PSR Detail '!A10)

What I need to accomplish is to have the cell reference within the formula
to change by 6 integers vs 1, so the correct formula would be
=IF('EAST Region PSR Detail '!A15=""," ",'EAST Region PSR Detail '!A15)



Max

formula drag down/copy changing integers of 6
 
This is one way to get it going

In the start cell, where you have:
=IF('EAST Region PSR Detail '!A9=""," ",'EAST Region PSR Detail '!A9)


Replace it with this:
=IF(INDIRECT("'EAST Region PSR Detail
'!A"&ROWS($1:1)*6+3)="","",INDIRECT("'EAST Region PSR Detail
'!A"&ROWS($1:1)*6+3))
Copy down to return desired results

I took the liberty to amend the return to a null string: "", which imo,
poses less potential downstream problems than to return a single space: " "
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"mainsol" wrote:
I am wondering how to copy a cell and paste it so that the cell reference
within the formula changes. For example:

=IF('EAST Region PSR Detail '!A9=""," ",'EAST Region PSR Detail '!A9)
when dragged down becomes
=IF('EAST Region PSR Detail '!A10=""," ",'EAST Region PSR Detail '!A10)

What I need to accomplish is to have the cell reference within the formula
to change by 6 integers vs 1, so the correct formula would be
=IF('EAST Region PSR Detail '!A15=""," ",'EAST Region PSR Detail '!A15)



All times are GMT +1. The time now is 03:20 PM.

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