ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula Fill help (https://www.excelbanter.com/excel-worksheet-functions/88427-formula-fill-help.html)

Josh O.

Formula Fill help
 
I am creating a continuous form to use to print data from another
spreadsheet. What I need to do is copy a formula to paste various cells on a
spreadsheet. For example in Sheet1: U2 I have the following formula:
=IF('Sheet2'!A2<"",'Sheet2'!A2,""). I need to copy that formula into
Sheet1: U15 as =IF('Sheet2'!A3<"",'Sheet2'!A3,"") and into Sheet1: U28 as
=IF('Sheet2'!A4<"",'Sheet2'!A4,"") and so on.

Is there a simpler way to do that than manually correcting each formula?

Elkar

Formula Fill help
 
Assuming that your cells increment consistantly (U2, U15, U28, U41, U54, U67,
etc...), you could use this:

=IF(OFFSET(Sheet2!$A$2,(ROW()-2)/13,0)<"",OFFSET(Sheet2!$A$2,(ROW()-2)/13,0),"")

HTH,
Elkar


"Josh O." wrote:

I am creating a continuous form to use to print data from another
spreadsheet. What I need to do is copy a formula to paste various cells on a
spreadsheet. For example in Sheet1: U2 I have the following formula:
=IF('Sheet2'!A2<"",'Sheet2'!A2,""). I need to copy that formula into
Sheet1: U15 as =IF('Sheet2'!A3<"",'Sheet2'!A3,"") and into Sheet1: U28 as
=IF('Sheet2'!A4<"",'Sheet2'!A4,"") and so on.

Is there a simpler way to do that than manually correcting each formula?



All times are GMT +1. The time now is 12:06 PM.

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