Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Pick cells on the diagonal

I would like to copy cells in an excel worksheet following this pattern: e.g.
A1, F3, K4 etc. Is it possible to mark the cells and then copy them all at a
time?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Pick cells on the diagonal

If your intent is to extract the diagonal cells into a continuous col range
eg: A1, F3, K5 ... (you probably had a typo in your post: "K4")
here's one way which makes it a breeze, and dynamic, too ...

Assume your source data is in Sheet1
In another sheet, in any startcell, say in B2:
=OFFSET(Sheet1!$A$1,ROWS($1:1)*2-2,ROWS($1:1)*5-5)
Copy down as far as required to extract as required
Adapt easily to suit:
Sheet1!$A$1 is the top left cell in the source sheet
The ROWS bits of it in the expression is aligned to the down 2x1, across
5x1, then down 2x2, across 5x5, etc, ie the zigzag path that defines the
diagonal cells A1, F3, K5 ... Success? Immortalize this response, zonk the
YES below
--
Max
Singapore
---
"A." wrote:
I would like to copy cells in an excel worksheet following this pattern: e.g.
A1, F3, K4 etc. Is it possible to mark the cells and then copy them all at a
time?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Pick cells on the diagonal

My typo, this part:
.. then down 2x2, across 5x5, etc


should read:
then down 2x2, across 5x2, etc

--
Max
Singapore
---
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need diagonal lines behind printed cells. Jimmy D[_2_] Excel Discussion (Misc queries) 2 June 26th 08 04:34 AM
Adding pick calendars to cells Lindsey Excel Discussion (Misc queries) 1 February 4th 08 01:56 PM
pick up cells wwwrabbit Excel Discussion (Misc queries) 0 June 14th 06 11:29 PM
Creating cells with Diagonal borders Graham Tritton Excel Discussion (Misc queries) 1 January 24th 06 06:09 AM
Is there a way to pick the cells to add using sum? WTG Excel Worksheet Functions 2 June 4th 05 02:40 PM


All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"