excel tables column numbers

sts8500man

Board Regular
Joined
Jul 12, 2012
Messages
77
Office Version
  1. 365
Platform
  1. Windows
New to using Excel Tables. After converting data to a table, I noticed that not all the columns received sequential column numbers. I need to understand how that affects the efficacy of the data / worksheet. More specifically, table column number 1 is actually the fifth column in the table. Several next door columns were not given a column number. Table column number 2 is actually the 10th column. Also, two columns at the end of the table did not receive numbers. Everything seems to work OK. The VBA macros work correctly. The calculations from formulas seems to work OK. I guess I just do not understand the column numbering issue, why the columns are numbered, and what affect column numbers have on the worksheet. Would someone please enlighten me?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
The table header needs a "name", so if the cell has something in it, that is the "name", if a cell is empty then you will get column 1 for the 1st empty cell, column 2 for the 2nd, etc.
 
Upvote 0
Thank you for responding. Based on your response, it sounds like I need to create an empty table and import the data into the table; would that work to give each column a sequential number starting from the first column as "number 1"?
 
Upvote 0
Does your data have a header row?
I prefer to avoid having columns labeled as Column1, Column2 etc. as they mean nothing, whereas having labels of Cost, Qty, Date etc. are a lot more meaningful
 
Upvote 0
Yes sir. Every column in the spreadsheet has a header with names. The whole thing would not bother me if inconsistency were not present. For instance -- the first column that is given a column number is actually the fifth column of the table, but it, like the previous 4, has a column name. Then it skips columns 6 through 9 before providing the number 2 to the column which is actually the 10th column of the table. Column 10 has a name just as all the others have. From that point to the end of the columns, each one was assigned a number starting with 3 without skipping any more columns. Each of those also contained its own column name in the spreadsheet within which data was converted to a table. All columns contain numeric entries, either financial, numeric, or percentage from a formatting perspective. Everything in the table seems to work correctly in spite of the lack of consistency in the numbering of the columns. I could leave it as is, but I am trying to learn something about tables from this thread and I need to know how or if the lack of consistently numbered columns in the table will affect calculated results or the building of formulas or the writing of macros in VBA.
 
Upvote 0
Do you have any merged cells prior to converting the data to a table.
 
Upvote 0
None inside the table itself, including the "header row". There are merged cells in the spreadsheet but not the table. And, thank you for your response and continued help.
 
Upvote 0
If there are no merged cells in the header, then the only reason you should get Column 1, Column 2 as a label is if the cell is blank.
 
Upvote 0
Thank you again for responding. I just really don't understand this table column numbering issue in general. The cells in the column that excel called column 1 are blank but no other cells in the entire table are blank, including those it numbered column 2. I checked a different spreadsheet, one very similar to the one that generated this dialog, and it contains sequentially numbered columns starting from column 1 to the last column in the table. That table was built just like the one that generated this dialog, that is -- no merged cells, and containing header data. Two spreadsheets that are almost twins just containing data from different sources and different number of columns and rows and different calculations and charts. One has columns numbered sequentially from the first to the last, the other doesn't. Don't understand!
 
Upvote 0
If there are no blanks in the header & you select "My table has headers" you will not get Column 1 etc.
However if there are blanks they will get autonamed.

Before
CountyDistrictWardDistrictCodeWardCodeCountry
HertfordshireSt AlbansColney HeathE07000240E05009028England
HertfordshireSt AlbansWheathampsteadE07000240E05004804England
WiltshireWiltshireEthanduneE06000054E05008362England
LancashireHyndburnBarnfieldE07000120E05005207England
West YorkshireKirkleesCleckheatonE08000034E05001393England
West YorkshireBradfordKeighley CentralE08000032E05001355England
West YorkshireBradfordWorth ValleyE08000032E05001369England
Greater ManchesterBuryEastE08000002E05000672England
SomersetSedgemoorCheddar and ShiphamE07000188E05008905England
CheshireCheshire West and ChesterSaughall and MollingtonE06000050E05008692England
CountyWardDistrictCodeCountry
HertfordshireSt AlbansColney HeathE07000240E05009028England
HertfordshireSt AlbansWheathampsteadE07000240E05004804England
WiltshireWiltshireEthanduneE06000054E05008362England
LancashireHyndburnBarnfieldE07000120E05005207England
West YorkshireKirkleesCleckheatonE08000034E05001393England
West YorkshireBradfordKeighley CentralE08000032E05001355England
West YorkshireBradfordWorth ValleyE08000032E05001369England
Greater ManchesterBuryEastE08000002E05000672England
SomersetSedgemoorCheddar and ShiphamE07000188E05008905England
CheshireCheshire West and ChesterSaughall and MollingtonE06000050E05008692England


After
CountyDistrictWardDistrictCodeWardCodeCountry
HertfordshireSt AlbansColney HeathE07000240E05009028England
HertfordshireSt AlbansWheathampsteadE07000240E05004804England
WiltshireWiltshireEthanduneE06000054E05008362England
LancashireHyndburnBarnfieldE07000120E05005207England
West YorkshireKirkleesCleckheatonE08000034E05001393England
West YorkshireBradfordKeighley CentralE08000032E05001355England
West YorkshireBradfordWorth ValleyE08000032E05001369England
Greater ManchesterBuryEastE08000002E05000672England
SomersetSedgemoorCheddar and ShiphamE07000188E05008905England
CheshireCheshire West and ChesterSaughall and MollingtonE06000050E05008692England
CountyColumn1WardDistrictCodeColumn2Country
HertfordshireSt AlbansColney HeathE07000240E05009028England
HertfordshireSt AlbansWheathampsteadE07000240E05004804England
WiltshireWiltshireEthanduneE06000054E05008362England
LancashireHyndburnBarnfieldE07000120E05005207England
West YorkshireKirkleesCleckheatonE08000034E05001393England
West YorkshireBradfordKeighley CentralE08000032E05001355England
West YorkshireBradfordWorth ValleyE08000032E05001369England
Greater ManchesterBuryEastE08000002E05000672England
SomersetSedgemoorCheddar and ShiphamE07000188E05008905England
CheshireCheshire West and ChesterSaughall and MollingtonE06000050E05008692England
 
Upvote 0

Forum statistics

Threads
1,215,147
Messages
6,123,296
Members
449,095
Latest member
Chestertim

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