As the weekly scores are inputted in cells c18-c27, c28 shows the average.

At the same time in a corresponding cell C32 I want it to do the following

- If the value of C18<30 then a value of 0.2 is returned
- If the value of C18(greater than or equal to)30 but <c28 a="" value="" of="" 0.1="" is="" returned.<="" li=""></c28>
- If the value of C18>36 and >C28 a value of ((C18-round(C28,0))*-0.1))-(C18-36))*0.1)) is returned. For example if the person scores 37 points and the average is 36, their handicap will drop by 0.1 for every point over the average and an extra 0.1 for every point over 36.
- if the value of C(less than or equal to)36 and >C28 a value of ((C18-round(c28,0))*-0.1)) is returned. I.e if the average is 34 and the player scores 36 points then a score of -0.2 is returned.
- This formula would then pulled down to the rest of the cells in the table.

The formula I'm trying in the first cell is as below but as I'm a novice I'm losing my way;

Code:

`=IF(C18<30,0.2),IF(AND((C18[U]>[/U]30),(C18<c28),0.1),if(and((c18>36),(C18>C28),((C18-ROUND(C28,0))*-0.1)-(C18-36))*0.1)),IF(AND((C18[U]<[/U]36[U]),[/U](C18>C28),((C18-ROUND(C28,0))*-0.1)))(`

Any help would be most appreciated.</c28),0.1),if(and((c18>