So I'm working on a checkin system where a person's location is checked in to 1 sheet (GPS Coordinates) and the list of acceptable locations are on another sheet. It uses a boundary and tests to see WHICH boundary the person is inside of. Right now the process works with individual equations in each cell but doesn't auto-fill the column when I add Arrayformula. Because I need it to be automatic, I need the autofill location functionality to work.
I've tried a few different options but they all seem to either lock in the values of 1 cell or output an error, or don't autofill. I'm assuming it's because I'm using 2 different arrays on different pages but I don't know how to use or separate the ArrayFormula to work for my purposes.
//Using Specific Cell Values//
=ARRAYFORMULA(
IF(B2="",,IF(TEXTJOIN(", ", 1,
IF((E2*1>=Locations!D$2:D)*
(E2*1<=Locations!E$2:E)*
(F2*1>=Locations!F$2:F)*
(F2*1<=Locations!G$2:G),
Locations!C$2:C, ))="", "out of range", TEXTJOIN(", ", 1,
IF((E2*1>=Locations!D$2:D)*
(E2*1<=Locations!E$2:E)*
(F2*1>=Locations!F$2:F)*
(F2*1<=Locations!G$2:G),
Locations!C$2:C, )))))
//Using a definite range...//
=ARRAYFORMULA(
IF(B2:B100="",,IF(TEXTJOIN(", ", 1,
IF((E2:E100*1>=Locations!D$2:D)*
(E2:E100*1<=Locations!E$2:E)*
(F2:F100*1>=Locations!F$2:F)*
(F2:F100*1<=Locations!G$2:G),
Locations!C$2:C, ))="", "out of range", TEXTJOIN(", ", 1,
IF((E2:E100*1>=Locations!D$2:D)*
(E2:E100*1<=Locations!E$2:E)*
(F2:F100*1>=Locations!F$2:F)*
(F2:F100*1<Locations!G$2:G),
Locations!C$2:C, )))))
//Using Infinite Range//
=ARRAYFORMULA(
IF(B2:B="",,IF(TEXTJOIN(", ", 1,
IF((E2:E*1>=Locations!D$2:D)*
(E2:E*1<=Locations!E$2:E)*
(F2:F*1>=Locations!F$2:F)*
(F2:F*1<=Locations!G$2:G),
Locations!C$2:C, ))="", "out of range", TEXTJOIN(", ", 1,
IF((E2:E*1>=Locations!D$2:D)*
(E2:E*1<=Locations!E$2:E)*
(F2:F*1>=Locations!F$2:F)*
(F2:F*1<Locations!G$2:G),
Locations!C$2:C, )))))
Also a side note. From what I remember, it all worked fine before I create the "IF" function to keep the cells empty if B-cells were blank (AKA no entry in that row), otherwise the "Locations" column and Arrayformula would populate NA to infinity.
Here's the link to the sheet. https://docs.google.com/spreadsheets/d/1OZSDju3hRyGyRfFhHJT2PLQ3DBvcfOAT1ZvNxB-J0DQ/edit?usp=sharing