#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Row increments -

I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119)-35,0)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Row increments -

First of all, you can simplify your formula to this:

=IF(SUM(SheetOne!H112:J112)40,SUM(SheetOne!H112:J 112)-35,0)
=IF(SUM(SheetOne!H119:J119)40,SUM(SheetOne!H119:J 119)-35,0)

and so on.

It looks like you want to increase the reference rows by 7 on each
row, and you can do this using INDIRECT and the ROW() function. Which
row f the second sheet contains the first formula? (and is this
referring to row 112 of SheetOne?)

Hope this helps.

Pete

On Apr 23, 5:36*pm, Janelle wrote:
I am trying to copy a long "=IF" formula down a row by dragging it. *The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. *I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. *How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+Shee*tOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+Shee*tOne!I119+SheetOne!J119)-35,0)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Row increments -

Please try this and once you are done you will get how to get through..

On a new workbook enter these values
A12 = "One"
A19 = "Two"
A26 = "Three"

In same sheet
B1 = INDIRECT("Sheet2!A"&12+(ROW()-1)*7)

Drag the formula down. Try this logic in your formula. You will have to
adjust the number 12 mentioned in this formula to suit your requirements. (I
am not sure in which row you have your formula )

Try and let us know...in case of help...



If this post helps click Yes
---------------
Jacob Skaria


"Janelle" wrote:

I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119)-35,0)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Row increments -

I am having difficulty applying this example to my particular workbook. My
formula starts on row 21 of the second sheet..how do I incorporate that into
the formula that you gave me?
Thanks

"Jacob Skaria" wrote:

Please try this and once you are done you will get how to get through..

On a new workbook enter these values
A12 = "One"
A19 = "Two"
A26 = "Three"

In same sheet
B1 = INDIRECT("Sheet2!A"&12+(ROW()-1)*7)

Drag the formula down. Try this logic in your formula. You will have to
adjust the number 12 mentioned in this formula to suit your requirements. (I
am not sure in which row you have your formula )

Try and let us know...in case of help...



If this post helps click Yes
---------------
Jacob Skaria


"Janelle" wrote:

I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119)-35,0)


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Row increments -

The first formula in the second sheet is in row 21, this row references row
112. Thanks.

"Pete_UK" wrote:

First of all, you can simplify your formula to this:

=IF(SUM(SheetOne!H112:J112)40,SUM(SheetOne!H112:J 112)-35,0)
=IF(SUM(SheetOne!H119:J119)40,SUM(SheetOne!H119:J 119)-35,0)

and so on.

It looks like you want to increase the reference rows by 7 on each
row, and you can do this using INDIRECT and the ROW() function. Which
row f the second sheet contains the first formula? (and is this
referring to row 112 of SheetOne?),

Hope this helps.

Pete

On Apr 23, 5:36 pm, Janelle wrote:
I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheeÂ*tOne!I112+SheetOne!J112 )-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheeÂ*tOne!I119+SheetOne!J119 )-35,0)





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Row increments -

Janelle, try the below...If you copy it down it should increment by 7..

=INDIRECT("Sheet2!A"& 112+(ROW()-21)*7)

If this post helps click Yes
---------------
Jacob Skaria


"Janelle" wrote:

I am having difficulty applying this example to my particular workbook. My
formula starts on row 21 of the second sheet..how do I incorporate that into
the formula that you gave me?
Thanks

"Jacob Skaria" wrote:

Please try this and once you are done you will get how to get through..

On a new workbook enter these values
A12 = "One"
A19 = "Two"
A26 = "Three"

In same sheet
B1 = INDIRECT("Sheet2!A"&12+(ROW()-1)*7)

Drag the formula down. Try this logic in your formula. You will have to
adjust the number 12 mentioned in this formula to suit your requirements. (I
am not sure in which row you have your formula )

Try and let us know...in case of help...



If this post helps click Yes
---------------
Jacob Skaria


"Janelle" wrote:

I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119)-35,0)


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Row increments -

Hey,

I'm close to figuring this beast out but i'm running into a jam when it
comes to incorporating the sum of three cells. Instead of referencing only
H112 I would like to reference the sum of H112 + I112 + J112. I'm getting
lost in brackets and colons.
This is the formula I have that works for me, properly incrementing by 7
each time. Any thoughts on how to incorporate the SUM function?

