Formula to push digits to the right.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,404
Office Version
  1. 2007
Platform
  1. Windows
Hi,
I'm looking for a formula that will push to the right the digits as they come down from column B, so that the newest digits is on the left and the oldest is on the right.
This will show me how long a digits hasn't been selected, how many time it skip.

Capture.PNG


Thank you.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I found a roundabout way of doing it in 365, but it would not work in 2007. At first, I thought something like "=TRANSPOSE($B$3:$B3)", copied down but it puts them in the wrong order I think. The second row of data would return 1 and 3 rather than 3 and 1.

Doug
 
Upvote 0
Than you dugggie33, but yes the order is what I'm looking for.
 
Upvote 0
Book1
BCDEFGHIJKLMNOPQ
311
4331
55531
688531
7228531
86628531
977628531
10007628531
119907628531
1244907628531
13554907628531
149954907628531
1500954907628531
16440954907628531
17 
Sheet1
Cell Formulas
RangeFormula
D3,D17,D16:Q16,D15:P15,D14:O14,D13:N13,D12:M12,D11:L11,D10:K10,D9:J9,D8:I8,D7:H7,D6:G6,D5:F5,D4:E4D3=IF(B3="","",TRANSPOSE(INDEX($B$3:B3,MAX(ROW($B$3:B3))-ROW($B$3:B3)+1)))
 
Upvote 0
NOTE: I realized after I posted the below reply that you do not have XL365. Sorry, but you will not be able to use this.

Since your values are all single digits, I was able to develop this single formula that will spill (generate) the entire triangular output for any size vertical range specified in the first variable (named 'b') inside the LET function.
Excel Formula:
=LET(b,B3:B16,c,COUNT(b),s,SEQUENCE(c),IFERROR(TEXTSPLIT(TEXTJOIN("/",,TRIM(RIGHT(CONCAT(MID(CONCAT(" "&b),2*(c-s+1),1)&" "),2*s)))," ","/"),""))
 
Upvote 0
Upvote 0
Here is a very simple solution. Put this formula in cell D3...

=B3

and copy it down to cell D16 or, alternately, you can dispense with this formula and simply copy/paste B3:B16 to D3:D16, your choice. Next, put this formula in cell E4...

=IF(D3="","",D3)

and copy it down to E16, and then copy E4:E16 across until all blanks appear.
 
Last edited:
Upvote 0
Thank you Scott Huish,
Sorry or the late response, but I can not use your formula because starting row 13 the digit 5 is draw but it still in the row at L13 and should be removed since it is draw in the first column and so on for the rest of the digits, but it's my fault I should had mention it in my description.
 
Upvote 0
Thank you Phuoc, but same with yours, my bad sorry.
 
Upvote 0
Thank you Rick, your solution work for me I appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,215,085
Messages
6,123,030
Members
449,092
Latest member
ikke

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