+ Reply to Thread
Results 1 to 17 of 17

Median formula with multiple criteria (or not and) and partial text in a cell

Hybrid View

  1. #1
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Median formula with multiple criteria (or not and) and partial text in a cell

    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: copy to clipboard
    =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.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  2. #2
    Registered User
    Join Date
    12-27-2018
    Location
    South Florida, U.S.
    MS-Off Ver
    2010
    Posts
    9

    Re: Median formula with multiple criteria (or not and) and partial text in a cell

    Glenn!!! You are amazing! I have no idea how that formula works, but it does...perfectly! Thank you!

    I think this might be the last related question for a little while...how do I pull the median of all the properties that don't include those grocers in the name range (Stores)? In other words, show me the median of everything but those grocers.

    Thanks so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Median multiple criteria vba
    By serir2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2016, 07:55 AM
  2. Is there a formula that will populate a cell w/ TEXT based on multiple criteria?
    By violenttuesday in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2014, 03:46 PM
  3. [SOLVED] VLOOKUP-type formula required for partial text matche in multiple spreadsheets
    By JAMES_G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2013, 04:33 PM
  4. Trying Sumproduct with multiple criteria 1) greater than, or 2) partial text
    By Groovicles in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 08-19-2013, 11:11 AM
  5. YTD Median using Multiple Criteria
    By Decatur83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2013, 09:00 AM
  6. median if with multiple criteria
    By coffee_man in forum Excel General
    Replies: 2
    Last Post: 10-20-2011, 06:36 AM
  7. Replies: 2
    Last Post: 10-30-2007, 12:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1