+ Reply to Thread
Results 1 to 3 of 3

MedianIf... using Lookup?

Hybrid View

lady_Jane MedianIf... using Lookup? 07-05-2011, 10:54 AM
Domski Re: MedianIf... using Lookup? 07-05-2011, 10:59 AM
lady_Jane Re: MedianIf... using Lookup? 07-05-2011, 11:50 AM
  1. #1
    Registered User
    Join Date
    06-17-2011
    Location
    Huntsville, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    12

    Question MedianIf... using Lookup?

    Hi everyone,
    I have 2 columns, one contains a number and the other contains either 1 or 0. I want to calculate the median of all the values in the first column for which the value in the second column is 1.
    I have tried using the Lookup function and I cannot get it to correctly identify even one of the values.

    Any help is appreciated, thanks
    Last edited by lady_Jane; 07-05-2011 at 11:54 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: MedianIf... using Lookup?

    Try: =MEDIAN(IF(B1:B1000=1,A1:A1000))

    Confirmed with Ctrl+Shift+Enter rather than just Enter as it's an array formula.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    06-17-2011
    Location
    Huntsville, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    12

    Smile Re: MedianIf... using Lookup?

    That worked perfectly! Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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