#1   Report Post  
emerald_dragonfly
 
Posts: n/a
Default whichever is greater

I am trying to put together a spreadsheet for calulating transpot costs. I
would like to know if there is a formula to use that will select the greater
of two numbers. for instance if I had two numbers 3 and 4 and my calulation
needs to use the larger of the two how do I get excel to do that?
  #2   Report Post  
Dan Chupinsky
 
Posts: n/a
Default

If I understand your question, assume A1 contains "3", B1 contains "4" and
C1 contains "6"; and in D1 you want the product of C1 and the greater of A1
or B1,
then use the Formula =IF(A1B1,A1*C1,B1*C1) in D1

Dan
"emerald_dragonfly" wrote in
message ...
I am trying to put together a spreadsheet for calulating transpot costs. I
would like to know if there is a formula to use that will select the
greater
of two numbers. for instance if I had two numbers 3 and 4 and my
calulation
needs to use the larger of the two how do I get excel to do that?



  #3   Report Post  
emerald_dragonfly
 
Posts: n/a
Default

I am sorry I didn't explain that well did I? In transportation rates are
based on cubic meters (CBM). Cubic meters can be determined through weight
of the product or measurment. I have the formulas to determine the CBM by
weight and by measure. I need the spreadsheet to automatically fill in the
greater of the two numbers. For Instance if by measure I calculate 3CBM and
by weight 4 CBM than I need the cells of the spreadsheet to automaticcaly
fill with 4 as that is the greater CBM calculation. Does this make sense?

"Dan Chupinsky" wrote:

If I understand your question, assume A1 contains "3", B1 contains "4" and
C1 contains "6"; and in D1 you want the product of C1 and the greater of A1
or B1,
then use the Formula =IF(A1B1,A1*C1,B1*C1) in D1

Dan
"emerald_dragonfly" wrote in
message ...
I am trying to put together a spreadsheet for calulating transpot costs. I
would like to know if there is a formula to use that will select the
greater
of two numbers. for instance if I had two numbers 3 and 4 and my
calulation
needs to use the larger of the two how do I get excel to do that?




  #4   Report Post  
Bill Kuunders
 
Posts: n/a
Default

The by measure result is in C1
the by weight result is in D1
in E1 enter =MAX(C1,D1)

--
Greetings from New Zealand
Bill K


"emerald_dragonfly" wrote in
message ...
I am sorry I didn't explain that well did I? In transportation rates are
based on cubic meters (CBM). Cubic meters can be determined through
weight
of the product or measurment. I have the formulas to determine the CBM by
weight and by measure. I need the spreadsheet to automatically fill in
the
greater of the two numbers. For Instance if by measure I calculate 3CBM
and
by weight 4 CBM than I need the cells of the spreadsheet to automaticcaly
fill with 4 as that is the greater CBM calculation. Does this make sense?

"Dan Chupinsky" wrote:

If I understand your question, assume A1 contains "3", B1 contains "4"
and
C1 contains "6"; and in D1 you want the product of C1 and the greater of
A1
or B1,
then use the Formula =IF(A1B1,A1*C1,B1*C1) in D1

Dan
"emerald_dragonfly" wrote
in
message ...
I am trying to put together a spreadsheet for calulating transpot costs.
I
would like to know if there is a formula to use that will select the
greater
of two numbers. for instance if I had two numbers 3 and 4 and my
calulation
needs to use the larger of the two how do I get excel to do that?






  #5   Report Post  
doucetrr
 
Posts: n/a
Default


you can use the Max function to achieve this too, which is easier to
implement/maintain than the "If" function. For example, let's say
columns E through H have numbers and you want to select the highest
number from the four columns. You would use the following formula:
=MAX(E2:H2).


--
doucetrr
------------------------------------------------------------------------
doucetrr's Profile: http://www.excelforum.com/member.php...o&userid=24872
View this thread: http://www.excelforum.com/showthread...hreadid=384149



  #6   Report Post  
emerald_dragonfly
 
Posts: n/a
Default

Thanks folks! Have a great day!

"doucetrr" wrote:


you can use the Max function to achieve this too, which is easier to
implement/maintain than the "If" function. For example, let's say
columns E through H have numbers and you want to select the highest
number from the four columns. You would use the following formula:
=MAX(E2:H2).


--
doucetrr
------------------------------------------------------------------------
doucetrr's Profile: http://www.excelforum.com/member.php...o&userid=24872
View this thread: http://www.excelforum.com/showthread...hreadid=384149


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
if greater then 99 then 1 if greater then 199 then two N.R. Excel Worksheet Functions 2 June 23rd 05 06:14 PM
Help with SUMIF, INDEX, LOOKUP Please !! Robert Excel Worksheet Functions 13 March 13th 05 12:17 AM
Help w/ SUMIF ; INDEX Robert Excel Worksheet Functions 2 March 12th 05 02:23 AM
If Greater than when a formula Results in N/A John Excel Worksheet Functions 2 December 15th 04 08:19 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM


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