With a Function, it's not possible in the way you are suggesting. If A1:G13 contain formulas, you can amend them with an IF statement to say
Otherwise, you can use VBA in your spreadsheet (right click on the tab and "View Code". This code runs every time you change R10 and if it's 0, then it clears A1:G13.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 10 And Target.Column = 18 Then
If Target.Value = 0 Then
Range("A1:G13").ClearContents
End If
End If
End Sub
Do either of these options work for you?
ChemistB
Bookmarks