How Do I Find the MEDIAN if my Formula Meets Certain Criteria in Excel

znxm0i

New Member
Joined
May 27, 2014
Messages
29
Hello,

Can anyone show me how to write a formula that will find the MEDIAN of a group of numbers in one column related to specific criteria in another column? My business segment name data is located in column T and my days open numbers are located in column U. Below is the formula I've written thus far but I can't get it to work:

=MEDIAN(IF(QTR1_TA_TaleoData!$T$4:$T$170=QTR1_TA_TaleoData!$T$4:$T$170,"IOS",QTR1_TA_TaleoData!$U$4:$U$170))

Below is what I want the formula to do:

Look at the range $T$4:$T$170 on the QTR1_TA_TaleoData spreadsheet and find only those cells that contain a business segment name of IOS; once all the IOS business segment cells have been found, then tell me what the MEDIAN is for the numbers located in range $U$4:$U$170 on the QTR1_TA_TaleoData) spreadsheet for the IOS business segment.

Thank you.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Maybe...

Array formula
=MEDIAN(IF(QTR1_TA_TaleoData!$T$4:$T$170="IOS",QTR1_TA_TaleoData!$U$4:$U$170))
Ctrl+Shift+Enter

M.
 
Upvote 0
Maybe...

Array formula
=MEDIAN(IF(QTR1_TA_TaleoData!$T$4:$T$170="IOS",QTR1_TA_TaleoData!$U$4:$U$170))
Ctrl+Shift+Enter

M.

Thank you very much Marcelo worked like a charm! The snag I kept running into was that it wouldn't work with a merged cell either but it's working now. Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,148
Members
449,364
Latest member
AlienSx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top