ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   naming cells (https://www.excelbanter.com/excel-discussion-misc-queries/108738-naming-cells.html)

Dave

naming cells
 
i have the numbers 1 to 80 in a column of cells. i want to name these cells
num1, num2 ..... num80. is there an easier way to do this rather than
clicking on each cell and naming it in the name box? i notice that the
cop/paste function doesn't work for the name box. tia

Dave



Bob Umlas

naming cells
 
enter num1 in an adjacent column, say your data is in A1:A80, place num1 in
B1. double-click the fill handle so you have num1 thru num80. Select A1:B80,
use Insert/Name/Create and choose "Right Column". When that's done, clear
column B and you're done.
Bob Umlas
Excel MVP
"Dave" wrote in message
...
i have the numbers 1 to 80 in a column of cells. i want to name these

cells
num1, num2 ..... num80. is there an easier way to do this rather than
clicking on each cell and naming it in the name box? i notice that the
cop/paste function doesn't work for the name box. tia

Dave





bigwheel

naming cells
 
You could put it in a macro

For a = 1 To 80
ActiveWorkbook.Names.Add Name:="num" & a, RefersToR1C1:="=Sheet1!R"
& a & "C1"
Next a

"Dave" wrote:

i have the numbers 1 to 80 in a column of cells. i want to name these cells
num1, num2 ..... num80. is there an easier way to do this rather than
clicking on each cell and naming it in the name box? i notice that the
cop/paste function doesn't work for the name box. tia

Dave





All times are GMT +1. The time now is 06:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com