PC Review


Reply
Thread Tools Rate Thread

Delete rows based on a cell value in the row

 
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      14th Mar 2006
I'd like to delete rows from a spreadsheet based on the value of a cell in a
row. This is a very large spreadsheet (60,000+ lines). I want to delete
rows based on a value (in this case all parts which are purchased- vs mfd)
without destroying the spreadsheet structure. In this case I have several
bills of material where I want to list all the assemblies, but not the
purchased parts. It seems it should be possible, but I'm not having any luck
with the filter method.

Thanks,

Dave
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      14th Mar 2006
sort??
or use a macro to delete, from the bottom up, if the cell contains your text


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Dave" <(E-Mail Removed)> wrote in message
news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
> I'd like to delete rows from a spreadsheet based on the value of a cell in
> a
> row. This is a very large spreadsheet (60,000+ lines). I want to delete
> rows based on a value (in this case all parts which are purchased- vs mfd)
> without destroying the spreadsheet structure. In this case I have several
> bills of material where I want to list all the assemblies, but not the
> purchased parts. It seems it should be possible, but I'm not having any
> luck
> with the filter method.
>
> Thanks,
>
> Dave



 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      14th Mar 2006
I don't want to sort, because I'd lose the BOM structure. I just want to
remove the purchased items from the lists so I have the manufactured part
numbers left in the BOM structure.

How would you create a macro to do that?

"Don Guillett" wrote:

> sort??
> or use a macro to delete, from the bottom up, if the cell contains your text
>
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "Dave" <(E-Mail Removed)> wrote in message
> news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
> > I'd like to delete rows from a spreadsheet based on the value of a cell in
> > a
> > row. This is a very large spreadsheet (60,000+ lines). I want to delete
> > rows based on a value (in this case all parts which are purchased- vs mfd)
> > without destroying the spreadsheet structure. In this case I have several
> > bills of material where I want to list all the assemblies, but not the
> > purchased parts. It seems it should be possible, but I'm not having any
> > luck
> > with the filter method.
> >
> > Thanks,
> >
> > Dave

>
>
>

 
Reply With Quote
 
Beege
Guest
Posts: n/a
 
      14th Mar 2006
Dave,

Have you tried using the autofilter for the purchased field?

Beege

"Dave" <(E-Mail Removed)> wrote in message
news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
> I'd like to delete rows from a spreadsheet based on the value of a cell in
> a
> row. This is a very large spreadsheet (60,000+ lines). I want to delete
> rows based on a value (in this case all parts which are purchased- vs mfd)
> without destroying the spreadsheet structure. In this case I have several
> bills of material where I want to list all the assemblies, but not the
> purchased parts. It seems it should be possible, but I'm not having any
> luck
> with the filter method.
>
> Thanks,
>
> Dave



 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      14th Mar 2006
Beege,

Yeah, I tried the autofilter, but maybe (probably) I'm not familiar enough
with it. When I filter, how can I specify I just want to see the mfd parts
without destroying the BOM structure?

"Beege" wrote:

> Dave,
>
> Have you tried using the autofilter for the purchased field?
>
> Beege
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
> > I'd like to delete rows from a spreadsheet based on the value of a cell in
> > a
> > row. This is a very large spreadsheet (60,000+ lines). I want to delete
> > rows based on a value (in this case all parts which are purchased- vs mfd)
> > without destroying the spreadsheet structure. In this case I have several
> > bills of material where I want to list all the assemblies, but not the
> > purchased parts. It seems it should be possible, but I'm not having any
> > luck
> > with the filter method.
> >
> > Thanks,
> >
> > Dave

>
>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      14th Mar 2006
You CAN sort by creating a column with numbers>sort to delete desired>resort
based on numbers

for i=cells(rows.count,1).end(xlup).row to 2 step -1
if cells(i,"c")="yourtext" then rows(i).delete
next i

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Dave" <(E-Mail Removed)> wrote in message
news:2F77A2DB-1A63-4E0B-A681-(E-Mail Removed)...
>I don't want to sort, because I'd lose the BOM structure. I just want to
> remove the purchased items from the lists so I have the manufactured part
> numbers left in the BOM structure.
>
> How would you create a macro to do that?
>
> "Don Guillett" wrote:
>
>> sort??
>> or use a macro to delete, from the bottom up, if the cell contains your
>> text
>>
>>
>> --
>> Don Guillett
>> SalesAid Software
>> (E-Mail Removed)
>> "Dave" <(E-Mail Removed)> wrote in message
>> news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
>> > I'd like to delete rows from a spreadsheet based on the value of a cell
>> > in
>> > a
>> > row. This is a very large spreadsheet (60,000+ lines). I want to
>> > delete
>> > rows based on a value (in this case all parts which are purchased- vs
>> > mfd)
>> > without destroying the spreadsheet structure. In this case I have
>> > several
>> > bills of material where I want to list all the assemblies, but not the
>> > purchased parts. It seems it should be possible, but I'm not having
>> > any
>> > luck
>> > with the filter method.
>> >
>> > Thanks,
>> >
>> > Dave

