PC Review


Reply
Thread Tools Rate Thread

How can I select non visible cells?

 
 
bird_222@my-deja.com
Guest
Posts: n/a
 
      8th Mar 2007
I guess there are a couple of ways I could attack this problem. I
either need to be able to select cells that look blank but may not
actually be. Trying the 'goto/special/blanks' doesn't work even after
trying to paste special/values over the formulas in column C. Or I
need to be able to LEAVE the LAST duplicate cell in the list (i.e.
select all duplicate cells but the last one). This is what I have.

A B C
jeff 5
jeff 6
jeff 0 11
mike 3
mike 9 12

What's in column 'C' is a formula (=if(a1=a2,"",sumif(a$1:a2,a1,b
$1:b2)). I need someway to delete the rows that don't have a number
in column C.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      8th Mar 2007
Sub kill_um()
n = Cells(Rows.Count, "A").End(xlUp).Row
For i = n To 1 Step -1
If Cells(i, "C").Value = "" Then
Cells(i, "C").EntireRow.Delete
End If
Next
End Sub

--
Gary''s Student
gsnu200709


"(E-Mail Removed)" wrote:

> I guess there are a couple of ways I could attack this problem. I
> either need to be able to select cells that look blank but may not
> actually be. Trying the 'goto/special/blanks' doesn't work even after
> trying to paste special/values over the formulas in column C. Or I
> need to be able to LEAVE the LAST duplicate cell in the list (i.e.
> select all duplicate cells but the last one). This is what I have.
>
> A B C
> jeff 5
> jeff 6
> jeff 0 11
> mike 3
> mike 9 12
>
> What's in column 'C' is a formula (=if(a1=a2,"",sumif(a$1:a2,a1,b
> $1:b2)). I need someway to delete the rows that don't have a number
> in column C.
>
>

 
Reply With Quote
 
bird_222@my-deja.com
Guest
Posts: n/a
 
      9th Mar 2007
On Mar 8, 8:22 am, Gary''s Student
<GarysStud...@discussions.microsoft.com> wrote:
> Sub kill_um()
> n = Cells(Rows.Count, "A").End(xlUp).Row
> For i = n To 1 Step -1
> If Cells(i, "C").Value = "" Then
> Cells(i, "C").EntireRow.Delete
> End If
> Next
> End Sub
>
> --
> Gary''s Student
> gsnu200709
>
>
>
> "bird_...@my-deja.com" wrote:
> > I guess there are a couple of ways I could attack this problem. I
> > either need to be able to select cells that look blank but may not
> > actually be. Trying the 'goto/special/blanks' doesn't work even after
> > trying to paste special/values over the formulas in column C. Or I
> > need to be able to LEAVE the LAST duplicate cell in the list (i.e.
> > select all duplicate cells but the last one). This is what I have.

>
> > A B C
> > jeff 5
> > jeff 6
> > jeff 0 11
> > mike 3
> > mike 9 12

>
> > What's in column 'C' is a formula (=if(a1=a2,"",sumif(a$1:a2,a1,b
> > $1:b2)). I need someway to delete the rows that don't have a number
> > in column C.- Hide quoted text -

>
> - Show quoted text -


Thanks for the reply. Can you explain how I would use this?

 
Reply With Quote
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      9th Mar 2007
Macros are very easy to install and use:
1. CNTRL-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window (save not required)
If you save the workbook, the macro will be saved with it.

To use the Macro:
1. ALT-F8
2. Select the macro
3. Touch Run

To remove the macro:
1. bring up the VBE window as above
2. clear the code out
3. close the VBE window
To learn more about macros in general, see:
http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary''s Student
gsnu200709


"(E-Mail Removed)" wrote:

> On Mar 8, 8:22 am, Gary''s Student
> <GarysStud...@discussions.microsoft.com> wrote:
> > Sub kill_um()
> > n = Cells(Rows.Count, "A").End(xlUp).Row
> > For i = n To 1 Step -1
> > If Cells(i, "C").Value = "" Then
> > Cells(i, "C").EntireRow.Delete
> > End If
> > Next
> > End Sub
> >
> > --
> > Gary''s Student
> > gsnu200709
> >
> >
> >
> > "bird_...@my-deja.com" wrote:
> > > I guess there are a couple of ways I could attack this problem. I
> > > either need to be able to select cells that look blank but may not
> > > actually be. Trying the 'goto/special/blanks' doesn't work even after
> > > trying to paste special/values over the formulas in column C. Or I
> > > need to be able to LEAVE the LAST duplicate cell in the list (i.e.
> > > select all duplicate cells but the last one). This is what I have.

> >
> > > A B C
> > > jeff 5
> > > jeff 6
> > > jeff 0 11
> > > mike 3
> > > mike 9 12

> >
> > > What's in column 'C' is a formula (=if(a1=a2,"",sumif(a$1:a2,a1,b
> > > $1:b2)). I need someway to delete the rows that don't have a number
> > > in column C.- Hide quoted text -

> >
> > - Show quoted text -

>
> Thanks for the reply. Can you explain how I would use this?
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I select, cut, and paste visible cells only =?Utf-8?B?Q3V0dGluZyBhbmQgcGFzdGluZyBpbnZpc2libGUg Microsoft Excel Misc 2 10th May 2006 09:55 PM
Select Visible Cells Only =?Utf-8?B?QXBwYXJlbnRseQ==?= Microsoft Excel Misc 2 29th Jan 2005 12:40 AM
Select visible cells using vba =?Utf-8?B?VG9ueQ==?= Microsoft Excel Programming 3 5th Jan 2005 03:35 PM
Trying to select the visible range of cells =?Utf-8?B?U2VsZWN0b3I=?= Microsoft Excel Programming 1 1st Feb 2004 08:40 PM
select visible cells when printing Richard Leclezio Microsoft Excel Programming 1 1st Oct 2003 10:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 AM.