ILikeCakes
New Member
- Joined
- Apr 1, 2014
- Messages
- 9
Hi guys,
I've been working on the for 3 days now and cannot find a solution.
what i need to achieve is the following
I need a formula to count (Paid Weeks) how many cells for each row have a value higher than 0, between the Week Ranges (Week 1_13 etc) in the top row, based on the "Start week" & "Current Week.
for example the first example started in Week 1_13 and has a value in each week until the current Week 8_13, which equates to 8 (Paid Weeks)
in the second example the start week is Week 3_13, and there is a value greater than 0 for 5 weeks up to the current week, which in this instance would equate to 5 (Paid Week)
I'm sure you get the gist by now.
the format below is near on identical to whats used in my workbook.
I have tried countifs, sumproducts, arrays, but i cannot get this to work correctly.
the below countifs is the closest i have come but in areas it counts the Week Ranges instead of the intended row.
D10 represents the Start week of Row
D7 is the current week.
=COUNTIFS(H10:O10,">0",H9:O9,">="&D10,H9:O9,"<="&D7)
<tbody>
</tbody>
Thanks in advance for anyone able to help on this one. I'm sure it's something simple but i just cant get my head around it.
Thanks again
I've been working on the for 3 days now and cannot find a solution.
what i need to achieve is the following
I need a formula to count (Paid Weeks) how many cells for each row have a value higher than 0, between the Week Ranges (Week 1_13 etc) in the top row, based on the "Start week" & "Current Week.
for example the first example started in Week 1_13 and has a value in each week until the current Week 8_13, which equates to 8 (Paid Weeks)
in the second example the start week is Week 3_13, and there is a value greater than 0 for 5 weeks up to the current week, which in this instance would equate to 5 (Paid Week)
I'm sure you get the gist by now.
the format below is near on identical to whats used in my workbook.
I have tried countifs, sumproducts, arrays, but i cannot get this to work correctly.
the below countifs is the closest i have come but in areas it counts the Week Ranges instead of the intended row.
D10 represents the Start week of Row
D7 is the current week.
=COUNTIFS(H10:O10,">0",H9:O9,">="&D10,H9:O9,"<="&D7)
current week | Week 8_13 | ||||||||||
name | Start date | start week | Paid Weeks | Week 1_13 | Week 2_13 | Week 3_13 | Week 4_13 | Week 5_13 | Week 6_13 | Week 7_13 | Week 8_13 |
Example | Week 1_13 | 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
Example | Week 3_13 | 5 | 1 | 1 | 1 | 0 | 1 | 1 | |||
Example | Week 7_13 | 1 | 1 | ||||||||
Example |
<tbody>
</tbody>
Thanks in advance for anyone able to help on this one. I'm sure it's something simple but i just cant get my head around it.
Thanks again