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)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]current week[/TD]
[TD]Week 8_13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]name[/TD]
[TD]Start date[/TD]
[TD]start week[/TD]
[TD]Paid
Weeks[/TD]
[TD]Week 1_13[/TD]
[TD]Week 2_13[/TD]
[TD]Week 3_13[/TD]
[TD]Week 4_13[/TD]
[TD]Week 5_13[/TD]
[TD]Week 6_13[/TD]
[TD]Week 7_13[/TD]
[TD]Week 8_13[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 1_13[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 3_13[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 7_13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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)
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]current week[/TD]
[TD]Week 8_13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]name[/TD]
[TD]Start date[/TD]
[TD]start week[/TD]
[TD]Paid
Weeks[/TD]
[TD]Week 1_13[/TD]
[TD]Week 2_13[/TD]
[TD]Week 3_13[/TD]
[TD]Week 4_13[/TD]
[TD]Week 5_13[/TD]
[TD]Week 6_13[/TD]
[TD]Week 7_13[/TD]
[TD]Week 8_13[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 1_13[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 3_13[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD]Week 7_13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Example[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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