Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DrB DrB is offline
external usenet poster
 
Posts: 20
Default Second largest in array of difference in high-low values in cells

Using Excel 2002 to try to find second largest number from 10 numbers, which
are calculated from the high and low values of the day. Used Large Function
but comes up with error even when I cut down the quantity of numbers.

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1
etc
Correct answer would be 2.0 for the second largest number, but how do I get
Excel to calculate this?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Second largest in array of difference in high-low values in cells

Hi,

What error does Large give?

=Large(a1:a100,2) would return the second largest even if there were blanks
or text in the range

Mike

"drb" wrote:

Using Excel 2002 to try to find second largest number from 10 numbers, which
are calculated from the high and low values of the day. Used Large Function
but comes up with error even when I cut down the quantity of numbers.

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1
etc
Correct answer would be 2.0 for the second largest number, but how do I get
Excel to calculate this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Second largest in array of difference in high-low values in cells

Array entered** :

=LARGE(A1:A5-B1:B5,2)

=2

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"drb" wrote in message
...
Using Excel 2002 to try to find second largest number from 10 numbers,
which are calculated from the high and low values of the day. Used Large
Function but comes up with error even when I cut down the quantity of
numbers.

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1
etc
Correct answer would be 2.0 for the second largest number, but how do I
get Excel to calculate this?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DrB DrB is offline
external usenet poster
 
Posts: 20
Default Second largest - to all

Unfortunately the rows of numbers do not follow each other. There are other
values in between then so I can not us A1:Z1 array indications. This is
probably why it comes up with error since I want something like:
Large((A1-B1)-(AA1-AB1), (BA1-BB1),(CA1-CB1),(DA1-DB1),(EA1-DB1), 2)

Any possibilities of coming up with solution?

"drb" wrote in message
...
Using Excel 2002 to try to find second largest number from 10 numbers,
which are calculated from the high and low values of the day. Used Large
Function but comes up with error even when I cut down the quantity of
numbers.

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1
etc
Correct answer would be 2.0 for the second largest number, but how do I
get Excel to calculate this?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Second largest - to all

Make a new (consecutive) range in which you pull the values from the original ranges and use that in your formula

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"drb" wrote in message ...
| Unfortunately the rows of numbers do not follow each other. There are other
| values in between then so I can not us A1:Z1 array indications. This is
| probably why it comes up with error since I want something like:
| Large((A1-B1)-(AA1-AB1), (BA1-BB1),(CA1-CB1),(DA1-DB1),(EA1-DB1), 2)
|
| Any possibilities of coming up with solution?
|
| "drb" wrote in message
| ...
| Using Excel 2002 to try to find second largest number from 10 numbers,
| which are calculated from the high and low values of the day. Used Large
| Function but comes up with error even when I cut down the quantity of
| numbers.
|
| Example:
| 10-8=2.0
| 10.2-8=2.2
| 9.5-8.5=1.0
| 9.5-9.3=0.2
| 10.2-10.1=0.1
| etc
| Correct answer would be 2.0 for the second largest number, but how do I
| get Excel to calculate this?
|
|
|




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DrB DrB is offline
external usenet poster
 
Posts: 20
Default Second largest - to all THANK YOU

Yes, that works and is simpler than other suggestions. Thank you.

"Niek Otten" wrote in message
...
Make a new (consecutive) range in which you pull the values from the
original ranges and use that in your formula

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"drb" wrote in message
...
| Unfortunately the rows of numbers do not follow each other. There are
other
| values in between then so I can not us A1:Z1 array indications. This is
| probably why it comes up with error since I want something like:
| Large((A1-B1)-(AA1-AB1), (BA1-BB1),(CA1-CB1),(DA1-DB1),(EA1-DB1), 2)
|
| Any possibilities of coming up with solution?
|
| "drb" wrote in message
| ...
| Using Excel 2002 to try to find second largest number from 10 numbers,
| which are calculated from the high and low values of the day. Used
Large
| Function but comes up with error even when I cut down the quantity of
| numbers.
|
| Example:
| 10-8=2.0
| 10.2-8=2.2
| 9.5-8.5=1.0
| 9.5-9.3=0.2
| 10.2-10.1=0.1
| etc
| Correct answer would be 2.0 for the second largest number, but how do
I
| get Excel to calculate this?
|
|
|




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Second largest - to all

Large((A1-B1)-(AA1-AB1), (BA1-BB1),(CA1-CB1),(DA1-DB1),(EA1-DB1), 2)

Your references follow a pattern. Try this array formula** :

=LARGE(IF((MOD(COLUMN(A1:DA1),26)=1)*(MOD(COLUMN(B 1:DB1),26)=2),A1:DA1-B1:DB1),2)

Note how the references are offset!

Based on you example:

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1


Whe

A1...B1...AA1...AB1...BA1...BB1...CA1...CB1...DA1. ..DB1
10....8.....10.2......8......9.5......8.5.....9.5. .....9.3....10.2....10.1
.........2................2.2.................1... ...............0.2.................0.1



--
Biff
Microsoft Excel MVP


"drb" wrote in message
...
Unfortunately the rows of numbers do not follow each other. There are
other values in between then so I can not us A1:Z1 array indications. This
is probably why it comes up with error since I want something like:
Large((A1-B1)-(AA1-AB1), (BA1-BB1),(CA1-CB1),(DA1-DB1),(EA1-DB1), 2)

Any possibilities of coming up with solution?

"drb" wrote in message
...
Using Excel 2002 to try to find second largest number from 10 numbers,
which are calculated from the high and low values of the day. Used Large
Function but comes up with error even when I cut down the quantity of
numbers.

Example:
10-8=2.0
10.2-8=2.2
9.5-8.5=1.0
9.5-9.3=0.2
10.2-10.1=0.1
etc
Correct answer would be 2.0 for the second largest number, but how do I
get Excel to calculate this?





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
Reference to the N-largest value in an array [email protected] Excel Worksheet Functions 4 August 31st 07 10:13 AM
find largest values, then return corresponding row values. neurotypical Excel Discussion (Misc queries) 7 May 24th 06 10:27 PM
Find the difference between the high & low value of a given set. Larry Excel Discussion (Misc queries) 3 January 27th 06 10:26 PM
How to find the largest product of an array of values? ryesworld Excel Worksheet Functions 3 December 2nd 05 06:09 PM
Percentage difference calc that knows the largest figure Mighty Magpie Excel Discussion (Misc queries) 3 November 10th 05 06:45 PM


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