Binary by TextJoin

Fester675

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

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

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,027
Office Version
  1. 365
Platform
  1. Windows
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)))
 
Solution

Fester675

Board Regular
Joined
Sep 16, 2016
Messages
139
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
Joined
Jun 12, 2014
Messages
68,027
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top