Excel formula not carrying down correctly, using wrong intervals of rows?

lichldo

Board Regular
Joined
Apr 19, 2022
Messages
65
Office Version
  1. 365
Platform
  1. MacOS
Hello, including a sample of my sheet to help explain below. What is included was done manually, but I have to repeat this a few dozen more times so hoping to figure out how to drag this down correctly? Essentially I am trying to summarize data from another sheet. In this summary sheet, it needs to read every 30th row from the raw data sheet. However when I try to carry the set formulas on to the next PM "section", it puts 13 rows in between the data, not 30 - I think because my summary sheet has 13 rows in between each "set"? I'm struggling with how to explain this better but hopefully that gets the idea across?

So for more info, on this summary sheet, my first "section" for PM A -
C2 ='Option 1 Data'!B2
C3 ='Option 1 Data'!B32
C4 ='Option 1 Data'!B62
etc. - so you see it's reading every 30th row from my other sheet named Option 1 Data

Now my second "section" for PM B should add 1 to each of the above -
C15 ='Option 1 Data'!B3
C16 ='Option 1 Data'!B33
C17 ='Option 1 Data'!B63

so still every 30th row, but 1 down from PM A

I need to repeat this many times so trying to figure out a way to copy/paste this or drag it down accurately?

BP Aggregation by PM.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
1PMMonth 1st2nd3rd4th5th6th7th8th9th10th11th12th13th14th15th16th17th18th19th20th21st22nd23rd24th25th26th27th28th29th30th31stMid Month Difference Month Difference
2AJanuary0047829.4147829.4147829.4147829.4147829.410047829.4147829.41397553975539755003975539755397553975546935004693546935469354693566220.710064320.7161.79%N/A
3February104,502.3517,175.0017,175.0017,175.000.000.0017,175.0011,775.0011,775.0011,775.0011,775.000.000.0011,775.0011,775.0011,775.0011,775.0011,775.000.000.0011,775.0011,775.0011,775.0011,775.009,075.000.000.009,075.000.000.000.00-100.00%-100.00%
4March0000000000000000000000000000000N/AN/A
5April0000000000000000000000000000000N/AN/A
6May019521.4319521.430030443.060000000000000000000000000N/AN/A
7June0000000000000000000000000000000N/AN/A
8July0000000000000000000000000000000N/AN/A
9August0000000000000000000000000000000N/AN/A
10September0000000000000000000000000000000N/AN/A
11October0000000000000000000000000000000N/AN/A
12November0000000000000000000000000000000N/AN/A
13December0000000000000000000000000000000N/AN/A
14
15BJanuary0093027.4593027.4571062.4171062.4169517.970058011.8658011.8658011.8658011.8658011.860058011.8658011.8658011.8658011.8658011.860058280.6157245.6657245.6656178.5455756.580055756.58
16February125,987.79125,987.79125,987.79125,987.790.000.00125,987.7974,109.3574,603.3874,603.3874,603.380.000.0074,603.3868,565.5668,565.5666,359.5566,529.550.000.0063,811.6363,811.6363,811.6363,534.9663,412.650.000.0063,412.650.000.000.00
17March0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
18April0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
19May0.0088,200.0888,200.0888,200.08137,068.5295,666.350.000.0088,219.9288,219.9267,583.7967,583.7967,583.790.000.0088,219.9288,219.9267,583.7967,583.7967,583.790.000.0074,685.4774,685.4778,715.1777,698.2876,507.460.000.0076,507.4676,507.46
20June0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
21July0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
22August0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
23September0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
24October0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
25November0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
26December0.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.00
27
Option 1 Summary by PM
Cell Formulas
RangeFormula
C2:AG2C2='Option 1 Data'!B2
AH2:AH3,AH11AH2=IFERROR((AG2-P2)/P2,"N/A")
AI2:AI13AI2=IFERROR((AG2-C2)/C2,"N/A")
C3:AG3C3='Option 1 Data'!B32
C4C4='Option 1 Data'!B62
D4:AG4D4='Option 1 Data'!D62
AH4:AH5,AH7:AH10,AH12:AH13AH4=IFERROR((AG4-Q4)/Q4,"N/A")
C5:AG5C5='Option 1 Data'!B92
C6:AG6C6='Option 1 Data'!B122
AH6AH6=IFERROR((AG6-R6)/R6,"N/A")
C7:AG7C7='Option 1 Data'!B152
C8:AG8C8='Option 1 Data'!B182
C9:AG9C9='Option 1 Data'!B212
C10:AG10C10='Option 1 Data'!B242
C11:AG11C11='Option 1 Data'!B272
C12:AG12C12='Option 1 Data'!B302
C13:AG13C13='Option 1 Data'!B332
C15:AG15C15='Option 1 Data'!B3
C16:AG16C16='Option 1 Data'!B33
C17:AG17C17='Option 1 Data'!B63
C18:AG18C18='Option 1 Data'!B93
C19:AG19C19='Option 1 Data'!B123
C20:AG20C20='Option 1 Data'!B153
C21:AG21C21='Option 1 Data'!B183
C22:AG22C22='Option 1 Data'!B213
C23:AG23C23='Option 1 Data'!B243
C24:AG24C24='Option 1 Data'!B273
C25:AG25C25='Option 1 Data'!B303
C26:AG26C26='Option 1 Data'!B333
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Will this work for you:

