Offset formula (I think) help needed

ScottNoddin8

New Member
Joined
Jun 19, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am having trouble setting up some relative cell references. I have two spreadsheets. One has a list of names on it (from A1 - A50) and the other sheet (Sheet2) is tracking statistics for 12 different stats for each name. The names on Sheet 1 are constantly changing so I need to come up with a formula for Sheet 2 that I can copy down so the first name shows up 12 times and then moves onto the next cell. I have tried the offset formula with not much success.

Basically in this situation A2 through A13 (A1 is the header) on Sheet 2 should equal A2 on Sheet 1 and A14 through A25 should equal A3 on Sheet 1, etc.

It seems like it should be simple but I am struggling to come up with something. I appreciate the help!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
For Sheet1 that looks like this:
Book1
A
1Name1
2Name2
3Name3
4Name4
5Name5
6Name6
7Name7
8Name8
9Name9
10Name10
11Name11
12Name12
13Name13
14Name14
15Name15
16Name16
17Name17
18Name18
19Name19
20Name20
Sheet1

Is this what you want for Sheet2?
Book1
A
1Name1
2Name1
3Name1
4Name1
5Name1
6Name1
7Name1
8Name1
9Name1
10Name1
11Name1
12Name1
13Name2
14Name2
15Name2
16Name2
17Name2
18Name2
19Name2
20Name2
21Name2
22Name2
23Name2
24Name2
25Name3
26Name3
Sheet2
Cell Formulas
RangeFormula
A1:A240A1=INDEX(Sheet1!A1:A20,SEQUENCE(12*COUNTA(Sheet1!A1:A20),,,1/12))
Dynamic array formulas.

The formula will "spill" down to populate 12 times for each name.
 
Upvote 0
Will this do what you want?

021623 Misc.xlsx
ABCD
1NamesRepeat
2JohnJohn3
3MaryJohn
4BillJohn
5WilliamMary
6JacksonMary
7SusanneMary
8Bill
9Bill
10Bill
11William
12William
13William
14Jackson
15Jackson
16Jackson
17Susanne
18Susanne
19Susanne
Sheet21
Cell Formulas
RangeFormula
B2:B19B2=LET(in,A2:A7,rep,D2,s,SEQUENCE(ROWS(in)*rep,1,0),INDEX(in,QUOTIENT(s,rep)+1))
Dynamic array formulas.
 
Upvote 0
Another option
Fluff.xlsm
A
1
2Name 1
3Name 2
4Name 3
5Name 4
6Name 5
7Name 6
8Name 7
9Name 8
Sheet1


Fluff.xlsm
A
1
2Name 1
3Name 1
4Name 1
5Name 1
6Name 1
7Name 1
8Name 1
9Name 1
10Name 1
11Name 1
12Name 1
13Name 1
14Name 2
15Name 2
16Name 2
17Name 2
18Name 2
19Name 2
20Name 2
21Name 2
22Name 2
23Name 2
24Name 2
25Name 2
26Name 3
27Name 3
28Name 3
29Name 3
30Name 3
31Name 3
32Name 3
33Name 3
34Name 3
35Name 3
36Name 3
37Name 3
38Name 4
Sheet2
Cell Formulas
RangeFormula
A2:A97A2=TOCOL(IF(SEQUENCE(,12),Sheet1!A2:A9))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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