Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Bud Bud is offline
external usenet poster
 
Posts: 61
Default Search lowest value in a column and display the entire row

I have the following cells:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc

I need to display the entire row with the lowest "Rate." In the above
example, I need to show....Albania 355 .10 abc in a separate worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bud Bud is offline
external usenet poster
 
Posts: 61
Default Search lowest value in a column and display the entire row

Additionally, I will have multiple destinations, as stated below:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc
Albania - Cell 35538 .15 abc
Albania - Cell 35538 .16 xyz

Which will be sorted by the "Code." If a country has 2 carriers with the
same "Code," I need the lowest "Rate" of the 2, to display the entire row in
a separate worksheet.




"Bud" wrote:

I have the following cells:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc

I need to display the entire row with the lowest "Rate." In the above
example, I need to show....Albania 355 .10 abc in a separate worksheet.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 18
Default Search lowest value in a column and display the entire row

Use MIN to get the lowest rate. And then use Index & Match to get the
other columns.

Mangesh





On Aug 27, 7:26 am, Bud wrote:
Additionally, I will have multiple destinations, as stated below:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc
Albania - Cell 35538 .15 abc
Albania - Cell 35538 .16 xyz

Which will be sorted by the "Code." If a country has 2 carriers with the
same "Code," I need the lowest "Rate" of the 2, to display the entire row in
a separate worksheet.



"Bud" wrote:
I have the following cells:


Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc


I need to display the entire row with the lowest "Rate." In the above
example, I need to show....Albania 355 .10 abc in a separate worksheet.- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Search lowest value in a column and display the entire row

Assume the source table is in a sheet: x, cols A to D, data from row2 to
row5, where col C = rate (source table need not be sorted)

In the other sheet, supposing you have the inputs specified in A2:C2,
viz:

Country Code Carrier
Albania 35538 abc

Then in D2, array-entered**:
=MIN(IF((x!A2:A5=A2)*(x!B2:B5=B2)*(x!D2:D5=C2),x!C 2:C5))
will return the required result from the source table. Adapt the ranges to
suit.

**press CTRL+SHIFT+ENTER to confirm the formula
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bud" wrote:
Additionally, I will have multiple destinations, as stated below:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc
Albania - Cell 35538 .15 abc
Albania - Cell 35538 .16 xyz

Which will be sorted by the "Code." If a country has 2 carriers with the
same "Code," I need the lowest "Rate" of the 2, to display the entire row in
a separate worksheet.




"Bud" wrote:

I have the following cells:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc

I need to display the entire row with the lowest "Rate." In the above
example, I need to show....Albania 355 .10 abc in a separate worksheet.

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Search lowest value in a column and display the entire row

Perhaps you might be looking for this instead ..

Assume the source table is in a sheet: x, cols A to D, data from row2 to 100
(say), where col C = rate (source table need not be sorted)

In another sheet,

Put in A2, array-enter the formula, ie press CTRL+SHIFT+ENTER to confirm the
formula:
=IF(COUNTA(x!A2:C2)<3,"",IF(MIN(IF((x!A$2:A$100=x! A2)*(x!B$2:B$100=x!B2),x!C$2:C$100))=x!C2,ROW(),"" ))
Leave A1 blank

Put in B2, normal ENTER:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX(x!A:A,SMALL($ A:$A,ROWS($1:1))))
Copy B2 to E2. Select A2:E2, copy down to E100. Hide away col A. Cols B to E
will return the required results, ie only the lines from the source sheet: x
with the lowest rates, all neatly bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bud" wrote:
Additionally, I will have multiple destinations, as stated below:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc
Albania - Cell 35538 .15 abc
Albania - Cell 35538 .16 xyz

Which will be sorted by the "Code." If a country has 2 carriers with the
same "Code," I need the lowest "Rate" of the 2, to display the entire row in
a separate worksheet.




"Bud" wrote:

I have the following cells:

Country Code Rate Carrier
Albania 355 .10 abc
Albania 355 .12 xbc

I need to display the entire row with the lowest "Rate." In the above
example, I need to show....Albania 355 .10 abc in a separate worksheet.

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
SEARCH COLUMN BY NAME THEN DISPLAY CELL ON SAME ROW RAZ Excel Worksheet Functions 3 March 11th 07 08:22 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
How do I compare values of two cells and display the lowest. sherri Excel Worksheet Functions 2 June 21st 06 07:34 PM
Search Entire Workbook Sloth Excel Discussion (Misc queries) 0 October 14th 05 05:12 AM
How do I display the lowest value in a row? Alex New Users to Excel 7 June 15th 05 12:58 PM


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