how do i fix error 511
You can search in the help for Error Codes to see explanation for every error.
511:
Function requires more variables than are provided, for example, AND() and OR().
If you show here the formula, maybe someone can help with the right syntax.