Help with a formula - sizing - standard, medium or large

julianmpace

New Member
Joined
Jun 19, 2018
Messages
2
Hi, I need help working out if a product is Standard, Medium or Large size based on the length, width and height dimension with the following restrictions:
[TABLE="width: 704"]
<thead style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font: inherit; vertical-align: baseline;">[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=C7E0F9]#C7E0F9[/URL] "]
[TD="align: center"]Standard
<small style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 0.8em; line-height: inherit; font-family: inherit; vertical-align: baseline;">Max dimension <= 52cm, next Max <= 33cm and Min <= 30cm</small>[/TD]
[TD="align: center"]Medium
<small style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 0.8em; line-height: inherit; font-family: inherit; vertical-align: baseline;">Max dimension <= 120cm, next Max <= 80cm and Min <= 80cm</small>[/TD]
[TD="align: center"]Large
<small style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-size: 0.8em; line-height: inherit; font-family: inherit; vertical-align: baseline;">Max dimension > 120cm, or next Max > 80cm</small>[/TD]
[/TR]
</thead>[/TABLE]
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the board.

If your dimensions are in A2:C2, then try:

=IF(AND(MAX(A2:C2)<=52,MEDIAN(A2:C2)<=33,MIN(A2:C2)<=30),"Standard",IF(AND(MAX(A2:C2)<=120,MEDIAN(A2:C2)<=80),"Medium","Large"))
 
Upvote 0
welcome to the board.

If your dimensions are in a2:c2, then try:

=if(and(max(a2:c2)<=52,median(a2:c2)<=33,min(a2:c2)<=30),"standard",if(and(max(a2:c2)<=120,median(a2:c2)<=80),"medium","large"))


thanks eric - however i get a lovely error message.
 
Upvote 0
Do you have any numbers in a2:c2 yet? We can put IFERROR around the formula to just show an empty cell when you don't have any values yet.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top