Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zuo Zuo is offline
external usenet poster
 
Posts: 24
Default Satisfying two conditions?

I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Satisfying two conditions?

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zuo Zuo is offline
external usenet poster
 
Posts: 24
Default Satisfying two conditions?

No, it must be if any of the numbers are greater than 60 or if the second
longest is greater than 30. You must take into account all numbers all the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Satisfying two conditions?

=IF(OR(MAX(A2:C2)60,LARGE(A2:C2,2)30),8,0)

Regards,
Fred

"Zuo" wrote in message
...
No, it must be if any of the numbers are greater than 60 or if the second
longest is greater than 30. You must take into account all numbers all
the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a
box is
greater than 60 or its second longest side is greater than 30, then
charge
$8. I have the Length, Width and Height measurements of each package
in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Satisfying two conditions?

You don't say what result you want if either condition is not met.

Try one of these...

This one will return either 8 or 0:

=(MAX(A2:C2)=30)*8

This one will return either 8 or blank:

=IF(MAX(A2:C2)=30,8,"")

--
Biff
Microsoft Excel MVP


"Zuo" wrote in message
...
I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Satisfying two conditions?

=IF(MAX(A2:C2)30,8,"undefined")


"Zuo" wrote:

No, it must be if any of the numbers are greater than 60 or if the second
longest is greater than 30. You must take into account all numbers all the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zuo Zuo is offline
external usenet poster
 
Posts: 24
Default Satisfying two conditions?

No, the problem is that I need to satisfy either of two conditions, first
condition is, are there any of the measurements longer than 60? A MAX formula
resolves that easily. The problem then becomes is the second longest side
(doesn't matter which), longer than 30? First you have to determine which is
the second longest and then determine if it is longer than 30. That is why
in my example I use a first measurement that is the longest but less than 60
and the second longest measurement which is more than 30.

"Teethless mama" wrote:

=IF(MAX(A2:C2)30,8,"undefined")


"Zuo" wrote:

No, it must be if any of the numbers are greater than 60 or if the second
longest is greater than 30. You must take into account all numbers all the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a box is
greater than 60 or its second longest side is greater than 30, then charge
$8. I have the Length, Width and Height measurements of each package in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Zuo Zuo is offline
external usenet poster
 
Posts: 24
Default Satisfying two conditions?

I have to give it to Fred Smith. That is what I needed, but thank you all
very much for trying to help. All your help is very much appreciated.

"Fred Smith" wrote:

=IF(OR(MAX(A2:C2)60,LARGE(A2:C2,2)30),8,0)

Regards,
Fred

"Zuo" wrote in message
...
No, it must be if any of the numbers are greater than 60 or if the second
longest is greater than 30. You must take into account all numbers all
the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a
box is
greater than 60 or its second longest side is greater than 30, then
charge
$8. I have the Length, Width and Height measurements of each package
in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO


.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Satisfying two conditions?

You're welcome, thanks for the feedback.

Fred

"Zuo" wrote in message
...
I have to give it to Fred Smith. That is what I needed, but thank you all
very much for trying to help. All your help is very much appreciated.

"Fred Smith" wrote:

=IF(OR(MAX(A2:C2)60,LARGE(A2:C2,2)30),8,0)

Regards,
Fred

"Zuo" wrote in message
...
No, it must be if any of the numbers are greater than 60 or if the
second
longest is greater than 30. You must take into account all numbers all
the
time.

"JLatham" wrote:

For entries on row 2:
=IF(OR(A260,B230),8,1)
Ok, you may want a different number than 1 for the other cost, but I'm
trying to attract customers for you.


"Zuo" wrote:

I need to satisfy the following condition: If the longest side of a
box is
greater than 60 or its second longest side is greater than 30, then
charge
$8. I have the Length, Width and Height measurements of each
package
in
columns A,B, C.

Example
ABC
59,35,15

Thanks in advance for the help.
Regards,
ZUO


.


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
Satisfying two variables entered via popup Colin Hayes Excel Discussion (Misc queries) 1 February 3rd 10 09:04 PM
how to get value from a table satisfying two conditions Dhirendra Kumar Excel Discussion (Misc queries) 2 December 11th 09 07:08 AM
if then statement to return text from cells satisfying condition Savvy Excel Worksheet Functions 4 August 10th 09 04:43 PM
Satisfying 2 conditions and lookup from a 3rd column to return a v Raj Excel Worksheet Functions 1 October 31st 07 12:47 AM
using sumif formula: but requiring satisfying 2 if statements karenm Excel Worksheet Functions 1 July 8th 05 07:34 PM


All times are GMT +1. The time now is 08:05 PM.

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"