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 [TABLE="width: 500"]
<tbody>[TR]
[TD]Original List[/TD]
[TD]List to be created[/TD]
[/TR]
[TR]
[TD]Aslam[/TD]
[TD]Aslam[/TD]
[/TR]
[TR]
[TD]Akram[/TD]
[TD]Akram[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD]Mohsin[/TD]
[/TR]
[TR]
[TD]Mohsin[/TD]
[TD]Waseem[/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Waseem[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Re: Create a list on another from existing list on sheet 1 ignoring zero values

Doesn't this part adapt the range's length ?
It does, but
- that code changes the original data, which was not requested
- it doesn't put anything on Sheet2 in the first place, and even if it did ..
- when the list on Sheet1 changes, nothing will change on Sheet2 unless the existing data on that sheet is cleared and the code is run again.
Perhaps I am wrong but post 3 seemed to me to imply an automatic update of the list was required.

Whilst all of those things could be addressed with adaptations of that code, I suspect that if the OP was capable of all those adaptations I doubt they would be asking this question in the first place.
Perhaps I am wrong with that too.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Re: Create a list on another from existing list on sheet 1 ignoring zero values

@awanak
Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread (rule 12 here: Forum Rules).
I have merged both threads.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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