Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ronny Hamida
 
Posts: n/a
Default "MEDIANIF" Array combining two ranges

I know that there have been many posts regarding using MEDIAN Arrays (in
place for the missing "MEDIANIF" function in Excel.)

I was wondering if it can be taken a step further! :)

Currently, I am using a median array that only performs the MEDIAN function
if the four left characters match what I specify, however can I specify two
sets of data instead of one? Here's what I have now:

{=MEDIAN(IF((LEFT('Sheet1'!$J$2:$J$5000,4)="1234") ,'Sheet1'!$A$2:$A$5000,""))}

As you can see, it is scanning the first four characters of column "J" and,
if it matches "1234" it will use the value in column "A" for the MEDIAN
function.

The problem is that I want to take the median of values that start with
"1234" and "5678" at the same time. Is this possible? I think I had already
tried a nested IF statement, but I'm thinking I did it incorrectly because I
got nothing from it.

As usual, thanks to everyone in advance!

Ronny Hamida
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Billigmeier
 
Posts: n/a
Default "MEDIANIF" Array combining two ranges

Yep, Array entered again:

=MEDIAN(IF(((LEFT('Sheet1'!$J$2:$J$5000,4)="1234") +(LEFT('Sheet1'!$J$2:$J$5000,4))="5678"),'Sheet1'! $A$2:$A$5000,""))

--
Regards,
Dave


"Ronny Hamida" wrote:

I know that there have been many posts regarding using MEDIAN Arrays (in
place for the missing "MEDIANIF" function in Excel.)

I was wondering if it can be taken a step further! :)

Currently, I am using a median array that only performs the MEDIAN function
if the four left characters match what I specify, however can I specify two
sets of data instead of one? Here's what I have now:

{=MEDIAN(IF((LEFT('Sheet1'!$J$2:$J$5000,4)="1234") ,'Sheet1'!$A$2:$A$5000,""))}

As you can see, it is scanning the first four characters of column "J" and,
if it matches "1234" it will use the value in column "A" for the MEDIAN
function.

The problem is that I want to take the median of values that start with
"1234" and "5678" at the same time. Is this possible? I think I had already
tried a nested IF statement, but I'm thinking I did it incorrectly because I
got nothing from it.

As usual, thanks to everyone in advance!

Ronny Hamida

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ronny Hamida
 
Posts: n/a
Default "MEDIANIF" Array combining two ranges

It works! Thank you, Dave!

Ronny

"David Billigmeier" wrote:

Yep, Array entered again:

=MEDIAN(IF(((LEFT('Sheet1'!$J$2:$J$5000,4)="1234") +(LEFT('Sheet1'!$J$2:$J$5000,4))="5678"),'Sheet1'! $A$2:$A$5000,""))

--
Regards,
Dave


"Ronny Hamida" wrote:

I know that there have been many posts regarding using MEDIAN Arrays (in
place for the missing "MEDIANIF" function in Excel.)

I was wondering if it can be taken a step further! :)

Currently, I am using a median array that only performs the MEDIAN function
if the four left characters match what I specify, however can I specify two
sets of data instead of one? Here's what I have now:

{=MEDIAN(IF((LEFT('Sheet1'!$J$2:$J$5000,4)="1234") ,'Sheet1'!$A$2:$A$5000,""))}

As you can see, it is scanning the first four characters of column "J" and,
if it matches "1234" it will use the value in column "A" for the MEDIAN
function.

The problem is that I want to take the median of values that start with
"1234" and "5678" at the same time. Is this possible? I think I had already
tried a nested IF statement, but I'm thinking I did it incorrectly because I
got nothing from it.

As usual, thanks to everyone in advance!

Ronny Hamida

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Combining specific ranges from multiple worksheets into one simora Excel Worksheet Functions 0 May 31st 05 12:39 AM
Create a Chart with Values from Array AND NOT from Ranges syrhus Charts and Charting in Excel 5 March 19th 05 02:37 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 06:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"