Is changing the position of a column possible?

Shweta

Well-known Member
Joined
Jun 5, 2011
Messages
514
Hi All,

Just want to know if we can change the sequence of columns appearing in a table.

For example, I had a table with two columns i.e. ProductId and ProductName. I added a column 'ID' later on to this table marked as primary key. But the thing is, it got added at the end. That means 'ID' column is the third column in my table however I wanted it to appear as first column.

Please suggest on it.

Thanks in advance!

Regards,
Shweta Jain
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You can select and drag columns in tables to your preferred position by clicking on the column header and dragging.
 
Upvote 0
Okay..thank you:)

However I have to do it every time I run the select query:(

Is there a way to make it permanent?
 
Upvote 0
Create a new table - fill it with the data from the old one. Then drop the old table and rename the new one. Always be sure to have a backup before operations like this.
 
Upvote 0

Forum statistics

Threads
1,221,808
Messages
6,162,097
Members
451,742
Latest member
JuanMark10

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