Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mult numbers in one field

Status
Not open for further replies.

CPK6104

IS-IT--Management
Dec 19, 2007
57
US
Hello. I have a report that's using excel as its data source. Unfortuantely, it ocasionally has a field (a cell) that contains mult problem ticket numbers (instead of one prob ticket number in a cell, per record). In the cases where there are mult numbers, it looks like this: 12345, 42554, 88759, 46897 (#####, #####, #####, #####). When there are multiples, there could be 2 ticket numbers or more with no set limit.

Is there a way to pick out the individual prob ticket numbers so that each is associated with one record (one row in the spreadsheet)? Thanks in advance for your help.
 
You could get the first element using
Code:
Split({your.field}, ", ")[1]
If there were always four, you could just repeat for 2, 3 and 4. If it's more complex, then use
Code:
Ubound({your.field}, ", ")
This would give you the number and you could use it for selective logic.

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options. In this case, it probably makes no difference.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top