{"text_format":"1","workbook":"xlsx","n_sheets":4,"sheets":["Column number - Examples","Column letter to number ","Custom function","Column number of cell"],"not_rendered":{"charts":0,"images":4,"macros":1,"external_links":0,"defined_names":0,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Column number - Examples","index":0,"n_rows":17,"n_cols":7,"rows_kept":17,"cut":false,"hidden":false,"merged":[[3,1,3,5],[5,1,5,2],[11,1,11,2],[12,1,12,2]]}
[]
[]
[]
[null,"Sample Workbook to Return Column Number"]
[]
[null,"The workbook shows how to convert a column letter to number in Excel using formulas and a custom function."]
[null,"Author","Ablebits.com"]
[null,"Last update","2022-03-11"]
[null,"Tutorial URL","How to number columns in Excel"]
[]
[null,"Examples:"]
["• ","Convert column letter to number "]
["• ","Change column letter to number using a custom function"]
["• ","Return column number of a specific cell"]
[]
[]
[null,null,null,null,null,null," "]

{"sheet":"Column letter to number ","index":1,"n_rows":8,"n_cols":3,"rows_kept":8,"cut":false,"hidden":false,"merged":[]}
["Column letter","Column number\n(volatile formula)","Column number\n(non-volatile formula)"]
["A",{"$f":"COLUMN(INDIRECT(A2&\"1\"))","v":1},{"$f":"MATCH(A2&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":1}]
["Z",{"$f":"COLUMN(INDIRECT(A3&\"1\"))","v":26},{"$f":"MATCH(A3&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":26}]
["AA",{"$f":"COLUMN(INDIRECT(A4&\"1\"))","v":27},{"$f":"MATCH(A4&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":27}]
["AZ",{"$f":"COLUMN(INDIRECT(A5&\"1\"))","v":52},{"$f":"MATCH(A5&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":52}]
["AAA",{"$f":"COLUMN(INDIRECT(A6&\"1\"))","v":703},{"$f":"MATCH(A6&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":703}]
["AAZ",{"$f":"COLUMN(INDIRECT(A7&\"1\"))","v":728},{"$f":"MATCH(A7&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":728}]
["XFD",{"$f":"COLUMN(INDIRECT(A8&\"1\"))","v":16384},{"$f":"MATCH(A8&\"1\",INDEX(ADDRESS(1, INDEX(COLUMN($1:$1),), 4),), 0)","v":16384}]

{"sheet":"Custom function","index":2,"n_rows":8,"n_cols":2,"rows_kept":8,"cut":false,"hidden":false,"merged":[]}
["Column letter","Column number"]
["A",{"$f":"ColumnNumber(A2)","v":1}]
["Z",{"$f":"ColumnNumber(A3)","v":26}]
["AA",{"$f":"ColumnNumber(A4)","v":27}]
["AZ",{"$f":"ColumnNumber(A5)","v":52}]
["AAA",{"$f":"ColumnNumber(A6)","v":703}]
["AAZ",{"$f":"ColumnNumber(A7)","v":728}]
["XFD",{"$f":"ColumnNumber(A8)","v":16384}]

{"sheet":"Column number of cell","index":3,"n_rows":8,"n_cols":1,"rows_kept":8,"cut":false,"hidden":false,"merged":[]}
["Column letter of current cell"]
[{"$f":"COLUMN()","v":1}]
[]
["Column letter of cell C5"]
[{"$f":"COLUMN(C5)","v":3}]
[]
[]
[">>To view the function's code, press Alt + F11."]