Hello,
I have the below fields in my spreadsheet that I would like to place in a pivot table. I want to calculate the sales turn for the aggregated with the formula (BOH $/Sales $)*# of weeks in the month.
I have tried using an if statement in the calculated field =if(weeks in month>4, (BOH $/Sales $)*5, (BOH $/Sales $)*4) however this ends up multiplying everything by 5. Is there another way to accomplish this? Please advise!
[TABLE="class: grid, width: 380, align: left"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Sales $[/TD]
[TD]BOH $[/TD]
[TD]Weeks in Month[/TD]
[/TR]
[TR]
[TD]JANUARY[/TD]
[TD="align: right"]$13,443.00[/TD]
[TD="align: right"]$4,950[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$18,743.00[/TD]
[TD="align: right"]$17,972[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$21,630.00[/TD]
[TD="align: right"]$19,725[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$13,981.00[/TD]
[TD="align: right"]$20,231[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]AUGUST[/TD]
[TD="align: right"]$23,200.00[/TD]
[TD="align: right"]$19,904[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]SEPTEMBER[/TD]
[TD="align: right"]$23,420.00[/TD]
[TD="align: right"]$19,886[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD="align: right"]$17,217.00[/TD]
[TD="align: right"]$24,933[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]NOVEMBER[/TD]
[TD="align: right"]$21,810.00[/TD]
[TD="align: right"]$27,126[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]DECEMBER[/TD]
[TD="align: right"]$52,669.00[/TD]
[TD="align: right"]$46,723[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]JANUARY[/TD]
[TD="align: right"]$84.00[/TD]
[TD="align: right"]$90[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$632.00[/TD]
[TD="align: right"]$8[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$1,118.00[/TD]
[TD="align: right"]$2,840[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$442.00[/TD]
[TD="align: right"]$1,492[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]AUGUST[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]-$24[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]SEPTEMBER[/TD]
[TD="align: right"]$1,049.00[/TD]
[TD="align: right"]$1,196[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD="align: right"]$114.00[/TD]
[TD="align: right"]$131[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]NOVEMBER[/TD]
[TD="align: right"]$685.00[/TD]
[TD="align: right"]$18[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]DECEMBER[/TD]
[TD="align: right"]$1,776.00[/TD]
[TD="align: right"]$1,838[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$0[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$178.00[/TD]
[TD="align: right"]$224[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$34.00[/TD]
[TD="align: right"]$44[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
I have the below fields in my spreadsheet that I would like to place in a pivot table. I want to calculate the sales turn for the aggregated with the formula (BOH $/Sales $)*# of weeks in the month.
I have tried using an if statement in the calculated field =if(weeks in month>4, (BOH $/Sales $)*5, (BOH $/Sales $)*4) however this ends up multiplying everything by 5. Is there another way to accomplish this? Please advise!
[TABLE="class: grid, width: 380, align: left"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Month[/TD]
[TD]Sales $[/TD]
[TD]BOH $[/TD]
[TD]Weeks in Month[/TD]
[/TR]
[TR]
[TD]JANUARY[/TD]
[TD="align: right"]$13,443.00[/TD]
[TD="align: right"]$4,950[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$18,743.00[/TD]
[TD="align: right"]$17,972[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$21,630.00[/TD]
[TD="align: right"]$19,725[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$13,981.00[/TD]
[TD="align: right"]$20,231[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]AUGUST[/TD]
[TD="align: right"]$23,200.00[/TD]
[TD="align: right"]$19,904[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]SEPTEMBER[/TD]
[TD="align: right"]$23,420.00[/TD]
[TD="align: right"]$19,886[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD="align: right"]$17,217.00[/TD]
[TD="align: right"]$24,933[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]NOVEMBER[/TD]
[TD="align: right"]$21,810.00[/TD]
[TD="align: right"]$27,126[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]DECEMBER[/TD]
[TD="align: right"]$52,669.00[/TD]
[TD="align: right"]$46,723[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]JANUARY[/TD]
[TD="align: right"]$84.00[/TD]
[TD="align: right"]$90[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$632.00[/TD]
[TD="align: right"]$8[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$1,118.00[/TD]
[TD="align: right"]$2,840[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$442.00[/TD]
[TD="align: right"]$1,492[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]AUGUST[/TD]
[TD="align: right"]$2.00[/TD]
[TD="align: right"]-$24[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]SEPTEMBER[/TD]
[TD="align: right"]$1,049.00[/TD]
[TD="align: right"]$1,196[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD="align: right"]$114.00[/TD]
[TD="align: right"]$131[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]NOVEMBER[/TD]
[TD="align: right"]$685.00[/TD]
[TD="align: right"]$18[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]DECEMBER[/TD]
[TD="align: right"]$1,776.00[/TD]
[TD="align: right"]$1,838[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]FEBRUARY[/TD]
[TD="align: right"]$0.00[/TD]
[TD="align: right"]$0[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MARCH[/TD]
[TD="align: right"]$178.00[/TD]
[TD="align: right"]$224[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]APRIL[/TD]
[TD="align: right"]$34.00[/TD]
[TD="align: right"]$44[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]