Concatenate and Combine numbers.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
Hi everyone,

I'm asking for 2 formulas in this same post because it's linked together otherwise let me know and I will start a second tread for the second one, Thank ou all for any help.

The first formulas need to start in K3, across and down, that will combine C3:E7 with G3:I7 which should return the results in K3:P7 ( in yellow ).

The second formula need to combine the numbers in K3:P7 in sets of 5 numbers, which the return are in R3:V15 ( Blue )

Picture 2.PNG
 
Thanks to Eric's great formulas.
Here is my version

Cell Formulas
RangeFormula
K3:S7K3=IFERROR(SMALL(IF($C3:$E3*TRANSPOSE($G3:$I3),$C3:$E3*10+TRANSPOSE($G3:$I3)),COLUMNS($K3:K3)),"")
U3:Y17U3=IF(ROWS(U$3:U3)>PRODUCT(MMULT(N($K$3:$S$7<""),ROW($U$3:$U$11)^0)),"",INDEX($K$3:$S$7,COLUMNS($U3:U3),MOD((ROWS(U$3:U3)-1)/MAX(1,PRODUCT(MMULT(N(INDEX($K$3:$K$8,COLUMNS($U3:U3)+1):$S$7<""),ROW($U$3:$U$11)^0))),COUNT(INDEX($K$3:$S$7,COLUMNS($U3:U3),)))+1))
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks to Eric's great formulas.
Here is my version

Nice! I always get a kick when people collaborate and throw out ideas, and modify, and adapt, and get something that is better than any individual offering. One thought: the K3 formula here requires that the values in C:E and G:I be in ascending order. That's the case in this example, so that's probably ok.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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