Hi and welcome to the board.
Your thread title states : " Formula or VBA code ..."
But your body text states :"But I would like to have a VBA code .."
Which do you want? VBA or a formula ? ( VBA is another subforum)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
|