You are amazing! I had no idea it could be so simple. I forgot to include the Depth value in my original dataset, but amazingly, it did it for me with that code, exactly as I wanted.
Thank you, thank you, thank you, I can now start my NMDS analysis!!