ABCDEFG
1Month 1st2nd3rd4th5th
2Januaryb2c2etc00
3Februaryb32c32etc00
4Marchb62c62etc00
5April
6May
7June
8July
9August
10September
11October
12November
13December
14
15Januaryb3c3etc00
16Februaryb33c33etc00
17Marchb63c63etc00
18April
19May
20June
21July
22August
23September
24October
25November
26December
27
28Januaryb4c4etc00
29Februaryb34c34etc00
30Marchb64c64etc00
31April
32May
33June
34July
35August
36September
37October
38November
39December
Sheet1
Cell Formulas
RangeFormula
C28:AG30,C15:AG17,C2:AG4C2=INDEX('Option 1 Data'!B:AF,INT(ROWS(C$2:C2)/13)+30*MOD(ROWS(C$2:C2),13)-28,)
Dynamic array formulas.


ABCD
1
2b2c2etc
3b3c3etc
4b4c4etc
31
32b32c32etc
33b33c33etc
34b34c34etc
61
62b62c62etc
63b63c63etc
64b64c64etc
65
Option 1 Data
 
Upvote 0
Will this work for you:

ABCDEFG
1Month 1st2nd3rd4th5th
2Januaryb2c2etc00
3Februaryb32c32etc00
4Marchb62c62etc00
5April
6May
7June
8July
9August
10September
11October
12November
13December
14
15Januaryb3c3etc00
16Februaryb33c33etc00
17Marchb63c63etc00
18April
19May
20June
21July
22August
23September
24October
25November
26December
27
28Januaryb4c4etc00
29Februaryb34c34etc00
30Marchb64c64etc00
31April
32May
33June
34July
35August
36September
37October
38November
39December
Sheet1
Cell Formulas
RangeFormula
C28:AG30,C15:AG17,C2:AG4C2=INDEX('Option 1 Data'!B:AF,INT(ROWS(C$2:C2)/13)+30*MOD(ROWS(C$2:C2),13)-28,)
Dynamic array formulas.


ABCD
1
2b2c2etc
3b3c3etc
4b4c4etc
31
32b32c32etc
33b33c33etc
34b34c34etc
61
62b62c62etc
63b63c63etc
64b64c64etc
65
Option 1 Data
I'm sorry but can you explain what do to with that?
 
Upvote 0
I have given you a single formula for C2, which can replace the individual formulae you currently have in C2:G2 of your Option 1 Summary by PM sheet.

You can copy that single formula down to C2:C13, C15:C26, C28:C39 etc.

The Option 1 Data sheet I attached just has dummy data to illustrate which cells the formula is pointing to.

Did you know that you can click here, go to A1 in a blank worksheet, and paste the contents, including formulae?

1657665776310.png
 
Upvote 0
I doubt that from row B32, next left cell A32 has "A" or "B" ?
like:
row 32: A ----January
row 33: B ----January

If yes, another approach with SUMIF would be the best.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top