=IF((INDIRECT("Mike!H"&112+(ROW()-21)*7))35,(INDIRECT("Mike!$H"&112+((ROW()-21)*7)))-35,0)

Thanks for the help!



"Pete_UK" wrote:

First of all, you can simplify your formula to this:

=IF(SUM(SheetOne!H112:J112)40,SUM(SheetOne!H112:J 112)-35,0)
=IF(SUM(SheetOne!H119:J119)40,SUM(SheetOne!H119:J 119)-35,0)

and so on.

It looks like you want to increase the reference rows by 7 on each
row, and you can do this using INDIRECT and the ROW() function. Which
row f the second sheet contains the first formula? (and is this
referring to row 112 of SheetOne?)

Hope this helps.

Pete

On Apr 23, 5:36 pm, Janelle wrote:
I am trying to copy a long "=IF" formula down a row by dragging it. The
"=IF" formula is linked to another worksheet, and I am trying to increase the
attached cell row references (to the linked worksheet) by more than one. I
can only figure out how to stop the incrementation all together, or have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+SheeÂ*tOne!I112+SheetOne!J112 )-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+SheeÂ*tOne!I119+SheetOne!J119 )-35,0)



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Row increments -

Try this...

Table is a named range that refers to Mike!$H$112:$J$500. Adjust for the
correct end of the range.

Assume the firt result is to appear in cell A21.

Enter this formula in A21 and copy down as needed:

=IF(SUM(INDEX(Table,ROWS(A$21:A21)*7-7+1,0))40,SUM(INDEX(Table,ROWS(A$21:A21)*7-7+1,0))-35,0)

--
Biff
Microsoft Excel MVP


"Janelle" wrote in message
...
Hey,

I'm close to figuring this beast out but i'm running into a jam when it
comes to incorporating the sum of three cells. Instead of referencing only
H112 I would like to reference the sum of H112 + I112 + J112. I'm getting
lost in brackets and colons.
This is the formula I have that works for me, properly incrementing by 7
each time. Any thoughts on how to incorporate the SUM function?

=IF((INDIRECT("Mike!H"&112+(ROW()-21)*7))35,(INDIRECT("Mike!$H"&112+((ROW()-21)*7)))-35,0)

Thanks for the help!



"Pete_UK" wrote:

First of all, you can simplify your formula to this:

=IF(SUM(SheetOne!H112:J112)40,SUM(SheetOne!H112:J 112)-35,0)
=IF(SUM(SheetOne!H119:J119)40,SUM(SheetOne!H119:J 119)-35,0)

and so on.

It looks like you want to increase the reference rows by 7 on each
row, and you can do this using INDIRECT and the ROW() function. Which
row f the second sheet contains the first formula? (and is this
referring to row 112 of SheetOne?)

Hope this helps.

Pete

On Apr 23, 5:36 pm, Janelle wrote:
I am trying to copy a long "=IF" formula down a row by dragging it.
The
"=IF" formula is linked to another worksheet, and I am trying to
increase the
attached cell row references (to the linked worksheet) by more than
one. I
can only figure out how to stop the incrementation all together, or
have it
increase by one each row. How can I do this?

ie.

=IF(SUM(SheetOne!H112+SheetOne!I112+SheetOne!J112 40,SUM(SheetOne!H112+Shee*tOne!I112+SheetOne!J112)-35,0)
=IF(SUM(SheetOne!H119+SheetOne!I119+SheetOne!J119 40,SUM(SheetOne!H119+Shee*tOne!I119+SheetOne!J119)-35,0)





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
formula with increments of 6 ForeverH Excel Worksheet Functions 7 November 7th 08 02:11 PM
increments pytelium Excel Discussion (Misc queries) 5 October 9th 05 09:45 PM
Time increments Ntisch New Users to Excel 4 September 29th 05 07:00 AM
ROUNDUP IN 0.2 INCREMENTS igor058 Excel Worksheet Functions 3 June 24th 05 12:21 PM
How do I add time when some of the increments are less than an ho Learning Center Student New Users to Excel 1 May 18th 05 06:19 PM


All times are GMT +1. The time now is 08:01 PM.

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

About Us

"It's about Microsoft Excel"