Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Excel, you can select an entire row by clicking its number at the left edge of the window. But doing so selects the entire row all the way to infinity. If you apply a fill color to a row selected in this way, the fill color also extends infinitely.

I need to select multiple rows which are not adjacent -- for example, rows 4, 6, 14, and 27 -- and so clicking and dragging a box won't help.

So, is there some easy way to select JUST to the end of columns containing data?

share|improve this question
3  
If you are applying fill color, is conditional formatting a possible way to accomplish your goal? –  William Jackson May 18 '11 at 16:06
    
That's a good suggestion, but not in this case -- I have a list of web pages, and need to highlight a specific group of those pages. They're identified by page title, not URL, and don't share any common data I could use as a hook for conditional formatting. So I've basically concluded I'll have to do it manually. Oh well. It'll be tedious, but shouldn't take more than an hour. –  Will Martin May 18 '11 at 16:34
add comment

4 Answers

up vote 3 down vote accepted

No, there is no easy way of selecting multiple non-continuous rows without selecting the entire row of each. You would need to do each row independently.

Using Just the Keyboard

If your rows contain consecutive cells with data, you can click the first cell, hold ctrl and shift and press the right arrow key to select the relevant area. If any cells in these rows are empty, you will only be able to select up to that point (unless you press the arrow key again).

Using the Keyboard and the Mouse

Per music2myear's edits: You can select non-contiguous regions by holding ctrl while clicking cells with your mouse. This would allow you to apply formatting to multiple regions simultaneously.

share|improve this answer
    
Yes, I read the question and gave what I consider to be a best fit answer - it does not meet ALL the criteria but it meets half of it and there is no simple trick to meet all the requirements. –  Linker3000 May 18 '11 at 16:27
1  
@Linker3000 - his question is how "to select JUST to the end of columns containing data" not "How do I select multiple rows". –  variant May 18 '11 at 16:29
    
My original answer and Linker3000's dealt with this as well. It could be applied to selecting whole rows as easily as it could be for selecting only the desired data rows. And yes, you can select multiple non-continuous and non-adjacent rows of data. You just have to use the mouse while holding down CTRL. –  music2myear May 18 '11 at 16:34
add comment

If you know the header of the last column, you can use the Name Box (the text box located to the left of the Formula bar).

For example, if your data ranges from column A to J, you can select the rows you mentioned (4,6,14,27) without using the mouse or cursor keys by typing this into the Name box:

A4:J4,A6:J6,A14:J14,A27:J27

The letters don't have to be uppercase. I don't know of any shortcut to the Name Box so you'll have to use your mouse to click it. Just that once. :D

Press Enter and those ranges will be selected.

You'll get the same result when you use that range on the Go To dialog box, which you can open by pressing Ctrl-G

share|improve this answer
add comment

Hold down the CTRL key as you click and you can select multiple rows as you wish.

share|improve this answer
add comment

Hold the CTRL key while clicking on each successive desired row. CTRL allows multiple non-adjacent selections. Shift allows multiple adjacent selections. These keys work on files in a file manager and in most applications.

EDIT: CTRL-arrow allows selection to the end of the current data row.

To use this along with CTRL for multiple non-adjacent selections you can use your mouse click-drag select and hold down the ctrl key while making selections.

Or you can select the first cell of the first column of data you desire to select, press SHIFT-CTRL-Arrow (direction of the end of the row or column of data. Keep hold CTRL but release SHIFT (playing piano helps with this), mouse click the first cell of the next desired row (or column) of data, re-press SHIFT-Arrow (still holding down CTRL) to select to the end of that data column. Etc.

Unless you are comfortable doing complex keyboarding, I'd use the hold CTRL, Mouse click-drag select method.

share|improve this answer
    
I'm going to upvote this for taking the time to edit and expand on the answer after realizing that the initial version didn't fully address the question. –  Will Martin May 18 '11 at 16:38
    
I appreciate that. Did that expansion of the answer assist any more with your specific issue? It sounded as though you still weren't quite completely happy with @variant's answer, which this is pretty much the same as. –  music2myear May 18 '11 at 18:31
    
I just had to do it manually with control click drag in the end. –  Will Martin May 18 '11 at 20:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.