Inverting an array

surfsoc

New Member
Joined
Sep 28, 2008
Messages
39
Hi,

I'd like to invert an array such that column A goes from A1:A12 and can be transferred to B1:B12 but displays the information A12:A1. This would result in the following: B1(A12), B2(A11)....B12(A1).

Is there a way around this using some formulas or can it only be achieved manually?

Thanks,

Ed
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">Jan</td><td style=";">Dec</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">Feb</td><td style=";">Nov</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">Mar</td><td style=";">Oct</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">Apr</td><td style=";">Sep</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">May</td><td style=";">Aug</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">Jun</td><td style=";">Jul</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">Jul</td><td style=";">Jun</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">Aug</td><td style=";">May</td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">Sep</td><td style=";">Apr</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">Oct</td><td style=";">Mar</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">Nov</td><td style=";">Feb</td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">Dec</td><td style=";">Jan</td></tr></tbody></table><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=OFFSET(<font color="Blue">$A$13,-ROW(<font color="Red">A1</font>),0</font>)</td></tr></tbody></table></td></tr></table><br />
 
Last edited:
Upvote 0
Assuming the array goes from A2:A10, put this in B2 and fill down
=OFFSET($A$10,-(ROW()-2),0)

Denis
 
Upvote 0
Hi,

I'd like to invert an array such that column A goes from A1:A12 and can be transferred to B1:B12 but displays the information A12:A1. This would result in the following: B1(A12), B2(A11)....B12(A1).

Is there a way around this using some formulas or can it only be achieved manually?

Thanks,

Ed

Try...

B1, jsut enter and copy down:

=INDEX($A$1:$A$12,ROWS($A$1:$A$12)-ROWS($B$1:B1)+1)
 
Upvote 0
Thanks everyone, for some reason, with some tinkering, i found that this formula worked
=OFFSET($A$14,-ROW()+1,0)

thanks again

ed
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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