JOIN Arrays in Formula

MrRajKumar

Active Member
Joined
Jan 29, 2008
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am using M365.

Below is my data setup.

A2:A10 - Item names, say A-I
B2:B10 - Its values, say 1-9

So in C2, I would like to get values joined as follows (A2 value space B2 value comma A3 space B3, A4 space B4 etc...)

A 1, B 2, C 3, D 4, E 5...I 9

Both this range has its own spill.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Thank you Paul.

How can I modify the formula if ranges are in horizontal;

A2:I2 & A3:I3
 
Upvote 0
How about
Excel Formula:
=TEXTJOIN({" ",", "},,WRAPROWS(TOCOL(A2:I3,,1),2))
 
Upvote 0
How about
Fluff.xlsm
ABCD
1
2A1A 1, B 2, C 3, D 4, E 5, F 6, G 7, H 8, I 9
3B2
4C3
5D4
6E5
7F6
8G7
9H8
10I9
Sheet5
Cell Formulas
RangeFormula
A2:A10A2=CHAR(SEQUENCE(9,,65))
B2:B10B2=SEQUENCE(9)
D2D2=TEXTJOIN({" ",", "},,A2#:B2#)
Dynamic array formulas.
You did not need to specify two separate ranges in your TEXTJOIN function call; this would also work...
=TEXTJOIN({" ",", "},,A2:B10)
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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