Problem with a formula

Princessboko

Board Regular
Joined
Nov 3, 2002
Messages
73
I'm trying to write a formula to calculate dosages of a medicine.
What I have is C3 is the weight of a patient in kg. So

IF C3<=50,50
IF C3>=117,117
IF C3>50 or <117 (a number between 51-116)
* 16 for the drip of the IV

My formula is:
=IF(C3<=50,50)+OR(C3>117,117)+OR(C3>50)+OR(C3<117)*16

Then in I3 the result of the above is divided by 50 for my result.

What am I doing wrong?

Thank you! :eek:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Here's your formula. I did it without the "times 16" so you could easily see the results of the different weights. Just add *16 to the end of the formula.
New Book.xls
BCDEF
2
34050
44950
55050
65555
76868
8116116
9117117
10130117
11150117
12
Sheet3
 
Upvote 0
I am not sure of your second condition, if it is the number in C3 times 16, but if it is, here is a formula:

=IF(C3>117,117,IF(C3>50,C3*16,50))
 
Upvote 0
Princessboko said:
I'm trying to write a formula to calculate dosages of a medicine.
What I have is C3 is the weight of a patient in kg. So

IF C3<=50,50
IF C3>=117,117
IF C3>50 or <117 (a number between 51-116)
* 16 for the drip of the IV

My formula is:
=IF(C3<=50,50)+OR(C3>117,117)+OR(C3>50)+OR(C3<117)*16

Then in I3 the result of the above is divided by 50 for my result.

What am I doing wrong?

Thank you! :eek:
Maybe --
=IF(C3>=117,117,IF(C3<=50,50,(C3*16)/50))

Although if 50 gets 50, it looks odd that 51 would get [51*16=816/50=16.32]... Am I missing something?
 
Upvote 0
Thanks a million.

The final result is based on a fraction of a mL/hr so if it is 51 it is based on a fraction of the mL.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,432
Members
451,705
Latest member
Priti_190

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