Binary by TextJoin

Fester675

Board Regular
Joined
Sep 16, 2016
Messages
141
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?

1619509502573.png
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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)))
 
Upvote 0
Solution
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!!
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,239
Members
448,951
Latest member
jennlynn

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