LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 2
Default using an IF or AND function to get next largest value in list

Hi .

I have a list of numbers and a corresponding list of text values

Team Errors
Query Category 7
Query sub cat 8
MSN 1
Exchange date 17
Meter Type 1
Reads 0
Flows 0
MAP ID 3
SSC 3
Mtr type 2
Ecoes date 8

I have been using the below formula to get the top three values and return the corresponding text string in a cell on another part of the worksheet.

=INDEX(W8:X18,MATCH(LARGE(X8:X18,2),X8:X18,0),1)

But as you can see the 2nd largest value has two results. How do I get excel to print one of them and the next time to test wether that string has already been printed and go for the 'other' joint 2nd largest number ?

When I change the LARGE array argument from 2nd largest to 3rd largest number it returns the same string i.e 'Query sub cat' - how can I get it to test wether that string has already been printed and print the string 'Ecoes date' ?

I assume I want to add an AND operator into the above formula something like AND<= the text in cell F30. So look at cell F30 and see what text string is there . If it matches the result from the INDEX formula then print the other string instance of the number / value

thanks for any and all help
 
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
An eqation to add the largest 6 (or N) numbers from a list cellofellow Excel Discussion (Misc queries) 4 December 13th 08 12:53 AM
Finding largest number from list holyman Excel Discussion (Misc queries) 1 July 23rd 06 11:55 PM
Highlighting the 5 Largest Numbers in a list [email protected] Excel Discussion (Misc queries) 24 April 17th 06 01:44 PM
Finding the 3rd largest number in a list Simon Jefford Excel Worksheet Functions 2 June 28th 05 04:01 PM
finding the second largest number in a list bobf Excel Discussion (Misc queries) 1 February 16th 05 01:19 PM


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