Using excel tables to calculate value?

Does anyone know if its possible for HA to use a table to calculate the sum of a row/column?

I’ll try keep short… I have installed a chemical monitor on my swimming pool. A table will estimate free chlorine PPM based on PH and ORP levels. There are calculations that can be done but they all seem way off. I’d like to correlate the PH and ORP sensor values to the PPM figures on the table but cannot figure out how…

Anyone managed it before?

In computer terms that is a lookup table, easyish to programme, but I don’t know if there are any integrations, so you may be doing some programming.