Select and copy only nonblank cells
Solved/Closed
shootingfish
Posts
14
Registration date
Sunday February 6, 2011
Status
Member
Last seen
September 1, 2011
-
Feb 13, 2011 at 08:13 AM
Ambucias Posts 47310 Registration date Monday February 1, 2010 Status Moderator Last seen February 15, 2023 - Feb 15, 2011 at 05:55 AM
Ambucias Posts 47310 Registration date Monday February 1, 2010 Status Moderator Last seen February 15, 2023 - Feb 15, 2011 at 05:55 AM
Related:
- Different dates of "end to end encryption message" on blank chat?
- Vba select case like - Guide
- To create a network bridge you must select at least two lan ✓ - Network Forum
- Please insert the correct dvd-rom select ok and restart application nfsmw ✓ - Video Games Forum
- Why can't i select messages on whatsapp ✓ - WhatsApp Forum
- Reboot and select proper boot device - Laptop Forum
3 responses
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Feb 14, 2011 at 09:08 AM
Feb 14, 2011 at 09:08 AM
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
Feb 14, 2011 at 04:41 PM
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.