Select and copy only nonblank cells
Solved/Closed
shootingfish
Posts
14
Registration date
Sunday 6 February 2011
Status
Member
Last seen
1 September 2011
-
13 Feb 2011 à 08:13
Ambucias Posts 47312 Registration date Monday 1 February 2010 Status Moderator Last seen 28 March 2026 - 15 Feb 2011 à 05:55
Ambucias Posts 47312 Registration date Monday 1 February 2010 Status Moderator Last seen 28 March 2026 - 15 Feb 2011 à 05:55
Related:
- Excel copy non blank cells
- Excel mod apk for pc - Download - Spreadsheets
- How to copy data from one excel sheet to another - Guide
- Excel arrow keys not moving cells - Guide
- Kernel for excel repair - Download - Backup and recovery
- Copying data from one Excel sheet to another. ✓ - Excel Forum
3 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
14 Feb 2011 à 09:08
14 Feb 2011 à 09:08
Hi Shootingfish,
Is your data continuous?
Is it like:
A1: nonblank
A2: nonblank
A3: nonblank
A4: nonblank
or
A1: Blank
A2: nonblank
A3: Blank
A4: nonblank
In the first case you have already shown you know the answer in this part of your code: Cells(Rows.Count, 1).End(xlUp).
In the second case I can't help you, since I don't know how to handle that.
Best regards,
Trowa
Is your data continuous?
Is it like:
A1: nonblank
A2: nonblank
A3: nonblank
A4: nonblank
or
A1: Blank
A2: nonblank
A3: Blank
A4: nonblank
In the first case you have already shown you know the answer in this part of your code: Cells(Rows.Count, 1).End(xlUp).
In the second case I can't help you, since I don't know how to handle that.
Best regards,
Trowa
14 Feb 2011 à 16:41
I can confirm that every cell in column A has data, it is the date. This would make it easier to create a macro since all other columns do have gaps. I have experimented with a macro to make all blank cells carry a value of "0" however, my problem becomes apparent again, I do not know the expression to use that would say "blank cells, nonblank cells" etc. and I also do not know much on how to specify the boundries of a macro (so all blank cells in the entire worksheet would have a "0" value, from A1:IV65000~)
At this point I must confess that "Cells(Rows.Count, 1).End(xlUp)" was a straight copy and paste from another post on this site - I don't know how to change it to suit my needs.