Hello,
I have the below formula that looks at two different sheets to determine the status of a test result.
The first index collect logic is looking for the Lot ID AND the test type are both found on the same row of the Test Log sheet. If he has found both then it looks up what the test status is and returns it back to me.
The second logic only runs if the first logic returns and error (meaning not found on the Test Log) and looks to see if the sample is still in the Test queue and if so then returns "Pending".
These both work just fine as is. However I would like to have it where if both of these return nothing or error out then i get back "N/A". Right now all the IF(NOT), ISBLANK and IFERROR combos either give me a blank result or "Pending". In the event where the a test sample requires multiple test types, I have built out this formula to just sub in the "Incorporation" for the other assay types I am looking for, however some test samples do not need ALL of the test types and so there will be instances where the Lot ID will be found on the queue but doesnt require "Incorporation" testing and needs a different test. This is the case I want to return an "N/A" for.
=IFERROR(INDEX(COLLECT({QC Result - Enzyme Test Log}, {Test Log - Lot ID Helper}, [Lot ID Helper]@row, {Test Log - Assay Type}, "Incorporation"), 1), IF(HAS({Enzyme Queue Lot ID}, [Lot ID Helper]@row), "Pending"))