1
votes

IF(BC5="YES",ROUND(AS6 * AT6,2)+BD5, ROUND(AS6 * AT6,2))

What have you done so far and where are you stuck? Do you want VBA to write the formula to a cell or do you want to write a function that mimics the behaviour? - FunThomas
AS6AT6 isn't a cell reference. Do you mean AS6:AT6 which will return two values? - Darren Bartrup-Cook
Range("A1").Formula2 = "=IF(BC5=""YES"",ROUND(AS6:AT6,2)+BD5,ROUND(AS6:AT6,2))" - Darren Bartrup-Cook