Repeating numbers in reducing pattern

hyosunko

New Member
Joined
Aug 14, 2018
Messages
2
I am trying to generate repeating numbers in the cell by decreasing patterns

Here's the pattern: if starting number is 6

[TABLE="width: 495"]
<tbody>[TR]
[TD="class: xl63, width: 33"]6[/TD]
[TD="class: xl63, width: 33"]6[/TD]
[TD="class: xl63, width: 33"]6[/TD]
[TD="class: xl63, width: 33"]6[/TD]
[TD="class: xl63, width: 33"]6[/TD]
[TD="class: xl63, width: 33"]5[/TD]
[TD="class: xl63, width: 33"]5[/TD]
[TD="class: xl63, width: 33"]5[/TD]
[TD="class: xl63, width: 33"]5[/TD]
[TD="class: xl63, width: 33"]4[/TD]
[TD="class: xl63, width: 33"]4[/TD]
[TD="class: xl63, width: 33"]4[/TD]
[TD="class: xl63, width: 33"]3[/TD]
[TD="class: xl63, width: 33"]3[/TD]
[TD="class: xl63, width: 33"]2[/TD]
[/TR]
</tbody>[/TABLE]

Thank you for help in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Welcome to the MrExcel forum.

Try:

ABCDEFGHIJKLMNOP

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]

</tbody>
Sheet3

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH]B1[/TH]
[TD="align: left"]=IFERROR(IF(COUNTIF($A1:A1,A1)< A1-1,A1,IF(A1=2,"",A1-1)),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Put the number you want in A1, put the formula in B1 and drag it right as needed.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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