Extracting data from table to make new table

BKGLTS

Board Regular
Joined
Aug 27, 2018
Messages
82
1/25/20191/26/20191/27/20198/15/20198/16/20198/1/20209/1/2020
1Item1100100100100100Y
2Item2100100100100100100Y
3Item350505050505050
4Item425252525252525
5Item525252525252525
The table above is how the data is formatted. I need help with formulas please to extract data out of this table and put it into the new table below.
The new table must first determine column headers by looking at the dates in the source table column headers. It should include no more than one month for each year regardless of how many dates in that month are present in the source data, but only if there is at least some data in the column for rows containing the "Y". For example notice that AUG appears twice because they are different years, and notice that the column header doesn't populate with "SEP" in the new table for the 9/1/2020 column in the source table, because there is no data in the rows for that column that have a "Y".
For the rows that have a "Y" the new table must then calculate the sum of all the cells in that row that fall within each respective month.
For example, January of 2019 has three dates in the source table and totals 300 for Item 1. August 2019 has two dates in the source table and those cells total 200 for Item 1.
All items should be represented in the new table regardless if there is any data included for them.
JANAUGAUG
1Item1300200
2Item2300200100
3Item3
4Item4
5Item 5

<tbody>
</tbody>
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This post was too complicated and confusing, I figured out some of it my own and reposted for help on the part i couldnt figure out. This post can be deleted.
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top