Hi Guys,
Can anyone help me with finding median of count for a given month. I have tried something but this formula gives me incorrect result.
Appreciate your help on this. please find attached sample file with data.
Hi Guys,
Can anyone help me with finding median of count for a given month. I have tried something but this formula gives me incorrect result.
Appreciate your help on this. please find attached sample file with data.
=MEDIAN(IF(A2:A12=H2,IF(B2:B12=I2,IF(D2:D12>=EOMONTH(J2,-1)+1,IF(D2:D12<=EOMONTH(J2,0),E2:E12)))))
Try this array formula
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
=MEDIAN(IF(A2:A12=H2,IF(C2:C12=K2,IF(B2:B12=I2,IF(D2:D12>=EOMONTH(J2,-1)+1,IF(D2:D12<=EOMONTH(J2,0),E2:E12))))))
Take this array formula
Priority was not taken in to consideration in the above formula
I think Your Date in Cell J2 is 01-03-2015
So that it is calculating for March Month
Please enter any date of Feb'15 month then it will give correct answer
Ok for 01/03/2015, what is the date period to look for
and if it is 05/03/2015, what is the date period to look for
It will always be first date of the month.I need to find median of previous month data.
Then try this array formula
=MEDIAN(IF(A2:A12=H2,IF(C2:C12=K2,IF(B2:B12=I2,IF(D2:D12>=EOMONTH(J2,-2)+1,IF(D2:D12<=EOMONTH(J2,-1),E2:E12))))))
Then try below array formula
=MEDIAN(IF(ISNUMBER(SEARCH(A2:A12,H2)),IF(C2:C12=K2,IF(B2:B12=I2,IF(D2:D12>=EOMONTH(J2,-2)+1,IF(D2:D12<=EOMONTH(J2,-1),E2:E12))))))
But one think, it will not give correct answer if you have class like, A,AA,AAA, Since you are using search function, A,AA & AAA all 3 will match with class criteria
If you have any problem with the above, please reattach your excel file with all possible examples
Thanks man!
you are welcome
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks