I set up a named range (CTRL-F3) to pick up the store names for inclusion from G8 to G15. The formula used is:
=Raw!$G$8:INDEX(Raw!$G$8:$G$15,COUNTA(Raw!$G$8:$G$15))
This will pick up ONLY the cells in that range with a value, but ensure that there are NO gaps between stores chosen.
Then, this array formula:
Formula:
=MEDIAN(IF(MMULT(IFERROR((SEARCH(TRANSPOSE(Stores),Raw!$C$2:$C$17)>0)+0,0),(ROW(Stores)>0)+0)>0,IF($E$2:$E$17<>"Under Construction",Raw!$D$2:$D$17)))
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
You're welcome.
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
Bookmarks