wizau
New Member
- Joined
- Apr 1, 2014
- Messages
- 10
- Office Version
- 2021
- Platform
- Windows
I thought I'd found the answer here: Shirt Sizing with Two Conditions
But the HTML code is not being executed by my browser and I can't read the thread.
And wondering if there's a better way since 10 years ago!
This spreadsheet is going out to 144 regional non-profit, non-religious, non-political youth leadership groups, for the kid's uniform sizing.
I'd really appreciate the help. Next year's intake is getting very close. (late November)
For (nearly) every shirt chest size in cm, there is a corresponding 'fitment' of Short / Reg / Long based on the person's height.
65 Short
65 Reg
65 Long
or...
70S, 70R, 70L
75S, 75R, 75L
Here's the 'logic' I need converted into a Formula and my first crack at it:
C2 is the raw measurement of the person's chest and H2 is the raw measurement of their height.
Chest size is primary "Must" fit, fitment length is secondary.
Everything is in whole numbers and conditionally limited to what can only be 'real world' numbers to avoid data entry mistakes.
=IF(AND(C2<="75",H2<="160"),CONCAT(CEILING(C2, 5),"S"), else...)
=IF(AND(AND(C2>="75",C2<="99"),H2<="170",CONCAT(CEILING(C2, 5),"S", else...)
=IF(AND(C2>="91",H2<="180"),CONCAT(CEILING(C2, 5),"S"), else...)
=IF(AND(C2<="75",H2<="170),CONCAT(CEILING(C2, 5),"R"))
If C2=76-85 & H2<181 =CONCAT(CEILING(C2, 5),"R")
If C2 = 86-110 & H2<191 =CONCAT(CEILING(C2, 5),"R")
=IF(AND(C2>110,H2<="200"),CONCAT(CEILING(C2, 5),"R"))
If C2 = <74 & H2>170 = Long
If C2 = 75-80 & H2>180 = Long
If C2 = 81-105 & H2>190 = Long
If C2 >105 & H2>200 = Long
(or... Else =CONCAT(CEILING(C2, 5),"L") .....after Short & Reg conditionals exhausted must be Long??)
I tried to see if it was a straight ratio that I could divide height by chest or chest by height and use the ratio to choose fitment, but it's not.
Size matrix raw data is attached.
Once I have an example to work from I's sure I will be able to translate it into the trouser sizes which are a similar waist & fitment length options, but XX-Short and X-Long as well.
I really can't believe there's not already something like this somewhere for me to use an an example, but I couldn't find one, and I'm not good enough to write nested / cascading IF statement formula. And as said, can't help thinking there could be a better way. I have real trouble with very long nested IF statement formulas!!
Thank you so much for any assistance. And I'm sure for others trying to do the same thing as well.
But the HTML code is not being executed by my browser and I can't read the thread.
And wondering if there's a better way since 10 years ago!
This spreadsheet is going out to 144 regional non-profit, non-religious, non-political youth leadership groups, for the kid's uniform sizing.
I'd really appreciate the help. Next year's intake is getting very close. (late November)
For (nearly) every shirt chest size in cm, there is a corresponding 'fitment' of Short / Reg / Long based on the person's height.
65 Short
65 Reg
65 Long
or...
70S, 70R, 70L
75S, 75R, 75L
Here's the 'logic' I need converted into a Formula and my first crack at it:
C2 is the raw measurement of the person's chest and H2 is the raw measurement of their height.
Chest size is primary "Must" fit, fitment length is secondary.
Everything is in whole numbers and conditionally limited to what can only be 'real world' numbers to avoid data entry mistakes.
=IF(AND(C2<="75",H2<="160"),CONCAT(CEILING(C2, 5),"S"), else...)
=IF(AND(AND(C2>="75",C2<="99"),H2<="170",CONCAT(CEILING(C2, 5),"S", else...)
=IF(AND(C2>="91",H2<="180"),CONCAT(CEILING(C2, 5),"S"), else...)
=IF(AND(C2<="75",H2<="170),CONCAT(CEILING(C2, 5),"R"))
If C2=76-85 & H2<181 =CONCAT(CEILING(C2, 5),"R")
If C2 = 86-110 & H2<191 =CONCAT(CEILING(C2, 5),"R")
=IF(AND(C2>110,H2<="200"),CONCAT(CEILING(C2, 5),"R"))
If C2 = <74 & H2>170 = Long
If C2 = 75-80 & H2>180 = Long
If C2 = 81-105 & H2>190 = Long
If C2 >105 & H2>200 = Long
(or... Else =CONCAT(CEILING(C2, 5),"L") .....after Short & Reg conditionals exhausted must be Long??)
I tried to see if it was a straight ratio that I could divide height by chest or chest by height and use the ratio to choose fitment, but it's not.
Size matrix raw data is attached.
Once I have an example to work from I's sure I will be able to translate it into the trouser sizes which are a similar waist & fitment length options, but XX-Short and X-Long as well.
I really can't believe there's not already something like this somewhere for me to use an an example, but I couldn't find one, and I'm not good enough to write nested / cascading IF statement formula. And as said, can't help thinking there could be a better way. I have real trouble with very long nested IF statement formulas!!
Thank you so much for any assistance. And I'm sure for others trying to do the same thing as well.