I assume from your first post that you have far more data than in this example, and to produce over 1000 separate tables would be a bit cumbersome. So, I have given you the ability in the attached workbook to choose the borehole_ID from a drop-down in H1 (coloured yellow), and the appropriate table will be produced immediately for you. The drop-down source is the dynamic named range in column O, which lists the unique borehole_IDs from your raw data - as this is dynamic, you just need to add other IDs at the bottom of the list in any order.
Cell F1 contains zero (important - not a space or empty), and F2 contains this formula:
which is copied down BEYOND your data - the hyphens help to show how far it has been copied (I've copied to row 50).
I've used another helper column (H) with this formula in H2:
and I have coloured this grey, although you could make it white if you don't want to see those numbers. Then the table itself is made up of these formulae in the cells stated:
I2:
J2:
K2:
L2:
The formulae in H2:L2 then need to be copied down as far as to encompass your deepest borehole - I've copied to row 25 in the example file.
Now, all you need to do is to use the drop-down in H1 and choose a borehole of interest - the table will adjust automatically.
Hope this helps.
Pete
Bookmarks