Need Help modifying a Formula

caribou48

New Member
Joined
May 26, 2011
Messages
5
Hello all ,

I have a rather complex forumula that was from a pre-existing sheet. I did not create the sheet. But it works very well.
Basically this formula counts all the Letters in a row I d like to modify it so it sums any numbers, and remove the weekday restriction
(We now have people on Saturday shifts)


01020304050607080910111213141516171819202122232425262728293031Leave
NameFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSun
BOB Smith7H0

<tbody>
</tbody>


Formula is in the LEAVE column
ATM it could count the letters we use to trace Holidays - H for Holiday
But we want to sum these now as we are tracking by hours . 7.5

=SUM(--NOT(ISNUMBER(IF(WEEKDAY(DATE($A$7,$A$8,OFFSET($A$10,0,31*($A$8-1)+1,1,31)),2)<=5,OFFSET(A13,0,31*($A$8-1)+1,1,31),0)))*--NOT(ISNUMBER(MATCH(DATE($A$7,$A$8,OFFSET($A$10,0,31*($A$8-1)+1,1,31)),Holidays!$B$2:$B$12,0))))+COUNT(OFFSET($A$10,0,31*($A$8-1)+1,1,31))-31


The sheets uses a form control scroll bar to slide from month to month,
and increase the month number in A8 , A7 contains the year.
The days and days of the week are then populated by another formula and a macro hids the relevant colums, Its a wonderfull sheet. But the formula is just a little to complex for me to edit
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,

With the risk of perhaps oversimplifying your question.

If you remove the weekday restriction from the old formula and you want the new formula to sum numbers; wouldn't those changes convert the old formula to just a regular SUM formula on the particular row.
 
Upvote 0
It would be difficult to de-chipher an existing formula and modify it without knowing the background

It would be better to post some sample data and expected result, along with the logic, to help us understand the problem and help you
 
Upvote 0
It would be difficult to de-chipher an existing formula and modify it without knowing the background

It would be better to post some sample data and expected result, along with the logic, to help us understand the problem and help you


Sample data is in the link above :)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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