Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | excell deleting rows

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

excell deleting rows
Reply
 
Thread Tools
Old 29-08-2007, 15:21   #1
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
excell deleting rows

hey everyone,

is there a way to delete rows if all criteria are met?

what I mean is this.....

I can generate a report and send it to excel,
if I have 5 columns say and I am missing info in one column, I want to keep the row, if the row is full, I dont need it, so delete it

Code:
1
1, 2, 3
1, 2, 3, 4, 5 delete this as it has all the info
1, 2, 3, 4, 5 delete this as it has all the info
so that I am left with only the rows that dont have all columns filled.

I must explain at this point, that the information is stored in a database, the report is really for me to fill in the blanks, if you know what I mean.
so I don't want to trawl through hundreds of sheets of paper, to update only a handful of rows.

ik
ikthius is offline   Reply With Quote
Advertisement
Old 29-08-2007, 15:31   #2
gazzae
Inactive
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 46
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Re: excell deleting rows

Add in a new column with the formula...

=OR(ISBLANK(A2),ISBLANK(B2),ISBLANK(C2),ISBLANK(D2 ))

and then filter out all the Falses.
gazzae is offline   Reply With Quote
Old 29-08-2007, 15:32   #3
Aragorn
Inactive
 
Aragorn's Avatar
 
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 60
Posts: 3,458
Aragorn has a nice shiny star
Aragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny starAragorn has a nice shiny star
Re: excell deleting rows

You could add an extra calculated column, something like

if (A1<>" " and B2 <> " " and ..., "All fields present","not all there")

Sort by the new column and manually delete all the one saying 'All fields present'. (Sorry, I can't remember the exact if/and syntax!)

Alternatively use a database query to only select the interesting records, eg Select a, b ,c from table where a = " " or b = " " or c = " ";
Aragorn is offline   Reply With Quote
Old 29-08-2007, 15:35   #4
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: excell deleting rows

Quote:
Originally Posted by Aragorn View Post
You could add an extra calculated column, something like

if (A1<>" " and B2 <> " " and ..., "All fields present","not all there")

Sort by the new column and manually delete all the one saying 'All fields present'. (Sorry, I can't remember the exact if/and syntax!)

Alternatively use a database query to only select the interesting records, eg Select a, b ,c from table where a = " " or b = " " or c = " ";
sorry, it has predefined reports, we cannot change.

Gazzae, thats worked nicely enough, thanks

ik
ikthius is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 20:04.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum