I am having some problems with the problem as stated: I have a worksheet containing column A with different well names. In a second and third column, there are top and bottom depths of a geological layer plus the name of the layer. Example: Well_XYZ --- 40.02 --- 40.55 --- Layer_NAME
In another worksheet, I have my list of samples taken at/from these different boreholes as stated in the other worksheet in column A, with a specific sample depth. Example: Sample-XYZ --- 40.34
Now, I want to know, which formula (written in EXCEL cell) I could use to add the Layer_NAME to the sample-ID sheet when checking the sample depth of the depth interval of each borehole. I tried several approaches (using INDEX/MATCH, VLOOKUP) but neither of them is working correctly (or the formula is not accepted with "missing arguments" according to my programming R "logic").
As I don't want to outsource these things to R (yet) but instead improve my Excel knowledge (which uses different "schemes" and approaches as with Python or R), I would be very happy if you could help me out on this and introduce me in the world of "excel-thinking". :)
Thank you very much in advance!