Split the Values by weekly with Condition

velu130486

Board Regular
Joined
Apr 4, 2014
Messages
99
Dear Seniors,

I would like to seek your help for solving my problem. I have created a Manning Plan by Monthly basis, Now I want to split the values by Weekly Basis as follows. My assumption is every month is having 4 Weeks averagely, so based on the value in months, it should return the results in weekly columns as follows

For Ex
M1 M2 M3
0.5 0.75 1

If the value is 0.5 then it should return the following results
WK1 WK2 WK3 WK4
0 0 0.25 0.25

If the value is 0.75 then it should return the following results
WK1 WK2 WK3 WK4
0 0.25 0.25 0.25

If the value is 1 then it should return the following results
WK1 WK2 WK3 WK4
0.25 0.25 0.25 0.25

If the value is less than 0.25 it should return the following results
WK1 WK2 WK3 WK4
0 0 0 0.25

Please help me to sort out this issue. Please let me know for any further calculations

Thanks and Regards
R. Vadivelan
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
something like this
Excel Workbook
BCDEFG
3wk 1wk 2wk 3wk 4
4month 10.5000.250.25
5month 20.7500.250.250.25
6month 310.250.250.250.25
7month 40.250000.25
8month 50.240000.25
Sheet1
 
Upvote 0
Dear Wilson,

Thanks for your quick reply. My case is similar to your example, but some modifications as follows

If the value is >0.75, then it should be divided by 4 Weeks and the value should appear in each week.
If the value is >0.5 and <0.75, then WK 1 should be 0, and for the remaining weeks value should be divided by 3
If the value is >0.25 and <0.5, then WK 1 & WK2 should be 0, and for the remaining weeks value should be divided by 2
If the value is <0.25, then WK 1, WK2 & WK3 should be 0, and for the value should appear in WK4

Please help me to sort out this issue. Actually this is required for preparing the Manning Plan, sometimes my manager put 0.4 for 1 person, that means that person will be mobilized in after mid of the month. So his value should appear only in last 2 weeks. Please let me know for any further clarifications

Thanks and Regards
R. Vadivelan
 
Upvote 0
as an actual division ? so 0.8 becomes 0.2 4 times? 0.7 becomes 0.23333 3 times
and 0.76 becomes 0.19 4 times
 
Upvote 0
Dear Wilson,

Sorry for missing the information.

If the value is >0.75, then it should be divided by 4 Weeks and the value should appear in each week.
If the value is >0.5 and =<0.75, then WK 1 should be 0, and for the remaining weeks value should be divided by 3
If the value is >0.25 and =<0.5, then WK 1 & WK2 should be 0, and for the remaining weeks value should be divided by 2
If the value is =<0.25, then WK 1, WK2 & WK3 should be 0, and for the value should appear in WK4

Thanks and Regards
R. Vadivelan
 
Upvote 0
ok attempt 2
Excel Workbook
ABCDEFGHIJK
1***********
2***********
3***wk 1wk 2wk 3wk 4**01
4*month 10.760.190.190.190.19**0.250000000012
5*month 20.7500.250.250.25**0.500000000013
6*month 310.250.250.250.25**0.750000000014
7*month 40.250000.25****
8*month 50.240000.24****
9*month 60.5000.250.25****
10*month 70.700.2333330.2333330.233333****
11*month 80.26000.130.13****
12*month 90.600.20.20.2****
Sheet1
 
Upvote 0
Dear Wilson,

Thanks for your reply. Your formula works like a gem. But I would like to ask you further improvements.

Actually in horizontal lines I have Name of the people and in vertical columns I have months like M1, M2 & M3 etc.,

Now for each month I have to split the values by 4 weeks as per your formula. Now after 4 weeks, M1 value should be changed to M2 and divide for 4 weeks then M2 value should change to M3 and divide for 4 weeks like that.

I had tried to modify your formula to suit my needs, but I am getting problem in

(4-MOD(COLUMNS($A:A)-1,4)

Thanks and Regards
R. Vadivelan
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,251
Members
449,093
Latest member
Vincent Khandagale

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