Formula (not VBA or UDF) to produce the pattern - 4 4 4 4 3 3 3 2 2 1

circledchicken

Well-known Member
Joined
Aug 13, 2011
Messages
2,932
Hi all,

Does anyone know, or can you help me come up with a formula (to be entered in a single cell and dragged down), that produces this pattern:

4 4 4 4 3 3 3 2 2 1

The formula would be given a starting value (4 in the case above) and continue down to 1.
So for example if the starting value was changed to 5, then it would become:

5 5 5 5 5 4 4 4 4 3 3 3 2 2 1

if it was changed to 6 it would become:

6 6 6 6 6 6 5 5 5 5 5 4 4 4 4 3 3 3 2 2 1

etc.

I want this to be a single formula that I can drag down (I don't want a VBA or UDF solution).

Many thanks to all you good people for taking the time to look at this!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Peter,

These are so cool, thankyou very much sir!
I really appreciate your help and ability to figure this out so quickly!

Thankyou and have a great weekend!! :)
 
Upvote 0
Peter,

These are so cool, thankyou very much sir!
I really appreciate your help and ability to figure this out so quickly!

Thankyou and have a great weekend!! :)
No problem, glad you liked it. :)
(I am having a great weekend, though it is already half over in this part of the world)
 
Upvote 0
one more use in A2 and Drag down

Excel Workbook
A
16
26
36
46
56
66
75
85
95
105
115
124
134
144
154
163
173
183
192
202
211
sample


<a1,a1,a1-1))< html=""></a1,a1,a1-1))<>
 
Upvote 0

Forum statistics

Threads
1,213,564
Messages
6,114,334
Members
448,567
Latest member
Kuldeep90

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