Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default IF Statement with 3 parameters

D22 = 508 kg
B19 = $35.00 (minimum)
C19 = $.25
D19 = $275.00 (maximum)

Problem:
if D22*C19< then B19
if D22*C19 greater than B19, but less than D19, D22*C19
if D22*C19D19 then D19

How do I construct the nested IF statement?



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default IF Statement with 3 parameters

Your first parameter is not clear. If D22*C19 < ???

Generally, these formulas have the form
=IF(A1<A2,A3,IF(A4<A5,A6,IF(A7<A8,A9,""))) etc.

IF...THEN...ELSE IF...THEN...ELSE IF...THEN...ELSE

Dave
--
Brevity is the soul of wit.


"Teri" wrote:

D22 = 508 kg
B19 = $35.00 (minimum)
C19 = $.25
D19 = $275.00 (maximum)

Problem:
if D22*C19< then B19
if D22*C19 greater than B19, but less than D19, D22*C19
if D22*C19D19 then D19

How do I construct the nested IF statement?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default IF Statement with 3 parameters

Thanks for catching that!! Should be <B19

"Dave F" wrote:

Your first parameter is not clear. If D22*C19 < ???

Generally, these formulas have the form
=IF(A1<A2,A3,IF(A4<A5,A6,IF(A7<A8,A9,""))) etc.

IF...THEN...ELSE IF...THEN...ELSE IF...THEN...ELSE

Dave
--
Brevity is the soul of wit.


"Teri" wrote:

D22 = 508 kg
B19 = $35.00 (minimum)
C19 = $.25
D19 = $275.00 (maximum)

Problem:
if D22*C19< then B19
if D22*C19 greater than B19, but less than D19, D22*C19
if D22*C19D19 then D19

How do I construct the nested IF statement?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FxM FxM is offline
external usenet poster
 
Posts: 9
Default IF Statement with 3 parameters

Teri a écrit :
D22 = 508 kg
B19 = $35.00 (minimum)
C19 = $.25
D19 = $275.00 (maximum)

Problem:
if D22*C19< then B19
if D22*C19 greater than B19, but less than D19, D22*C19
if D22*C19D19 then D19

How do I construct the nested IF statement?





Hi Teri,

Can also be =min(D19,max(B19,(D22*C19)))

Regards
FxM
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 77
Default IF Statement with 3 parameters

Perfect! Thank you!!

"FxM" wrote:

Teri a écrit :
D22 = 508 kg
B19 = $35.00 (minimum)
C19 = $.25
D19 = $275.00 (maximum)

Problem:
if D22*C19< then B19
if D22*C19 greater than B19, but less than D19, D22*C19
if D22*C19D19 then D19

How do I construct the nested IF statement?





Hi Teri,

Can also be =min(D19,max(B19,(D22*C19)))

Regards
FxM



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
Question using dates in a statement Wink20TCU Excel Discussion (Misc queries) 2 January 3rd 07 03:33 PM
IF Statement W/3 Parameters ? Kris-GMA Excel Worksheet Functions 1 October 7th 05 02:40 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Parameters are not allowed in queries that can't be displayed grap Flora Tzeng Excel Discussion (Misc queries) 1 March 15th 05 10:34 AM


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