Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi'
I write: top_of_area = 2 for each c in range("C9:L9") name_of_column = c.column 'HERE I NEED AN ALFABET ANSWER NOT NUMBER row_number = c.row -1 c.value = "=sum(" & name_of_column & top_of_area & name_of_column & row_number & ")" next This only gives me the number which I cant use when I'm trying to make at "=sum..." in the cell for later work. Is there an easyer way? ....or just a working way? :) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There's probably an easier way, but it's not clear what you're doing
downstream. This quick and dirty formula gives you the column letter: name_of_column = split(c.address,"$")(1) - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "HH" wrote in message ... Hi' I write: top_of_area = 2 for each c in range("C9:L9") name_of_column = c.column 'HERE I NEED AN ALFABET ANSWER NOT NUMBER row_number = c.row -1 c.value = "=sum(" & name_of_column & top_of_area & name_of_column & row_number & ")" next This only gives me the number which I cant use when I'm trying to make at "=sum..." in the cell for later work. Is there an easyer way? ...or just a working way? :) |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How about:
activesheet.range("C9:L9").formular1c1 = "=sum(r2c:r[-1]c)" In R1C1 reference style: r2c means row 2 of the same column r[-1]c means the row above the cell of the same column HH wrote: Hi' I write: top_of_area = 2 for each c in range("C9:L9") name_of_column = c.column 'HERE I NEED AN ALFABET ANSWER NOT NUMBER row_number = c.row -1 c.value = "=sum(" & name_of_column & top_of_area & name_of_column & row_number & ")" next This only gives me the number which I cant use when I'm trying to make at "=sum..." in the cell for later work. Is there an easyer way? ...or just a working way? :) -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Difficulty "countif"-ing number of "L1" or "L2" on an autofiltered | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |