copy columns with order reversed

  • Thread starter Thread starter Karra
  • Start date Start date
K

Karra

I have 10 columns "column 1" .. "column 10" from left to right in a
source sheet. I want to copy them to another sheet such that the
columns are now ordered "column 10" .. "column 1" from left to right.

It feels like this should be very easy to do; but for some reason I
have not managed to figure out the solution. Can someone point me in
the right direction?
 
You can use the OFFSET function. Say your data start in Sheet1!D7 and
extend to column M, say until M123. In the destination sheet, wherever
you want your data to start:

=OFFSET('Sheet 1'!$D7,0,COLUMN('Sheet 1'!$D7)+COLUMNS('Sheet 1'!
$D7:$M123)-COLUMN('Sheet 1'!D7)-1)

You can copy this formula down and accross, after modifying the cell
references (but not the $$).

HTH
Kostis Vezerides
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top