Arranging some numbers as per specification

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
How to arrange some numbers in excel through formula or trick:

1 2 3 4
8 7 6 5
9 10 11 12
16 15 14 13
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try:

Book1
ABCDE
1
21234
38765
49101112
516151413
Sheet2
Cell Formulas
RangeFormula
B2:E5B2=IF(COLUMN()=2,IF(MOD(ROW(),2)=0,B1+1,MAX(1:1)+COUNT(1:1)),IF(MOD(ROW(),2),A2-1,A2+1))


Put the formula in B2 and copy down and across as needed. I started in B2 instead of A1, since it was easier, but that can be changed. Also, this assumes you don't have anything else on the sheet. We can also adjust that by limiting the ranges.

Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,224,832
Messages
6,181,231
Members
453,026
Latest member
cknader

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