An improperly constructed table

cmcreynolds

Active Member
Joined
May 21, 2015
Messages
295
I was just handed an Excel file with "tables" within it, however, there is no database structure to it - it is basically just a ledger - months at the top, but above that headers "merged and centered"; Categories and Subcategories on the left. I'm supposed to link (via Power Query) this data to another report and it's just impossible in the current format.

Before I start the mind-numbing process of converting this manually, is there a way for Excel (or another program) to convert this to a database table? :( (I'm preparing/fearing the response is "spend the next few days copying and pasting") :eek:

Thank you.
 
But when I follow the video, it puts those into the same column. It's like a rubik's cube that I'm wanting to rotate! lol

Edit: I need them each in their own field, not all in one field...does that make sense? (remember: sinus headache)
 
Last edited:
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Oh if you mean how do you separate the group field from the name field after concatenating and unpivoting, use text to columns in the data menu.
 
Upvote 0
I'm able to do that. Maybe I'm not expressing what I need - Later, I will have to group by Leads, Enrollments, New Students, etc. So, don't they have to be their own fields instead of lumped into one (as it is now)?

I suppose I can keep them together in the field and label it "category"?
 
Last edited:
Upvote 0
But the problem is that some of them are counts of students and some are $ amounts (revenue and cost). Wouldn't it be better if they are separated into their own fields?
 
Upvote 0
Yes, keep them in one field and either pivot like this:


Excel 2010
ABCD
1
2
3Sum of ValueColumn Labels
4Row LabelsLeadsNew EnrollmentReturning Students
5A
6Jan52158
7July5200
8Feb5200
9August52153
10Oct5284
11Nov5200
12Dec5200
13Sept5200
14A Total4163815
15B
16Jan8518
17July1700
18Feb800
19August17513
20Oct17012
21Nov1700
22Dec1700
23Sept1700
24B Total1181043
25C
26Jan29517
27July2900
28Feb2900
29August291013
30Oct29020
31Nov2900
32Dec2900
33Sept2900
34C Total2321550
35D
36Jan311267
37July3100
38Feb3100
39August31289
40Oct31265
41Nov3100
42Dec3100
43Sept3100
44D Total24816221
45E
46Jan241027
47July3600
48Feb2400
49August36726
50Oct36333
51Nov3600
52Dec3600
53Sept3600
54E Total2642086
55F
56Jan573554
57July11400
58Feb5700
59August1143536
60Oct114068
61Nov11400
62Dec11400
63Sept11400
64F Total79870158
65G
66Jan28512
67July2800
68Feb2800
69August2850
70Oct2858
71Nov2800
72Dec2800
73Sept2800
74G Total2241520
Sheet4


Or sort/filter. Remember, you can present data any way you want, but store it in the 1-to-1 normal data format rather than the separate sheet crosstab jumble you unfortunately inherited.
 
Upvote 0
But the problem is that some of them are counts of students and some are $ amounts (revenue and cost). Wouldn't it be better if they are separated into their own fields?


In that case Value would still be its own field, and you can add a calculated field for count
 
Upvote 0
Okay - I've done that, but can you format some as dollar amounts and some as counts? Doesn't Excel treat them as the same "kind" of number if they are in the same field? I didn't put all the categories down in my original, but some are going to be revenue/cost related. (A-January = $10,000, A-February, $750, etc)
 
Upvote 0
Keep each field in the same format yes, but can you show me a before/after example (in simplest form)? I can't tell from the original example which are dollar amounts and which are counts.
 
Upvote 0
Yes, I apologize. Can we pretend that Leads are in dollars? and New Enrollments and Returning Students are counts?
 
Upvote 0
Great - this is starting to get me somewhere. The person who created these went just for visual layout and not for any type of database usage. So, there are thirteen tabs with all this data. My goal is to combine them all into one data table, then use pivot tables and slicers (since the tabs will never be compared to one another, I think slicers would be much easier to manipulate).

Anyway, I'm progressing - even with a horrible sinus headache this morning. :)

Thank you very much.
PowerQuery has that lovely UNPIVOT function in it which looks like it may have been a possible angle on your original data (not seen it).
You can have a Pivot Table on data from multiple tabs/tables using Multiple Consolidation Ranges (Pivot Table Wizard, Alt,D,P) though I do support having a single table as the primary choice.
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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