Return a value from a specific Google Sheet cell

I’m not sure what you are trying to achieve but converting a HEX value to DECIMAL does not require 3.7m of records.

See this demo to convert a HEX color code to RGB which is DECIMAL.

https://x.thunkable.com/projectPage/61742edbc7e59500107319d4