# Help With Mconcat Formula

#### CARBOB

##### Well-known Member
Using the formula in Col "B" to read the 3-digit number in Col "A". Using 0,1,2,3,4= L and 5,6,7,8,9 = H B2 should be LLL,B3 LHH, B5 LHL
B6 LHH

Carbob
DOUBLESMIRRORSTOTALSMASTER A.xls
ABCD
2243LLL9
3459LLL18
4404LLL8
5394LLL16
6358LLL16
FILTERS

### Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

##### MrExcel MVP
=MCONCAT(IF(--(MID(A2,{1,2,3},1))<5,"L","H"))

#### Joe Was

##### MrExcel MVP
Do you mean:

CONCATENATE (text1,text2,...)

or

= A1 & B1

"MCONCAT" I never heard of?

##### MrExcel MVP
Hi Joe,

""MCONCAT" I never heard of?"

#### Joe Was

##### MrExcel MVP

Thanks I forgot about that addin. Only used "VSORT" from it, most of the others I just write my own code for.

#### CARBOB

##### Well-known Member
That worked great PaddyD, thanks. Someone else learned something too. LOL

Carbob

##### MrExcel MVP
=MCONCAT(IF(--(MID(A2,{1,2,3},1))<5,"L","H"))

=REGEX.SUBSTITUTE(REGEX.SUBSTITUTE(A2,"0|1|2|3|4","L"),"5|6|7|8|9","H")

CARBOB:

Why don't you invoke in D2:

=SUM((MID(A2,{1,2,3},1)+0))

#### CARBOB

##### Well-known Member
=MCONCAT(IF(--(MID(A2,{1,2,3},1))<5,"L","H"))

=REGEX.SUBSTITUTE(REGEX.SUBSTITUTE(A2,"0|1|2|3|4","L"),"5|6|7|8|9","H")

CARBOB:

Why don't you invoke in D2:

=SUM((MID(A2,{1,2,3},1)+0))

Thanks Aladin, I will do that.
Carbob

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,052
Messages
5,835,144
Members
430,342
Latest member
Sailingexcel

### 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.

### Which adblocker are you using?

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

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