I would like to convert an excel cell eg : A1 to 1,1 G6 to 7,6 etc
Does any one have idea for it? Note : This is required for a C# application.
views:
200answers:
3
+3
A:
If I understand you correctly try
=COLUMN(G6) & "," & ROW(G6)
This will return
7,6
astander
2009-12-23 08:46:20
Steve Weet
2009-12-23 08:51:19
Thats Exactly what I am looking for.
Thunder
2009-12-23 08:51:51
A:
If you want to do this as an Excel formula then this will work
=CONCATENATE(ROW(G6),",",COLUMN(G6))
However if you have the cell reference in a string then you will need to use the INDIRECT function as follows
=CONCATENATE(ROW(INDIRECT("G6")),",",COLUMN(INDIRECT("G6")))
This gives a result of 6,7 (Row,Column) as specified in the title.
Steve Weet
2009-12-23 08:47:11
+1
A:
You should be able to just treat the alphabetic portion as a number in base 26, with A = 0 (in Excel, the column names eventually repeat, as in "AA").
RickNZ
2009-12-23 09:19:54