I am a relative Excel novice, but have thoroughly explored MS Excel Help and other online help forums for an answer to my question, and at this point, I am wondering if what I want to do is even possible? Please help!
I want the formula to return a single sum for multiple conditions (two, to be exact) in a range to a single cell.
The context of my question is a calendar where IF a day (i.e., a cell) has the value "I" in it, THEN I want the formula to COUNT that value as 0.5 (i.e., half of a day).
IF a day (i.e. a cell) has the value "II" in it, THEN I want the formula to COUNT that value as 1 (i.e., a whole day). THEN I want the formula to calculate the sum of the values within the range specified (i.e., the month).
The answer should be 11.5.
[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]SUN[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]SAT[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD="align: center"]II[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]14[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]21[/TD]
[TD]22[/TD]
[TD]23[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]28[/TD]
[TD]28[/TD]
[TD]30[/TD]
[TD]31[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD="align: center"]II[/TD]
[TD="align: center"]I[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
I want the formula to return a single sum for multiple conditions (two, to be exact) in a range to a single cell.
The context of my question is a calendar where IF a day (i.e., a cell) has the value "I" in it, THEN I want the formula to COUNT that value as 0.5 (i.e., half of a day).
IF a day (i.e. a cell) has the value "II" in it, THEN I want the formula to COUNT that value as 1 (i.e., a whole day). THEN I want the formula to calculate the sum of the values within the range specified (i.e., the month).
The answer should be 11.5.
[TABLE="class: outer_border, width: 500, align: left"]
<tbody>[TR]
[TD]SUN[/TD]
[TD]MON[/TD]
[TD]TUE[/TD]
[TD]WED[/TD]
[TD]THU[/TD]
[TD]FRI[/TD]
[TD]SAT[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD="align: center"]II[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]10[/TD]
[TD]11[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]
[/TD]
[TD="align: center"]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]14[/TD]
[TD]15[/TD]
[TD]16[/TD]
[TD]17[/TD]
[TD]18[/TD]
[TD]19[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]20[/TD]
[TD]21[/TD]
[TD]22[/TD]
[TD]23[/TD]
[TD]24[/TD]
[TD]25[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[TD="align: center"]II[/TD]
[/TR]
[TR]
[TD]27[/TD]
[TD]28[/TD]
[TD]28[/TD]
[TD]30[/TD]
[TD]31[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD="align: center"]II[/TD]
[TD="align: center"]I[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]