I have a spreadsheet that runs a query and returns data from a SQL database in columns A through F.
In Column G an Excel formula is populated which refers to columns A through F to give you a value.

How do I find where that formula is coming from? I need to make a change to it so that next time the sheet is refreshed it pulls in the changed formula?

When the sheet is blank and you click into the cells in column G there are no formulas. So it seems to only populate when the data is refreshed.