I just spent 20 minutes using Google and trial and error to try to find the correct formula I needed in a Google Sheets file to no avail. I decided to try ChatGPT and it literally provided me with the correct formula and walked me through how to use it step by step!