return numbers

yuventus16

New Member
Joined
Dec 26, 2018
Messages
2
hey,
I have a column that has zeros from top to bottom(T5: T100). It gets filled up every day by me with different numbers, some positive & some negative.
I have a different column that I want to fill with all the numbers that are different than 0(AB30: AB60).

for example(T5: T100) is:
day 1 - 20
day 2 - 0 (no change)
day 3 - (-15)
day 4 - 3
day 5 - 0 (no change)
day 6 - 10
the rest of the days are zeros as well...
all the way to day 100.

In my other column(AB30: AB60) I would like to have:
20
-15
3
10

All the zeros are there and cannot be removed.
I am not able to figure this up.
thank you to all the helpers!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the forum.

Put this in AB30, confirm with Control+Shift+Enter, then drag it down:

=IFERROR(INDEX($T$5:$T$100,SMALL(IF($T$5:$T$100<>0,ROW($T$5:$T$100)-ROW($T$5)+1),ROWS($AB$30:$AB30))),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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