LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default need some help with an array function

On 2 Jan 2006 17:32:28 -0800, "Lorin" wrote:

I want to replace a calculated column (Dif in example below), with an
array. I want to create the fourth column (Ranking) without having the
third column (Dif).

EXAMPLE:
A B Dif Ranking
12 11 1 1
34 22 12 4
16 12 4 2
18 13 5 3

Dif is A2-B2 for row 2, A3-B3 for row 3, etc.

My plan was to use =rank(A2-B2,A2:A5-B2:B5,0) and hit Ctrl+Shift+Enter
to tell it that A2:A5-B2:B5 is an array, but it isn't working. (Excel
won't let me enter that formula at all.) =rank(A2-B2,C2:C5,0) works as
expected. Obviously, I could calculate column C and hide it but this is
not what I want to do.

Can somebody help? This is a simpler problem then the one I recently
posted, but I think related (and makes me think the other is not
related to ISNA after all).


You could try this array formula:

=MATCH(A2-B2,SMALL($A$2:$A$5-$B$2:$B$5,
ROW(INDIRECT("1:"&ROWS($A$2:$A$5)))),0)


--ron
 
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
Please add an INTERPOLATE function. For vector or array data. Dan Gauthier Excel Worksheet Functions 15 August 4th 09 01:48 PM
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
Using AND function within an array formula Andrew L via OfficeKB.com Excel Worksheet Functions 3 August 1st 05 06:49 PM
Array Function with VLOOKUP CoRrRan Excel Worksheet Functions 15 April 8th 05 05:54 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 09:53 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"