# Another way of writing a range in excel

#### Chris6629

##### New Member
'A range in Summary Tab
Sheets("Summary").Range("A3:A35") 'first way

'It can also be written in another way using Cells (x,y)
Sheets("Summary").Range(Cells(3,1),Cells(35,1)) 'another way

'Another range in Summary Tab
Sheets("Summary").Range("A3:A35,JA3:JA35")

'Question : How this range can be witten in the other way? Using Cells(x,y)?

Thanks you
Chris6629

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying

#### RoryA

##### MrExcel MVP, Moderator
This is not correct:
Code:
``Sheets("Summary").Range(Cells(3,1),Cells(35,1))``
It should be:
Code:
``Sheets("Summary").Range(Sheets("Summary").Cells(3,1),Sheets("Summary").Cells(35,1))``

You can't directly convert your final example, you have to use Union:
Code:
``Union(Sheets("Summary").Range(Sheets("Summary").Cells(3,1),Sheets("Summary").Cells(35,1)), Sheets("Summary").Range(Sheets("Summary").Cells(3,"JA"),Sheets("Summary").Cells(35,"JA")))``

#### Rick Rothstein

##### MrExcel MVP
You can't directly convert your final example, you have to use Union:
Code:
``Union(Sheets("Summary").Range(Sheets("Summary").Cells(3,1),Sheets("Summary").Cells(35,1)), Sheets("Summary").Range(Sheets("Summary").Cells(3,"JA"),Sheets("Summary").Cells(35,"JA")))``
This kind of matches what the OP was asking for (the Resize is "new") and seems to work as well...

Code:
``Sheets("Summary").Range(Sheets("Summary").Cells(3,1).Resize(33).Address & "," & Sheets("Summary").Cells(35,10).Resize(33).Address)``

#### Chris6629

##### New Member
Thank you very much

Replies
0
Views
300
Replies
1
Views
232
Replies
8
Views
2K
Replies
1
Views
207
Replies
3
Views
271

1,191,025
Messages
5,984,195
Members
439,877
Latest member
kellylet

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back