LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default sorting noncontiguous data with exceptions

I have imported vcf files into excel 2003 and the column looks like
this:
BEGIN:VCARD
VERSION:3.0
N: (some data)
FN: (some data)
MN: (some data)
X-VOIP-USERNAME: (some data)
X-VOIP-PSTNNUMBER:(some data)
X-VOIP-DISPLAYNAME:(some data)
X-VOIP-SEX:(some data)
X-VOIP-COUNTRY:(some data)
BDAY:(some data)
ADR:(some data)
TEL;CELL:(some data)
END:VCARD

BEGIN:VCARD
VERSION:3.0
N: (some data)
FN: (some data)
LN: (some data)
X-VOIP-USERNAME: (some data)
X-VOIP-PSTNNUMBER:(some data)
X-VOIP-DISPLAYNAME:(some data)
X-VOIP-SEX:(some data)
X-VOIP-COUNTRY:(some data)
ADR:(some data)
TEL;CELL:(some data)
END:VCARD
Each person's data is bounded by the BEGIN:VCARD and the END:VCARD.
I want to turn this into a spreadsheet with all the categories (e.g.
FN, LN, N, ADR, etc) as columns. A simple text-to-columns operation
won't work, as some the entries don't contain all the data (for
example, some have FN, MN,LN but others have only FN and LN) and if
transposed to columns, the info won't match up across the rows.
I've made some headway by highlighting a certain category (e.g. CITY
-- there were 37 out of 879 out of 879 begin--end groups, then
changing an all unneeded category like COUNTRY to CITY:00, then
manually deleting 37 extraneous CITY:00 from the files which
originally had had a CITY category. Time consuming to say the least,
and I've discovered there is a category I wish to keep, but it shows
up in 175 of the files --- there's got to a better way.
If anyone has any suggestions, I'd be very grateful.
Thank you
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlighting Data Exceptions [email protected] Excel Discussion (Misc queries) 2 February 8th 08 10:12 AM
Losing data in controls (and arrays) during unhandled exceptions. David Excel Programming 4 December 6th 06 07:17 PM
Series with noncontiguous unequal length data? [email protected] Charts and Charting in Excel 3 June 15th 06 06:23 PM
Data Validation w/ exceptions msg box TC Excel Worksheet Functions 1 December 22nd 05 10:00 AM
Finding equation between two sets of noncontiguous data vijaya Excel Programming 0 November 3rd 05 09:36 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"