How can I select discontiguous ranges without using my mouse?

SarahF07

New Member
Joined
Jun 2, 2011
Messages
12
Hi, I am trying to find a way to select 2(+) discontinguous ranges without having to use my mouse. I am not sure if there is already a keyboard shortcut to do this, or if I can create my own keyboard shortcut with a macro. I haven't had any luck finding an answer on my own so would really appreciate any suggestions.

Here is an example of what I am trying to do: I want to select A5:A20 and E5:E20 (say because I want to graph these 2 sets against each other).

Is there a way to do this without using the mouse?

Currently, I select through the keyboard A5:A20, and then holding down the Ctrl key I select E5:E20 with my mouse.

Thank you!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the board.

i don't think you can because of the need to hold down CTRL and move the cursor to the next non-continuous cell that you want selected
 
Upvote 0
My guess is these ranges always change?

If not you could use this macro and assign a shortcut key.

Code:
Sub GraphRanges()
    Range("A5:A20,E5:E20").Select
End Sub
 
Upvote 0
At a previous company I worked for they had built a macro that could do this, so I believe it's possible. Unfortunately I didn't have access to the code to take it with me!
 
Upvote 0
If you give the range a name ("Bob"), you can do Ctrl+G, Bob

The range can be defined as absolute (which will adjust with row and column insertion or deletion) or relative.
 
Upvote 0
• Select cells A5:A20
• Press SHIFT+F8...(You'll see "Add to Selection" in the status bar)
• Use arrow keys to move to cell E5
• Hold down SHIFT while you use the down arrow key to extend down to E20
Now you have two areas selected...A5:A20 and E5:E20

Does that help?
 
Upvote 0
Have a look at "Shorcuts" XL Help
"Keys for selecting data and cells"
"Extend selection"
"Shift +F8"
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,551
Members
452,927
Latest member
rows and columns

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top