I have a "Template" as in the MiniSheet below where I want to copy data to DataBase Sheet. (I present 02 sheets in 01 layout here for easier reference). What I want to do is I want to select and copy the non-blank cells in each Month column and paste in Database Sheet vertically with the name of the Month in each row. Is there any way to do it in VBA instead of copy manually?
Book3 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
2 | Template | |||||||||||||||
3 | Name | Category | Jan 2020 | Feb 2020 | Mar 2020 | Apr 2020 | May 2020 | Jun 2020 | Jul 2020 | Aug 2020 | Sep 2020 | Oct 2020 | Nov 2020 | Dec 2020 | ||
4 | Apple Juice | Sour | $ 3.00 | $ 4.00 | $ 5.00 | $ 4.00 | $ 5.00 | $ 6.00 | $ 3.00 | |||||||
5 | Lemon Juice | Sour | $ 3.00 | $ 2.00 | $ 1.00 | $ 4.00 | $ 3.00 | $ 3.00 | $ 3.00 | |||||||
6 | Oragne Juice | Sweet | $ 2.00 | $ 1.00 | $ 3.00 | $ 5.00 | ||||||||||
7 | Watermelon Juice | Sweet | $ 4.00 | $ 1.00 | $ 4.00 | $ 5.00 | $ 5.00 | |||||||||
8 | ||||||||||||||||
9 | ||||||||||||||||
10 | Database | |||||||||||||||
11 | Name | Category | Period | Value | ||||||||||||
12 | Apple Juice | Sour | Jan 2020 | $ 3.00 | ||||||||||||
13 | Lemon Juice | Sour | Jan 2020 | $ 3.00 | ||||||||||||
14 | Oragne Juice | Sweet | Feb 2020 | $ 2.00 | ||||||||||||
15 | Apple Juice | Sour | Mar 2020 | $ 4.00 | ||||||||||||
16 | Watermelon Juice | Sweet | Mar 2020 | $ 4.00 | ||||||||||||
Sheet1 |