I have two sheets, one being a Related sheet that has three columns:
Number, Label, Date
Then there is a Main Sheet that also has
Number, Label, Date (plus other columns)
This is simulating a One-to-Many relationship as the Related Sheet can have multiple entries for each Number which I want to collect into multiple columns on one row into the main sheet dependant on what the Label is in the Related Sheet.
I want to search for the matching number and label values and return the date from the Related sheet
Is there a way to match multiple columns and return a value (Date) other than using
=JOIN(COLLECT({Related Sheet Date}, {Related Sheet Num}, [Main Sheet Number]@row, {Related Sheet Label}, "Label 1"))
which returns the Date as a string and then I have to have a string column to return that into and then use a formula to convert the string to a date, such as the formula:
=IF(NOT(ISBLANK(DateStr@row)), DATE(VALUE("20" + RIGHT(DateStr@row, 2)), VALUE(MID(DateStr@row, 4, 2)), VALUE(LEFT(BDStr@row, 2))))
Doing this sometime causes errors temporarily (until a reload and save) in the Main sheet due to the Australian date format being DD/MM/YYYY and there being instances where the date is returned in the US format MM/DD/YYYY which is invalid for DD greater than 12. Might have something to do with hosting on US servers.
Not to mention it is a lot of unnecessary calculating and extra columns which is cumbersome.