Results 1 to 17 of 17

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

Threaded View

  1. #2
    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

    The problem is the blanks in column A. In F2, copied down:

    =IF(A2="",F1,A2)

    then

    =MEDIAN(IF(ISNUMBER(SEARCH(G2,$C$2:$C$17)),IF($F$2:$F$17<>"Under Construction",$D$2:$D$17,"")))

    and

    =MEDIAN(IF(ISNUMBER(SEARCH(G5,$C$2:$C$17)),IF($F$2:$F$17<>"Under Construction",$D$2:$D$17,"")))

    Both are array formulae.


    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...
    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

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