If the responses are votes, I am not sure you can calculate a median. Are reponses 1, 2, 3 ordinal? If no the answer is no to a median.
Regards
Dav
If the responses are votes, I am not sure you can calculate a median. Are reponses 1, 2, 3 ordinal? If no the answer is no to a median.
Regards
Dav
Not sure about a single formula solution at the moment... but here is a way with some helper rows...
Assuming your data is in A1:C2
then in A3:
=IF(ROWS(A$3:$A3)>A$2,"",A$1) copied down as far as the most number of votes you would receive.
Then copy formulas to columns B and C
Then use: =MEDIAN(A3:C33)
where I have assumed up to 30 possible number of votes (ie. formula was dragged down to Row 33)
Maybe also possible with VBA.. but don't know how.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
If we assume your values are in B1:D2 then perhaps:
would work for you ?![]()
=MEDIAN(INDEX(B1*SIGN(ROW(A1:INDEX(A:A,B2))),0),INDEX(C1*SIGN(ROW(A1:INDEX(A:A,C2))),0),INDEX(D1*SIGN(ROW(A1:INDEX(A:A,D2))),0))
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks