Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
NLB NLB is offline
external usenet poster
 
Posts: 1
Default Programming a column so the it displays the lesser of two values

I want to program a column so that each cell of that column will choose as
the value it displays the lesser of the values in two other columns. What
formula will do that?

Thanks much!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Programming a column so the it displays the lesser of two values


If column A & B are the two columns you want to compare, then put this in C1
and copy down

=min(A1,B1)

This will treat blanks as 0 though - if you want to ignore blanks then use
this:

=min(if(isblank(A1),B1,A1),if(isblank(B1),A1,B1))

"NLB" wrote:

I want to program a column so that each cell of that column will choose as
the value it displays the lesser of the values in two other columns. What
formula will do that?

Thanks much!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Programming a column so the it displays the lesser of two values

On Tuesday, July 21, 2009 11:25:00 AM UTC-4, NLB wrote:
I want to program a column so that each cell of that column will choose as
the value it displays the lesser of the values in two other columns. What
formula will do that?

Thanks much!


Yeah that works - but be careful about adding too many statements in one cell. For some reason the min() function wasn't working properly when i combined it into a larger line of functions. I had to break it out separately and then all worked well.
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
Mixed cell displays--values and formulas showing on same worksheet Compu Geek Excel Discussion (Misc queries) 4 December 28th 09 04:16 PM
X axis displays incorrect values LUCY Charts and Charting in Excel 1 March 28th 07 10:34 AM
specifying the lesser of two values Leo Kerner Excel Discussion (Misc queries) 8 March 2nd 06 06:56 AM
line chart displays wrong values koche005 Charts and Charting in Excel 1 February 26th 05 09:43 PM
Formula window displays correct answer while cell displays incorre MMV Excel Worksheet Functions 3 November 10th 04 09:28 PM


All times are GMT +1. The time now is 07:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"