Create a list from existing list ignoring zero values

awanak

New Member
Joined
Oct 6, 2018
Messages
37
Office Version
  1. 2019
Platform
  1. Windows
i want to creat a list from existing list ignoring zero values

For Example
Original ListList to be created
AslamAslam
AkramAkram
0Mohsin
MohsinWaseem
0
0
0
Waseem

<tbody>
</tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi,

Ctrl+Shift+Enter NOT just Enter

B2 =IFERROR(INDEX($A$2:$A$9,MATCH(0,IF($A$2:$A$9<>0,COUNTIF($B$1:B1,$A$2:$A$9)),0)),"")

AB
1Original ListUnique List
2AslamAslam
3AkramAkram
40Mohsin
5MohsinWaseem
60
70
80
9Waseem

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($A$2:$A$9,SMALL(IF(1-($A$2:$A$9=0),ROW($A$2:$A$9)-ROW($A$2)+1),ROWS($1:1))),"")
 
Upvote 0
Create a list on another from existing list on sheet 1 ignoring zero values

Hi,
I want to creat a list on another sheet from an existing list on sheet 1 or some other sheet ignoring zero values
Sheet-1 (Original List)
Sheet-1 (Original List)Sheet-2 (List to be created)
WaseemWaseem
MohsinMohsin
0Waqas
0Vicky
WaqasZohra
Vicky
Zohra
0

<tbody>
</tbody>
 
Upvote 0
Re: Create a list on another from existing list on sheet 1 ignoring zero values

Copy paste to the second sheet and filter out the null values
 
Upvote 0
Re: Create a list on another from existing list on sheet 1 ignoring zero values

the original list is ever changing dear. need some other way out
 
Upvote 0
Re: Create a list on another from existing list on sheet 1 ignoring zero values

Welcome to the MrExcel board!

A formula approach:
Adjust the Sheet1 ranges in this formula to at least cover that data and then copy the formula down.

Excel Workbook
A
1Waseem
2Mohsin
3Waqas
4Vicky
5Zohra
6
7
Sheet2
 
Upvote 0
Re: Create a list on another from existing list on sheet 1 ignoring zero values

Doesn't this part adapt the range's length ? ( still some tweaking needed of course)
Code:
[TABLE="class: highlight tab-size js-file-line-container"]
<tbody>[TR]
[TD="class: blob-code blob-code-inner js-file-line"]        lngLastRow = .Range("F" & .Rows.Count).End(xlUp).Row
[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="class: highlight tab-size js-file-line-container"]
<tbody>[TR]
[TD="class: blob-code blob-code-inner js-file-line"]        Set rngData = .Range("F5:F" & lngLastRow)[/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
   
[TABLE="class: highlight tab-size js-file-line-container"]
<tbody>[TR]
[TD="class: blob-code blob-code-inner js-file-line"][/TD]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,171
Messages
6,129,287
Members
449,498
Latest member
Lee_ray

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