I am working on a model with several thousand rows of data, and several blank fields. I am having trouble with the following two calculations in a data table.
I must be doing something wrong, as the results of the second calculation are incorrect.
I am not sure why this is the case nor how to fix it.
Note: I also tried the following formula: BMI = IFERROR(([@Weight]/[@Height]^2)*704,)
. All cells where there was an error as 0
. This works for calculating the Obese statement, but causes other problems as the "0" value messes up my average calculations.
Excel does return TRUE
when comparing a string to a number like this ( why Excel does this a can't say)
The fix is to test for a number in the OBESE formula
= IF(AND(ISNUMBER([@BMI]),[@BMI]>=30),1,0)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.