Add 2hours if specific text is in cell

capitano10

New Member
Joined
May 22, 2019
Messages
20
I would need to find a formula to add 2 hours to a monthly total if a specific text is in a cell.

Basically i would need to add 2 hours per every working day in the cell Cut Hours in red

Many hanks for the help
 

Attachments

  • Capture.PNG
    Capture.PNG
    12.3 KB · Views: 17

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I would need to find a formula to add 2 hours to a monthly total if a specific text is in a cell.

Basically i would need to add 2 hours per every working day in the cell Cut Hours in red

Many hanks for the help
Your request is not clear. What is the specific text, depending on the 2 hours should be added in the cell Cut Hours?
 
Upvote 0
specific text would be the shift time 9-17.30 or 7-15.30 and for every working our i would need to add 2 hours in the cut hours at the end of the month.

Basically i would need to know how many extra 2 hours the consultant would have to work in a month

Hope is clear thanks
 
Upvote 0
specific text would be the shift time 9-17.30 or 7-15.30 and for every working our i would need to add 2 hours in the cut hours at the end of the month.

Basically i would need to know how many extra 2 hours the consultant would have to work in a month

Hope is clear thanks
Considering that you use constantly the above transcript / syntax for the time substring (keeping the "-" separator between the start and the end time), and each working day should include 2 additional hours, see the next:
Book1
A
1In 7.00 - 15.30
2Off
3Off
4extra day Back
5In 9.00 - 17.30
6AAAAA 7.00 - 15.30
7Off
8extra day Back
9B / HOL
10In 9.00 - 17.30
11In 9.00 - 17.30
12B / HOL
13In 9.00 - 17.30
14In 7.00 - 15.30
15In 7.00 - 15.30
16B / HOL
17Off
180000 9.00 - 17.30
19Off
20Off
21HOLIDAY
22HOLIDAY
23HOLIDAY
24HOLIDAY
25HOLIDAY
26Off
27Off
28HOLIDAY
29In 7.00 - 15.00
30In 7.00 - 15.00
3122
Sheet1
Cell Formulas
RangeFormula
A31A31=SUMPRODUCT(LEN(A1:A30)-LEN(SUBSTITUTE(A1:A30,"-","")))*2
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,688
Members
449,117
Latest member
Aaagu

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