Hi,
I would like to highlight a cell depending on which condition to use in a cells formula.
The formula calculates a forecast per month for each part number, so there are a fair few formulas (in the region of 16,000). Each cell has quite a complicated formula, but it basically looks like (in pseudo code)
This looks at a customer schedule and calculates how many parts they need between two dates.
If the value is zero, it takes the average number of parts in a 4 week period, and multiplies it by the number of weeks in a month.
Otherwise, if simple uses the number of parts between the two dates.
This is great and works fine, but I would like to highlight a cell if I am calculating the forecast myself
I would like to be able to do something like
I have thought of using conditioning formatting, but not sure how to do this.
Thanks
P.S
For those who are interested my formula is
I would like to highlight a cell depending on which condition to use in a cells formula.
The formula calculates a forecast per month for each part number, so there are a fair few formulas (in the region of 16,000). Each cell has quite a complicated formula, but it basically looks like (in pseudo code)
Code:
=IF( quantity_between_date( month1, month2 ) = 0, calc_average_4_weeks * number_weeks_in_month, quantity_between_date(month1, month2) )
This looks at a customer schedule and calculates how many parts they need between two dates.
If the value is zero, it takes the average number of parts in a 4 week period, and multiplies it by the number of weeks in a month.
Otherwise, if simple uses the number of parts between the two dates.
This is great and works fine, but I would like to highlight a cell if I am calculating the forecast myself
I would like to be able to do something like
Rich (BB code):
=IF(
quantity_between_date( month1, month2 ) = 0,
calc_average_4_weeks * number_weeks_in_month <-- highlight cell now,
quantity_between_date( month1, month2 )
)
I have thought of using conditioning formatting, but not sure how to do this.
Thanks
P.S
For those who are interested my formula is
Rich (BB code):
=IF(Menu!$C$36=TRUE,IF(SUMIFS(INDIRECT("Calender!A"&MATCH($B31,CalenderPartList,0)&":NI"&MATCH($B31,CalenderPartList,0)),CalenderDateList,">="&DATE(YEAR(AT$3),MONTH(AT$3),1),CalenderDateList,"<"&DATE(YEAR(AU$3),MONTH(AU$3),1))=0,
AVERAGE($AJ31:$AM31)*AT$2,
SUMIFS(INDIRECT("Calender!A"&MATCH($B31,CalenderPartList,0)&":NI"&MATCH($B31,CalenderPartList,0)),CalenderDateList,">="&DATE(YEAR(AT$3),MONTH(AT$3),1),CalenderDateList,"<"&DATE(YEAR(AU$3),MONTH(AU$3),1))),0)