Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Excel query

Thread Tools
 
Search this Thread
 
Old 6th May 2007, 07:40
  #1 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: Here, but soon will be there
Age: 54
Posts: 81
Likes: 0
Received 0 Likes on 0 Posts
Excel query

If I import a list into excel, for example a list of fruit, is it possible to automatically exclude certain elements of a column whilst keeping some of the others. Eg if I want to delete the rows that have bananas & mangoes in column A, can I then keep the rows that have kumquats & tangerines also i column A?

Last edited by kishna; 6th May 2007 at 08:05.
kishna is offline  
Old 8th May 2007, 11:15
  #2 (permalink)  
 
Join Date: Mar 2005
Location: London
Posts: 92
Likes: 0
Received 0 Likes on 0 Posts
Use the data text to columns from the menu bat, this will spilt text into rows, based on a delimited (common character) which will should achieve the desired result.

AAF
All Ahead Full is offline  
Old 8th May 2007, 20:48
  #3 (permalink)  
 
Join Date: Oct 2006
Location: London
Posts: 21
Likes: 0
Received 0 Likes on 0 Posts
Hi there, yeah I would recommend just importing the data, then sorting the rows and deleting the ones not needed.

Although I presume you are looking for a method to automatically do this? Please advise. That would be possible, but you would need to copy the data into a file that was set up to ignore the desired rows. A few formulas would be needed there..
MB27 is offline  
Old 9th May 2007, 12:12
  #4 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: Here, but soon will be there
Age: 54
Posts: 81
Likes: 0
Received 0 Likes on 0 Posts
Thanks. Basically I'm trying to import my roster data but exlude non essential entries which occur occasionally & just leave in the days off & essential duties. I realise that one of the options is to just manually delete the rubbish, but an automatic system would be much preferable
kishna is offline  
Old 9th May 2007, 13:17
  #5 (permalink)  
 
Join Date: Oct 2000
Location: Sunny Sussex
Posts: 778
Likes: 0
Received 0 Likes on 0 Posts
Probably the simplest way is to use an 'if' formula - import the data & then use if to exclude any data from the list that matches the query - if row/column = whatever,1,false.

BTW that isn't the syntax you need! I've typed out a very rough idea of how it looks, but excel would cringe at that - You'll have to do a little reading up in excel but it works well enough.

Another option is to use autofilter. If the unwanted data is always the same value or if you can append say, a letter to the unwanted data in the next row - for example n for no, then you can use autofilter to exclude any entry in a list that contains that value. This is more constricted & less flexible, but it is another way to do it.
Parapunter is offline  
Old 9th May 2007, 13:42
  #6 (permalink)  
Thread Starter
 
Join Date: Jun 2000
Location: Here, but soon will be there
Age: 54
Posts: 81
Likes: 0
Received 0 Likes on 0 Posts
very useful, thanks for the help
kishna is offline  

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 Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.