How to combine a set number of cells into next column and continue down

GratefullyDyed

New Member
Joined
Nov 26, 2016
Messages
27
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I need to combine a list of photo links into a group as such:
1663987722031.png

The links need to be separated by a comma with no space.
The number of links per cell will remain the same, but depending on the product I will have a different number of photos I need to combine, so it needs to be easy enough to adjust the number it combines. For example:

Product1 formula would need to combine cells:

C1,C2,C3,C4
C5,C6,C7,C8
Etc...

Product2 might need:

C1,C2
C3,C4,
Etc...

Got a way good way to do this?

Thank you for your help!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Upvote 0
Ok, how about
Fluff.xlsm
ABCD
1test 1test 1, test 2, test 3, test 4
2test 2test 5, test 6, test 7, test 8
3test 3test 9, test 10, test 11, test 12
4test 4test 13, test 14, test 15, test 16
5test 5test 17, test 18, test 19, test 20
6test 6
7test 7
8test 8
9test 9
10test 10
11test 11
12test 12
13test 13
14test 14
15test 15
16test 16
17test 17
18test 18
19test 19
20test 20
Data
Cell Formulas
RangeFormula
D1:D5D1=TEXTJOIN(", ",,INDEX($C$1:$C$20,ROWS(D$1:D1)*4-3):INDEX($C$1:$C$20,ROWS(D$1:D1)*4))

That looks like it should work. This is the solution I am using.
=TEXTJOIN(",",,OFFSET(C$1,ROW()*4-4,,4))

Thank you for your help!
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,301
Members
449,078
Latest member
nonnakkong

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