Hi,
I want to create new tables (1 for each day of the week) from an existing table.
The existing table has data in the below format.
There are no formulae or anything else in the data table.
Any suggestion on how I can use VBA to create 7 new tables (1 for each day of the week) with the corresponding data?
Thanks!!
~kg
I want to create new tables (1 for each day of the week) from an existing table.
The existing table has data in the below format.
Dated | Day | B1 | B2 | B3 | B4 | B5 | B6 | B7 | B8 | B9 | B10 | B11 | B12 |
7/1/2021 | Thursday | 0.69 | 0.72 | 0.75 | 1.01 | 0.82 | 1.11 | 0.71 | 0.91 | 0.62 | 1.44 | 0.72 | 0.84 |
7/2/2021 | Friday | 0.69 | 0.74 | 0.76 | 1.01 | 0.82 | 1.16 | 0.71 | 0.91 | 0.64 | 1.46 | 0.72 | 0.86 |
7/6/2021 | Tuesday | 0.73 | 0.81 | 0.82 | 1.09 | 0.91 | 1.23 | 0.76 | 0.94 | 0.74 | 1.66 | 0.81 | 0.97 |
7/7/2021 | Wednesday | 0.74 | 0.85 | 0.84 | 1.11 | 0.93 | 1.26 | 0.77 | 0.96 | 0.74 | 1.66 | 0.83 | 0.99 |
7/8/2021 | Thursday | 0.76 | 0.85 | 0.87 | 1.13 | 0.94 | 1.32 | 0.85 | 1.01 | 0.74 | 1.69 | 0.86 | 1.14 |
7/9/2021 | Friday | 0.76 | 0.85 | 0.89 | 1.18 | 0.95 | 1.35 | 0.85 | 1.02 | 0.75 | 1.69 | 0.86 | 1.14 |
7/10/2021 | Saturday | 0.76 | 0.85 | 0.89 | 1.17 | 0.95 | 1.36 | 0.85 | 1.01 | 0.74 | 1.69 | 0.86 | 1.12 |
7/11/2021 | Sunday | 0.76 | 0.84 | 0.9 | 1.18 | 0.94 | 1.35 | 0.85 | 1.01 | 0.75 | 1.67 | 0.85 | 1.12 |
7/12/2021 | Monday | 0.76 | 0.86 | 0.9 | 1.18 | 0.95 | 1.36 | 0.85 | 1.02 | 0.76 | 1.7 | 0.87 | 1.14 |
7/13/2021 | Tuesday | 0.77 | 0.86 | 0.92 | 1.18 | 0.97 | 1.36 | 0.86 | 1.03 | 0.76 | 1.7 | 0.88 | 1.14 |
7/14/2021 | Wednesday | 0.77 | 0.86 | 0.92 | 1.19 | 0.98 | 1.38 | 0.88 | 1.04 | 0.77 | 1.7 | 0.89 | 1.13 |
7/15/2021 | Thursday | 0.78 | 0.86 | 0.94 | 1.19 | 0.97 | 1.4 | 0.89 | 1.05 | 0.77 | 1.69 | 0.9 | 1.14 |
7/16/2021 | Friday | 0.79 | 0.86 | 0.95 | 1.22 | 0.96 | 1.42 | 0.89 | 1.05 | 0.78 | 1.71 | 0.9 | 1.14 |
7/17/2021 | Saturday | 0.78 | 0.86 | 0.94 | 1.21 | 0.98 | 1.41 | 0.89 | 1.05 | 0.78 | 1.71 | 0.9 | 1.13 |
7/18/2021 | Sunday | 0.42 | 0.55 | 0.57 | 0.79 | 0.54 | 0.79 | 0.47 | 0.56 | 0.37 | 0.77 | 0.46 | 0.53 |
7/19/2021 | Monday | 0.57 | 0.77 | 0.7 | 0.95 | 0.72 | 0.94 | 0.65 | 0.77 | 0.57 | 1.26 | 0.62 | 0.65 |
7/20/2021 | Tuesday | 0.58 | 0.79 | 0.72 | 0.99 | 0.74 | 0.96 | 0.67 | 0.77 | 0.57 | 1.27 | 0.63 | 0.68 |
7/21/2021 | Wednesday | 0.62 | 0.8 | 0.72 | 1.01 | 0.75 | 1 | 0.69 | 0.81 | 0.58 | 1.34 | 0.66 | 0.76 |
7/22/2021 | Thursday | 0.61 | 0.81 | 0.72 | 1.05 | 0.78 | 1.01 | 0.7 | 0.82 | 0.59 | 1.34 | 0.69 | 0.78 |
7/23/2021 | Friday | 0.61 | 0.84 | 0.72 | 1.06 | 0.79 | 1.01 | 0.71 | 0.83 | 0.6 | 1.35 | 0.71 | 0.79 |
7/24/2021 | Saturday | 0.62 | 0.84 | 0.72 | 1.08 | 0.79 | 1 | 0.7 | 0.83 | 0.61 | 1.35 | 0.72 | 0.8 |
7/25/2021 | Sunday | 0.62 | 0.84 | 0.73 | 1.09 | 0.79 | 1.01 | 0.69 | 0.83 | 0.61 | 1.35 | 0.72 | 0.8 |
7/26/2021 | Monday | 0.62 | 0.85 | 0.73 | 1.09 | 0.8 | 1.01 | 0.7 | 0.84 | 0.62 | 1.37 | 0.73 | 0.82 |
7/27/2021 | Tuesday | 0.63 | 0.86 | 0.74 | 1.09 | 0.8 | 1.02 | 0.72 | 0.86 | 0.62 | 1.38 | 0.73 | 0.85 |
7/28/2021 | Wednesday | 0.67 | 0.89 | 0.77 | 1.12 | 0.85 | 1.03 | 0.76 | 0.92 | 0.66 | 1.42 | 0.77 | 0.87 |
There are no formulae or anything else in the data table.
Any suggestion on how I can use VBA to create 7 new tables (1 for each day of the week) with the corresponding data?
Thanks!!
~kg