Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default compare 2 columns and select the lowest

Hi
I have simple question
I have 2 coumns A and B
A1 is text and B1 is numbers and so on.. depending of B columns numbers , i
want colums C to show alway lowest numbers on top, but also text
like if A1,B1 is Mike 29
then A2,B2 is Josh 34, then column C shows Mike 29 but on top, not as a
secon row..
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default compare 2 columns and select the lowest

Couldn't you just sort by column B in ascending order and leave the data right
where it is?

If that's not ok, how about an alternative?

I'd add a new column C.

Then use a formula like this in C1:

=text(a1,"000")&"-"&b1
and drag down.

You'd see:

029-Mike

Then I'd sort the entire range (A:C) by column C.

ps. Since this formula in column C returns text, you'll have to use the format
in the =text() portion to make sure that all the digits are showing -- use the
worse case scenario.



Delya wrote:

Hi
I have simple question
I have 2 coumns A and B
A1 is text and B1 is numbers and so on.. depending of B columns numbers , i
want colums C to show alway lowest numbers on top, but also text
like if A1,B1 is Mike 29
then A2,B2 is Josh 34, then column C shows Mike 29 but on top, not as a
secon row..


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default compare 2 columns and select the lowest

=INDEX(A1:A40,MATCH(MIN(B1:B40),B1:B40,0))&" "&MIN(B1:B40)


"Delya" skrev:

Hi
I have simple question
I have 2 coumns A and B
A1 is text and B1 is numbers and so on.. depending of B columns numbers , i
want colums C to show alway lowest numbers on top, but also text
like if A1,B1 is Mike 29
then A2,B2 is Josh 34, then column C shows Mike 29 but on top, not as a
secon row..

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
formula to select lowest value jcheko Excel Discussion (Misc queries) 2 March 25th 09 03:50 PM
Select lowest value from 3 columns ub67 Excel Worksheet Functions 7 March 3rd 09 06:32 PM
determine lowest number in several columns and replace lowest numb jerry Excel Worksheet Functions 1 June 18th 08 03:19 AM
How do I compare values of two cells and display the lowest. sherri Excel Worksheet Functions 2 June 21st 06 07:34 PM
How do I compare 4 cells of prices and print the lowest value in . Jerry Foley Excel Worksheet Functions 5 February 13th 05 04:57 PM


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