Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Find second highestsalesprice

I have a spreadsheet:

Price Status
100
120 Sold
115 Sold
130
140 Sold

Now I try to find the seocnd larges amout something is sold for. I
have tried something like

=SUMPRODUCT((B2:B6="Sold")*(A2:A6=LARGE(A2:A6;2))* (A2:A6)

or

=IF(C2:C15="solgt";LARGE(D2:D15;2))

entered as an array formula, but both (other attempts as well) returns
130 (the second highest price) where it should return120 (second
highes price, sold).

Any suggestions?

Jan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Find second highestsalesprice

would this help (array-entered):

=LARGE(IF(C2:C15="sold";D2:D15;);2))


On 25 Lut, 09:39, wrote:
I have a spreadsheet:

Price * *Status
100
120 * * * Sold
115 * * * Sold
130
140 * * * Sold

Now I try to find the seocnd larges amout *something is sold for. I
have tried something like

=SUMPRODUCT((B2:B6="Sold")*(A2:A6=LARGE(A2:A6;2))* (A2:A6)

or

=IF(C2:C15="solgt";LARGE(D2:D15;2))

entered as an array formula, but both (other attempts as well) returns
130 (the second highest price) where it should return120 (second
highes price, sold).

Any suggestions?

Jan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Find second highestsalesprice

A generic way, normal ENTER to confirm will do:
=INDEX(A2:A6,MATCH(1,INDEX((B2:B6="Sold")*(ISNUMBE R(MATCH(LARGE(A2:A6,2),A2:A6,0))),),0))

Change the commas to semicolons to suit your delimiter
High-five? Click the Stars below (in google)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
wrote in message
...
I have a spreadsheet:

Price Status
100
120 Sold
115 Sold
130
140 Sold

Now I try to find the seocnd larges amout something is sold for. I
have tried something like

=SUMPRODUCT((B2:B6="Sold")*(A2:A6=LARGE(A2:A6;2))* (A2:A6)

or

=IF(C2:C15="solgt";LARGE(D2:D15;2))

entered as an array formula, but both (other attempts as well) returns
130 (the second highest price) where it should return120 (second
highes price, sold).

Any suggestions?

Jan



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Find second highestsalesprice

Hi,

you can try this array formula (Ctrl+Shift+Enter)

LARGE((B2:B6="Sold")*(A2:A6),2)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

wrote in message
...
I have a spreadsheet:

Price Status
100
120 Sold
115 Sold
130
140 Sold

Now I try to find the seocnd larges amout something is sold for. I
have tried something like

=SUMPRODUCT((B2:B6="Sold")*(A2:A6=LARGE(A2:A6;2))* (A2:A6)

or

=IF(C2:C15="solgt";LARGE(D2:D15;2))

entered as an array formula, but both (other attempts as well) returns
130 (the second highest price) where it should return120 (second
highes price, sold).

Any suggestions?

Jan


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Find second highestsalesprice

welcome

On 25 Lut, 17:26, "Jan Kronsell"
wrote:
Thank you all. I used the solution from Ashish as that was the shortest.

Jan



wrote:
I have a spreadsheet:


Price * *Status
100
120 * * * Sold
115 * * * Sold
130
140 * * * Sold


Now I try to find the seocnd larges amout *something is sold for. I
have tried something like


=SUMPRODUCT((B2:B6="Sold")*(A2:A6=LARGE(A2:A6;2))* (A2:A6)


or


=IF(C2:C15="solgt";LARGE(D2:D15;2))


entered as an array formula, but both (other attempts as well) returns
130 (the second highest price) where it should return120 (second
highes price, sold).


Any suggestions?


Jan- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


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
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
'find' somtimes can't find numbers. I folowd the 'help' instructi. Yaron Excel Worksheet Functions 2 November 30th 05 05:46 PM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM


All times are GMT +1. The time now is 01:40 AM.

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"