• If you would like to post, please check out the MrExcel Message Board FAQ and register here. If you forgot your password, you can reset your password.
  • Excel articles and downloadable files provided in the articles have not been reviewed by MrExcel Publishing. Please apply the provided methods / codes and open the files at your own risk. If you have any questions regarding an article, please use the Article Discussion section.
DRSteele

DATA TYPES and columns headers

Excel Version
  1. 365
The new DATA TYPES in Excel for Insiders (Beta at this point) are certainly good fun. But typing in the column title for the data you've extracted from each cell is a right pain.

If you wish to select a long list of items from the field selector, you would think that you would be doomed to have to look at each cell to see what has been selected and then type it into each cell above to act as a column header. Problems arise when you later change the cell reference but fail to update the header.

Instead, we can just use a formula to extract the relevant text from the data type formula. Notice that if the field selected is one word, the cell reference is in the form =D5.gravity whereas if the field selected has a space in it the cell reference is of the form =D5.[average radius], with the brackets. A formula can be put into the cell above and then copied rightways to cover however many cells you've extracted from the data type.

The one I have devised seems to be working. Please feel free to suggest improvements.

Here, cell D5 has been converted to Data Type | Space.

Cell Formulas
RangeFormula
E4:J4E4=IFNA(SUBSTITUTE(MID(FORMULATEXT(E5),MAX(IFERROR(SEARCH({"[";"."},FORMULATEXT(E5))+1,0)),100),"]",""),"")
E5E5=D5.name
F5F5=D5.[average radius]
G5G5=D5.[orbital period]
H5H5=D5.gravity
I5I5=D5.[object type]
J5J5=D5.obliquity
  • Like
Reactions: smozgur
Author
DRSteele
Views
2,072
First release
Last update
Rating
0.00 star(s) 0 ratings

More Excel articles from DRSteele

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