Oh my god, I feel so dumb. Thank you all so much for the help. I tried out the Formula method showcased by Kenen above, and it worked perfectly.
Sorry about my lackluster communication and overcomplication of the problem.
Sorry about my lackluster communication and overcomplication of the problem.