Previous in Forum: HomePriceMaps.com a new cool mashup   Next in Forum: Games of chance and random number generators
Close
Close
Close
12 comments
Rate Comments: Nested
The Engineer
Engineering Fields - Engineering Physics - Physics... United States - Member - NY Popular Science - Genetics - Organic Chemistry... Popular Science - Cosmology - New Member Ingeniería en Español - Nuevo Miembro - New Member

Join Date: Feb 2005
Location: Albany, New York
Posts: 5060
Good Answers: 129

Excel Riddle

03/29/2006 12:25 PM

In Excel, columns are labelled A, B, C, etc. When you run out of letters, in other words, when you get to the 27th column, it's labelled AA, followed by AB, AC, etc. We just received the newest edition of excel, which can go up to column XFD. What number column would XFD be? And what formula could we use to figure out the column number of any column, like AAB or CDF?.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Participant

Join Date: Mar 2006
Posts: 2
#1

Hey All, My First Post

03/29/2006 1:55 PM

If you treat it as an alternate numbering system, like hexadecimal, you can convert any column name fairly quickly. Convert all your letters to their numerical values (A=1, B=2, etc). Your rightmost column is your "singles", so that number is what it is. The number to the left is how many times you've cycled through your singles, so mulitply it by 26. The number to its left is how many times you've cycled through your "twentysixes", so multiply it by 26 twice. So, XFD is: (24)(26^2)+(6)(26)+(4) (16224)+(156)+(4) 16384

Register to Reply
The Engineer
Engineering Fields - Engineering Physics - Physics... United States - Member - NY Popular Science - Genetics - Organic Chemistry... Popular Science - Cosmology - New Member Ingeniería en Español - Nuevo Miembro - New Member

Join Date: Feb 2005
Location: Albany, New York
Posts: 5060
Good Answers: 129
#2
In reply to #1

Re:Hey All, My First Post

03/29/2006 3:25 PM

Thanks, that works great. Using your formula, CDF = (26^2)3 + (26)4 + 6 = 2028 + 104 + 6 = 2138

Looks good, thanks.

Register to Reply
Guru
Hobbies - HAM Radio - New Member Popular Science - Weaponology - New Member United States - Member - New Member Engineering Fields - Mechanical Engineering - New Member

Join Date: Jan 2006
Location: Saint Louis, Missouri USA
Posts: 1929
Good Answers: 9
#3
In reply to #1

Too Easy!

03/30/2006 8:45 AM

That was so easy, a Caveman could have done it!

(grin)

:-P

__________________
"What, me worry?" Alfred E. Neuman
Register to Reply
Participant

Join Date: Mar 2006
Posts: 2
#4
In reply to #3

Re:Too Easy!

03/30/2006 10:17 AM

Just call me Ugg.

Register to Reply
Active Contributor

Join Date: Jan 2006
Posts: 10
#5
In reply to #1

Re:Hey All, My First Post

03/30/2006 10:23 AM

It's not too often you count using base 26...

Register to Reply
Power-User

Join Date: Jun 2005
Posts: 394
Good Answers: 1
#7
In reply to #1

Re:Hey All, My First Post

03/31/2006 9:14 AM

XFD is 2^14

Register to Reply
Guru

Join Date: Feb 2006
Posts: 1758
Good Answers: 6
#10
In reply to #1

Re:Hey All, My First Post

04/09/2006 9:31 PM

It is simply conversion from one base to other,like from Binary to Decimal, Octal -> Decimal etc.
In XFD it is from Base 26 -> Decimal.
D is in the [x1]in position = 4;
F is in [X26] position = 26 x 6 = 156;
X is in [26 Squared ie [26 x 26] pos so 26 x 26 x 24 = 16224

16224 + 156 + 4 = 263218336

Register to Reply
Anonymous Poster
#6

Column Number, get Excel to do it for you!

03/30/2006 12:24 PM

You can use a feature in Excel to do this. See: http://www.techonthenet.com/excel/formulas/column. php Useful explanation for working it out though!

Register to Reply
Anonymous Poster
#8
In reply to #6

Re:Column Number, get Excel to do it for you!

04/01/2006 2:30 AM

I doubt who would really use that many columns in one Excel spreadsheet. This is crazy. I would definitely use normalized database tables instead of putting everything in a spreadsheet.

Register to Reply
The Engineer
Engineering Fields - Engineering Physics - Physics... United States - Member - NY Popular Science - Genetics - Organic Chemistry... Popular Science - Cosmology - New Member Ingeniería en Español - Nuevo Miembro - New Member

Join Date: Feb 2005
Location: Albany, New York
Posts: 5060
Good Answers: 129
#9
In reply to #8

Re:Column Number, get Excel to do it for you!

04/05/2006 5:56 PM

I'm sorry, I had failed to consider every possible situation possible as you have obviously done to determine the merit of the question. I beg your forgivness, but since you are obviously God, I'm sure you'll just let it go.

Register to Reply
Anonymous Poster
#11

Re: Excel Riddle

12/29/2008 2:59 PM

16384

Register to Reply
Anonymous Poster
#12

Re: Excel Riddle

06/09/2010 12:14 PM

number 16384

formula: =column()

Register to Reply
Register to Reply 12 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (4); Bayes (2); Carpens (2); Haajee (1); Howetwo (1); Jake (1); STL Engineer (1)

Previous in Forum: HomePriceMaps.com a new cool mashup   Next in Forum: Games of chance and random number generators
You might be interested in: Columns, GC Columns, HPLC Columns

Advertisement