# Binary by TextJoin

#### Fester675

##### Board Regular
I have converted daily working into binary (C2:C43), this is then relative to ePayfact Code (B2:B43)
Col E is an actual work pattern which needs an ePayfact Code allocating to it. If col E starts with "37","37Hrs","37 Hrs" then col G = FT (B42)
However Row 21 = "32.64Hrs" and it brings in FT.

Formulas used are as follows -
F2 - =TEXTJOIN("",,ISNUMBER(SEARCH("(* "&{"Sn","M","T","W","Th","F","S"}&"=* *)",SUBSTITUTE(SUBSTITUTE(E2,"(","( "),")"," )")))+0)
G2 - =IF(ISNUMBER(SEARCH("37*",E2)),\$B\$42,INDEX(\$B\$2:\$B\$43,MATCH(F2,\$C\$2:\$C\$43,0)))

There are a few examples of this throughout the table - is it something to do with it being a circular reference? I'm completely at a loss as to how to resolve this now!
Also Row 37 - it is a 2 week working pattern, 4 days each week. But the result is 501, suggesting they work 5 days - as the days differ from wk1 to wk2 - is there any way around this?

### Excel Facts

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

#### Fluff

##### MrExcel MVP, Moderator
You are getting the problem on row 21 as it has 8.37 & the formula is seeing the 37 try using
Excel Formula:
``=IF(LEFT(E2,2)="37",\$B\$42,INDEX(\$B\$2:\$B\$43,MATCH(F2,\$C\$2:\$C\$43,0)))``

#### Fester675

##### Board Regular
You are getting the problem on row 21 as it has 8.37 & the formula is seeing the 37 try using
Excel Formula:
``=IF(LEFT(E2,2)="37",\$B\$42,INDEX(\$B\$2:\$B\$43,MATCH(F2,\$C\$2:\$C\$43,0)))``
Thank you Fluff - works a treat!!

#### Fluff

##### MrExcel MVP, Moderator
You're welcome & thanks for the feedback.

Replies
1
Views
125
Replies
3
Views
491
Replies
0
Views
359
Replies
1
Views
279
Replies
0
Views
62

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,151,972
Messages
5,767,397
Members
425,410
Latest member
SmittyT

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