How can I make a formula that is nonconsecutive?

%3CLINGO-SUB%20id%3D%22lingo-sub-2786539%22%20slang%3D%22en-US%22%3EHow%20can%20I%20make%20a%20formula%20that%20is%20nonconsecutive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2786539%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20sheet%20that%20pulls%20data%20off%20another%20sheet%2C%20but%20the%20reference%20cells%20are%207%20apart.%26nbsp%3B%26nbsp%3B%20Example%3A%26nbsp%3B%20%3DSheet%201!7.%26nbsp%3B%20then%20Sheet%201!14%2C%20Sheet%201!21%E2%80%A6%20etc.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20make%20like%20100%20cells%2C%20and%20dragging%20the%20cells%20just%20repeats%20that%20group.%26nbsp%3B%20Is%20this%20possible%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2786539%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2786564%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20make%20a%20formula%20that%20is%20nonconsecutive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2786564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F533335%22%20target%3D%22_blank%22%3E%40Budman361530%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20assume%20that%20you%20mean%20something%20like%20%3D'Sheet%201'!A7%20etc.%3C%2FP%3E%0A%3CP%3ELet's%20say%20the%20first%20formula%20will%20be%20in%20a%20cell%20in%20row%201.%3C%2FP%3E%0A%3CP%3EEnter%20the%20following%20formula%20in%20that%20cell%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDEX('Sheet%201'!A%3AA%2C%207*ROW())%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFill%20down%20as%20far%20as%20you%20need.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20first%20formula%20will%20be%20in%20row%202%20instead%20of%20row%201%2C%20use%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDEX('Sheet%201'!A%3AA%2C%207*ROW()-7)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eetc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2793176%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20make%20a%20formula%20that%20is%20nonconsecutive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2793176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F533335%22%20target%3D%22_blank%22%3E%40Budman361530%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20doesn't%20matter%20whether%20the%20cell%20referred%20to%20contains%20a%20fixed%20value%20or%20a%20formula.%3C%2FP%3E%0A%3CP%3EIt%20all%20depends%20which%20row%20contains%20the%20first%20formula.%3C%2FP%3E%0A%3CP%3EIf%20the%20first%20formula%20is%20in%20row%201.%20use%207*ROW()%20for%20in%20row%201%2C%207*ROW()%20%3D%207*1%20%3D%207%3C%2FP%3E%0A%3CP%3EIf%20the%20first%20formula%20is%20in%20row%202%2C%20use%207*ROW()-7%20for%20in%20row%202%2C%207*ROW()-7%20%3D%207*2-7%20%3D%2014-7%20%3D%207%3C%2FP%3E%0A%3CP%3EIf%20the%20first%20formula%20is%20in%20row%203%2C%20use%207*ROW()-14%20for%20in%20row%203%2C%207*ROW()-14%20%3D%207*3-14%20%3D%2021-14%20%3D7%3C%2FP%3E%0A%3CP%3EEtc.%3C%2FP%3E%0A%3CP%3EIn%20each%20of%20these%20situations%2C%20the%20first%20formula%20refers%20to%20row%207%20on%20the%20SUB%20TOTAL%20sheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2794470%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20make%20a%20formula%20that%20is%20nonconsecutive%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2794470%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F533335%22%20target%3D%22_blank%22%3E%40Budman361530%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20attach%20a%20copy%20of%20the%20workbook%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a sheet that pulls data off another sheet, but the reference cells are 7 apart.   Example:  =Sheet 1!7.  then Sheet 1!14, Sheet 1!21… etc.  

 

I need to make like 100 cells, and dragging the cells just repeats that group.  Is this possible?

10 Replies

@Budman361530 

I assume that you mean something like ='Sheet 1'!A7 etc.

Let's say the first formula will be in a cell in row 1.

Enter the following formula in that cell:

 

=INDEX('Sheet 1'!A:A, 7*ROW())

 

Fill down as far as you need.

 

If the first formula will be in row 2 instead of row 1, use

 

=INDEX('Sheet 1'!A:A, 7*ROW()-7)

 

etc.

Hey Hans,
Thank you for responding. However, It’s not working for me. Can you please walk me through this? Here is my actual formula.
=INDEX('SUB TOTAL'!K:K,7*ROW()-7)
The information starts on Row 7 of the K column. I understand the K:K part. That basically says, the entire column. I don’t understand the “ 7*ROW()-7) “ part, and how that equals the second row. How would I get it to see the 7th row? Then the 14th row, 21st, etc…
Also, I don’t think this will matter, but I am not sure? The cells I am trying to reference in the K columns (7), (14)… etc. are all a formula in themselves. It’s not a clean cell… meaning a number only. Can that effect my formula above?
Example…. Cell K7 on the Sub Total page is actually this…. =IF(SUM(J6:J7)>40,40,SUM(J6:J7))

@Budman361530 

It doesn't matter whether the cell referred to contains a fixed value or a formula.

It all depends which row contains the first formula.

If the first formula is in row 1. use 7*ROW() for in row 1, 7*ROW() = 7*1 = 7

If the first formula is in row 2, use 7*ROW()-7 for in row 2, 7*ROW()-7 = 7*2-7 = 14-7 = 7

If the first formula is in row 3, use 7*ROW()-14 for in row 3, 7*ROW()-14 = 7*3-14 = 21-14 =7

Etc.

In each of these situations, the first formula refers to row 7 on the SUB TOTAL sheet.

@Hans Vogelaar 

Ok… the way you explained it, I get it.  Thank you!  However, it isn’t working, and I just want to make sure we are on the same page. 

This is my Payroll Summary page.

Budman361530_0-1632876220459.png

 

The cell where the arrow is pointing should populate information from the following page below, but every seventh cell in column K.

Budman361530_1-1632876231420.png

This is the formula I am using:  =INDEX('SUB TOTAL'!K:K,7*ROW()-42)

The other issue I am having, is when I try to drag the box (my formula) it does not auto populate.  It stays at 42 vs, 49, 56… etc.

 

Budman361530_2-1632876249187.png

 

@Budman361530 

Could you attach a copy of the workbook?

@Hans Vogelaar Just uploaded a copy of my file.  See if you can see it.   On the "Payroll Summary" tab, in the column "Standard Time" I put the formula we have been talking about in row G15.  I then drug it down to show you want is going on.  The column "Overtime" next to it uses the original or existing formula.  I am trying to make this sheet/workbook expandable.   

@Budman361530 

Your first formula is in G15. In G15, ROW() = 15, so 7*ROW() = 105. You want to return the value from row 7 on the SUBTOTAL sheet, so you have to subtract 105-7 = 98:

 

=INDEX(SUBTOTAL!K:K,7*ROW()-98)

 

See the attached version.

Ok... so where I was confused was that number was referencing the “subtotal page” but it is referencing the row on the payroll summary page. So the next one would be 105, 112.. etc. ? But how do I get the formula to know on the second row… row (-105) to refence (K14 and not K7) on the “subtotal page”, and or why isn’t it auto populating when I drag it down?

@Budman361530 

On row 16, 7*ROW()-98 = 7*16-98 = 112-98 = 14

On row 17, 7*ROW()-98 = 7&17-98 = 119-98 = 21

Etc.

 

@Hans Vogelaar 

I found the problem!  Your explanation was awesome.  I cannot thank you enough!!!! You getting me to understand how the formula works, step by step got me to realize something else was not calculating correctly.  There was an error on the Overhead page that was not allowing the data to come over to the subtotal sheet.  Once I saw what you were saying I thought to myself.... I need to look at my data coming in, and I found the problem!  Again, THANK YOU THANK YOU THANK YOU!  Have an awesome day!