JMHoustonTX
New Member
- Joined
- Nov 3, 2014
- Messages
- 4
Hello, I am stumped! I need help to calculate the median value in Column B if Date in Column A is within a certain month.
For Instance:
A B
1 1/1/2014 34
2 2/5/2014 45
3 1/27/2014 15
4 1/15/2014 7
5 2/27/2014 15
The median for January would be 15.
I thought I could use this:
{=median(if(sumproduct((A:A>=datevalue("1/1/2014"))*(A:A<=datevalue("1/31/2014))),b:b)}
This returns the median for all of column B. Anyone have any ideas?
Thank you!
For Instance:
A B
1 1/1/2014 34
2 2/5/2014 45
3 1/27/2014 15
4 1/15/2014 7
5 2/27/2014 15
The median for January would be 15.
I thought I could use this:
{=median(if(sumproduct((A:A>=datevalue("1/1/2014"))*(A:A<=datevalue("1/31/2014))),b:b)}
This returns the median for all of column B. Anyone have any ideas?
Thank you!