COUNT two or more consecutive text values and check each if it's +/- than a value

aspasovski86

New Member
Joined
Aug 21, 2018
Messages
2
Hi,
I dont know if the topic represents the real thing I want, so here is an explanation...I have these entries in my worksheet:

MTuWThFSaSuMTuWThFSaSuMTuWThFSaSuMTuWThFSaSuMTuW
Consecutive days of Illness form previous month<strike></strike>
12345678910111213141516171819202122232425262728293031
25ILILILILILILILIL12xx12xx12xxILILILILILIL12xx1

<tbody>
</tbody>










This is a shift table from one employee... ,The upper rows are the days of the month, and down is the row that represents the shifts. Among the regular shifts the employee might be absent because of an illness. The first column represents the days of illness from the previous month (manually entered, if he had any). and with IL are presented the days of illness for the current month. What I want to do in the following table:
<=7<strike></strike>
<strike></strike>40 (expected value from the shift table)<strike></strike>
8-30<strike></strike>
<strike></strike>0 (expected value from the shift table)<strike></strike>
31>=<strike></strike>
<strike></strike>48 (expected value from the shift table)<strike></strike>

<tbody>
</tbody>
<strike></strike>





Is to count the different periods of illness. check if every of them are less then 7, between 8 and 30 or 31+ consecutive days, multiply by 8 (as a regular working day) and place them into the right column respectively. When multiplying as a regular working days it should count and multiply only if it is a workday, but not weekends (Saturday and Sunday). This is necessary because different period of illness is paid differently (from the company, from the health insurance etc.)
I tried to do something by using Frequency function, but I stuck, searched thru internet for a solution, and could find any,,,,
Hope someone has it....
Thanks in advance :eek:
Regards
Aleksandar
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Cross posted https://www.excelforum.com/excel-fo...alues-and-check-each-if-its-than-a-value.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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