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:
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>
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>
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>

<thead style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font: inherit; vertical-align: baseline;">
</thead>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
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,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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