>>
>>
>>



 
Reply With Quote
 
Beege
Guest
Posts: n/a
 
      14th Mar 2006
Dave
Is there a separate column for the make/buy indicator? You'd autofilter on
that one. Select the column, Data/Filter Autofilter. Or you could try
messing around with advanced filter, but I don't use that much

Beege

"Dave" <(E-Mail Removed)> wrote in message
news:497B0DBA-8D82-420B-9784-(E-Mail Removed)...
> Beege,
>
> Yeah, I tried the autofilter, but maybe (probably) I'm not familiar enough
> with it. When I filter, how can I specify I just want to see the mfd
> parts
> without destroying the BOM structure?
>
> "Beege" wrote:
>
>> Dave,
>>
>> Have you tried using the autofilter for the purchased field?
>>
>> Beege
>>
>> "Dave" <(E-Mail Removed)> wrote in message
>> news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
>> > I'd like to delete rows from a spreadsheet based on the value of a cell
>> > in
>> > a
>> > row. This is a very large spreadsheet (60,000+ lines). I want to
>> > delete
>> > rows based on a value (in this case all parts which are purchased- vs
>> > mfd)
>> > without destroying the spreadsheet structure. In this case I have
>> > several
>> > bills of material where I want to list all the assemblies, but not the
>> > purchased parts. It seems it should be possible, but I'm not having
>> > any
>> > luck
>> > with the filter method.
>> >
>> > Thanks,
>> >
>> > Dave

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?RGF2ZQ==?=
Guest
Posts: n/a
 
      14th Mar 2006
Thanks. I'll try it.

Dave

"Beege" wrote:

> Dave
> Is there a separate column for the make/buy indicator? You'd autofilter on
> that one. Select the column, Data/Filter Autofilter. Or you could try
> messing around with advanced filter, but I don't use that much
>
> Beege
>
> "Dave" <(E-Mail Removed)> wrote in message
> news:497B0DBA-8D82-420B-9784-(E-Mail Removed)...
> > Beege,
> >
> > Yeah, I tried the autofilter, but maybe (probably) I'm not familiar enough
> > with it. When I filter, how can I specify I just want to see the mfd
> > parts
> > without destroying the BOM structure?
> >
> > "Beege" wrote:
> >
> >> Dave,
> >>
> >> Have you tried using the autofilter for the purchased field?
> >>
> >> Beege
> >>
> >> "Dave" <(E-Mail Removed)> wrote in message
> >> news:FA1162F7-29CD-4F64-9AA7-(E-Mail Removed)...
> >> > I'd like to delete rows from a spreadsheet based on the value of a cell
> >> > in
> >> > a
> >> > row. This is a very large spreadsheet (60,000+ lines). I want to
> >> > delete
> >> > rows based on a value (in this case all parts which are purchased- vs
> >> > mfd)
> >> > without destroying the spreadsheet structure. In this case I have
> >> > several
> >> > bills of material where I want to list all the assemblies, but not the
> >> > purchased parts. It seems it should be possible, but I'm not having
> >> > any
> >> > luck
> >> > with the filter method.
> >> >
> >> > Thanks,
> >> >
> >> > Dave
> >>
> >>
> >>

>
>
>

 
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
Delete Rows based on cell value BrianWest83@gmail.com Microsoft Excel Programming 7 18th Jan 2008 05:29 AM
Delete Rows based on cell values. Little Penny Microsoft Excel Programming 2 25th Sep 2007 03:23 PM
Delete duplicate rows based on part of cell. okrob Microsoft Excel Programming 0 14th Feb 2007 08:25 PM
Delete rows based on Cell name gmunro Microsoft Excel Programming 1 25th Nov 2005 02:09 PM
How do I conditionally delete rows based on cell contents? =?Utf-8?B?Sm9obiBDaGFu?= Microsoft Excel Worksheet Functions 2 13th Jun 2005 11:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 AM.