Forum Discussion
BariDoc ESPCOP
Oct 01, 2017Copper Contributor
IF Function to adjust calculations for gender
New to this - please be patient :-) Medical application. Have one of two formulae to use to calculate lean body weight, depending on gender of patient in column A (M or F). there must be a simple an...
BariDoc ESPCOP
Oct 01, 2017Copper Contributor
Hi Detlef - many thanks, looks v elegant, but using Excel for Mac the O365 version - it returns a #NAME error.. tried repeatedly to jiggle this around - is it a version problem?
- CARLOS ADRIANOct 02, 2017Copper Contributor
Other proposal would be:
=9270*B3/IF(A3="m",(6680+216*C3),(8780+244*C3))
- BariDoc ESPCOPOct 02, 2017Copper Contributor
also works perfectly - many thanks
- Oct 01, 2017
Hello,
this one is not as elegant, but it works in all versions of Excel:
=9270*B3/(IF(A3="m",6680,8780)+IF(A3="m",216,244)*C3)
- BariDoc ESPCOPOct 02, 2017Copper Contributor
yup, that's the Badger! does the job. Many thanks to you and all who suggested solutions.
- Detlef_LewinOct 01, 2017Silver Contributor
BariDoc,
probably. SWITCH() was introduced with version 1601 Build 6568.2025.