CreativeRova
New Member
- Joined
- Dec 12, 2013
- Messages
- 49
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Date
[/TD]
[TD]1/1/14
[/TD]
[TD]7/1/14
[/TD]
[TD]14/1/14
[/TD]
[TD]21/1/14
[/TD]
[TD]28/1/14
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Today
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date
[/TD]
[TD]13/12/13
[/TD]
[TD][/TD]
[TD]Sold
[/TD]
[TD]6
[/TD]
[TD]2
[/TD]
[TD]8
[/TD]
[TD]9
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bonus
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD]???????
[/TD]
[TD][/TD]
[TD]Total
[/TD]
[TD]8
[/TD]
[TD]3
[/TD]
[TD]11
[/TD]
[TD]12
[/TD]
[TD]13
[/TD]
[/TR]
</tbody>[/TABLE]
Hi Guys and Girls,
I am after a formula for the above sample table. In the total window with the question marks i need to show the total when todays date falls between the date ranges shown on the right. So as the date moves from 6/1/14 to 7/1/14 my total will go from 8 to 3.
Essentially i know the working but not the formula.
Equal to or greater than current date less than next date show total. If not move to next cell check again. I can do this at the moment but it requires 52 if commands for each week i would like to avoid that if possible. Also i have tried pivot tables and that doesn't seem to work as i will require the result to be used in another table. So Avoiding pivot tables would also be preferred.
Thanks
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Date
[/TD]
[TD]1/1/14
[/TD]
[TD]7/1/14
[/TD]
[TD]14/1/14
[/TD]
[TD]21/1/14
[/TD]
[TD]28/1/14
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Today
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Date
[/TD]
[TD]13/12/13
[/TD]
[TD][/TD]
[TD]Sold
[/TD]
[TD]6
[/TD]
[TD]2
[/TD]
[TD]8
[/TD]
[TD]9
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Bonus
[/TD]
[TD]2
[/TD]
[TD]1
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]Total
[/TD]
[TD]???????
[/TD]
[TD][/TD]
[TD]Total
[/TD]
[TD]8
[/TD]
[TD]3
[/TD]
[TD]11
[/TD]
[TD]12
[/TD]
[TD]13
[/TD]
[/TR]
</tbody>[/TABLE]
Hi Guys and Girls,
I am after a formula for the above sample table. In the total window with the question marks i need to show the total when todays date falls between the date ranges shown on the right. So as the date moves from 6/1/14 to 7/1/14 my total will go from 8 to 3.
Essentially i know the working but not the formula.
Equal to or greater than current date less than next date show total. If not move to next cell check again. I can do this at the moment but it requires 52 if commands for each week i would like to avoid that if possible. Also i have tried pivot tables and that doesn't seem to work as i will require the result to be used in another table. So Avoiding pivot tables would also be preferred.
Thanks