HI Mary, do you perhaps have a picture of the wine rack. It would make it easier for us to give you the correct advice
Mary, I love the pallet wine rack look and here is a tutorial. If you would like to look at more ideas then click on "explore projects" then put "wine rack" in the search box and hit enter. You will find a good number of ideas, perhaps one will be what you need: https://www.hometalk.com/6055067/how-to-make-a-pallet-wine-rack
Are you removing your wine rack from cabinets? Need a picture, please.