9tanstaafl9
Well-known Member
- Joined
- Mar 23, 2008
- Messages
- 535
I'm sure there is probably an easy way to do this, but I can't wrap my head around it.
Say the beginning date in E4 = 2/2/14, the ending date in F4 = 4/5/14. I have columns headings listing the beginning and ending dates of each month, where L1 = 1/1/14 and L2 = 1/31/14, M1 = 2/1/14 etc.
I need a formula that will return the value of column K if any date in the range falls within the month above. So in this example, for row 4, the value would display in Feb (col M), March (col N) and April (col O).
How would I do that?
Right now I have this:
But that only gives me the starting month.
Any help appreciated. I am normally fairly smart but this is just stumping me.
Say the beginning date in E4 = 2/2/14, the ending date in F4 = 4/5/14. I have columns headings listing the beginning and ending dates of each month, where L1 = 1/1/14 and L2 = 1/31/14, M1 = 2/1/14 etc.
I need a formula that will return the value of column K if any date in the range falls within the month above. So in this example, for row 4, the value would display in Feb (col M), March (col N) and April (col O).
How would I do that?
Right now I have this:
Code:
=IF(AND([@strdte]>=L$1,[@strdte]<=L$2)=TRUE,[@Value],0)
But that only gives me the starting month.
Any help appreciated. I am normally fairly smart but this is just stumping me.