Remove the value if condition meet

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
543
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi,

Thanks in advance,

Need help to remove the value in coloumn in following sheet if only "0" coming

Coloumn A
8
6
0
0
2
7
0
0
0

Formula or VBA will delete all the "0" after 7
I have also coloumn B, C, D and E
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Yes

I am doing the same

MS office 2007
Window 7
Same data as showing in first post

But not working

Can u pls upload the working file, so may i know the where is mistakr
 
Last edited:
Upvote 0
my be offcie 2007 not suport AGGREGATE function wait i try to make a arry formula for u
 
Upvote 0
Try this in b2
=IFERROR(INDEX($A$1:$A$10,AGGREGATE(15,6,ROW($A$2:$A$10)/($A$2:$A$10<>0),ROWS($B$1:B1))),"")
 
Upvote 0
REQ CONTROL + **** + enter
=IFERROR(INDEX($A$1:$A$10,SMALL(IF($A$2:$A$10<>0=TRUE,ROW($A$2:$A$10),""),ROWS($B$1:B1))),"")
 
Upvote 0
Ok checking

Thanks for your support
 
Last edited:
Upvote 0
Ok

But its have removed all the "0" but i want only remove the "0" after 7 in coloumn A
 
Upvote 0
pllease share more your data and what u want ?? u want to remve only 0 after 7 and u have multipul 7 in colom a and how maany 0 are after 7 in colom A please describe in details
 
Upvote 0
I have not multiple 7

Its a data

Coloumn A
8
6
0
0
2
7
0
0
0

I want the following result

Coloumn A
8
6
0
0
2
7

MS Office 2007
Window 7 (32bit)

In coloumns only 30 values including 0

Some other example

Data
7
5
0
0
3
0
9
8
6
0
0
0

Result will be

Data
7
5
0
0
3
0
9
8
6

I hope every thing is clear for you

You can also said that when "0" start in continuation, remove theme
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,744
Messages
6,180,696
Members
452,994
Latest member
Janick

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