Select row 1 and convert to text

MartinL

Well-known Member
Joined
Oct 16, 2008
Messages
1,141
Office Version
  1. 365
Platform
  1. Windows
I have a sheet that come to me each month that contains some key data in columns 1 to 3 and then a series of dates in columns 4 to 100. with all the numeric values below - around 100k rows
next month it will be from 4 to 101
the following month from 4 to 102 and so on
i.e. the number of columns is dynamic

I need the month to be the header so that I can un-pivot the data, but as you cannot have a date field as a header the top row needs to be converted to a text field.
If I do this now everything else works just fine and dandy but the following month the last date field does not get converted as it could not be previously selected.

What I feel I need is to select row 1 and convert it to text then Use first row as headers but I have not found a way to convert row 1 to text so I can do this.

Has anyone else found a way around this, or can suggest a way.

example data
Excel Workbook
ABCDEFGHI
1Column1Column2Column3Column4Column5Column6Column7Column8Column9
2Region-SKURegionSKU01/01/201601/02/201601/03/201601/04/201601/05/201601/06/2016
3R01BJSUVXDWQHZZR01BJSUVXDWQHZZ3712693
4R01YMOJACLMLJRWR01YMOJACLMLJRW202711181521
5R01CDLKXGCGGUFMR01CDLKXGCGGUFM1282378
6R01TVMXPYGZNRDHR01TVMXPYGZNRDH324013
7R01HVUWGMAVFIZTR01HVUWGMAVFIZT000000
8R01POKDJLFYIWMHR01POKDJLFYIWMH000000
9R01GZXAOQSBKMZAR01GZXAOQSBKMZA000000
10R01SBTVZUTNONBDR01SBTVZUTNONBD211112
Sheet1
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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