Jun 30 2020 08:22 PM
I am trying to write a formula for above table.
there are 3 conditions. IF ( 20 < "age cell" < 39 AND "gender cell" = "female" AND BAI < %21 THEN RESULTS = UNDERWEIGHT)
And so on.
If i get help with first line I can write the rest. thank you
Jul 01 2020 02:55 PM
Hi @msm66,
This is one approach.
=IF(AND(A2>20,A2<39,B2="Female",C2<21)=TRUE,"Underweight","something else")
Have fun with that.
Ben
Jul 01 2020 06:12 PM
Solution@msm66 Please see attached workbook. I combined the check for both men and women and all age ranges and BAI range in one formula so it looks a bit long but captures every scenario you described.
Jul 01 2020 07:22 PM
Jul 01 2020 07:24 PM
Jul 01 2020 08:09 PM
Jul 01 2020 09:20 PM
@msm66 My Excel default is .xlsx. You can simply Save As it and choose .xlsm (or .xlsb) - both work for macro. Or just right click on the Tab "Sheet1" then choose Move or Copy... and Move the selected sheet to your xlsm workbook
Jul 01 2020 06:12 PM
Solution@msm66 Please see attached workbook. I combined the check for both men and women and all age ranges and BAI range in one formula so it looks a bit long but captures every scenario you described.