Topic Options
#18787 - 09/21/09 03:57 PM Export to Excel problem
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
I am trying to export a list of customers. I am using the find feature (F6) and generating a list of all customers. Then I press the Excel button. This is really to be a call list.

The problem is that all fields have the data that I want but start with a "'"

For instance our business phone shows as '2095775067 instead of 2095775067.

This stops me from being able to format the cell. I can not find a way to make it appear as (209)577-5067.

I'm sure this question has been posted before, but I'm not sure how to search for it.

Top
#18788 - 09/21/09 04:01 PM Re: Export to Excel problem [Re: Nick Sciabica]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11549
Loc: Vancouver, BC Canada
Hi Nick,

Telephone numbers are stored in the data as 7 or 10 digit numbers. Using the SmartFinder can only deal with the raw data and not apply a text mask to 'format' the phone number.

Perhaps an Excel macro can be run on the exported Excel file in order to change the phone number to text and insert the brackets and dash. Or perhaps even better, use Adagio GridView to perform the export (instead of the SmartFinder) as you can create a calculated column to format the phone number prior to exporting to Excel.
_________________________
Regards,
Softrak Tech Support

Top
#18789 - 09/21/09 04:05 PM Re: Export to Excel problem [Re: Softrak Support]
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
Oh yeah, Excel can do it for me. Maybe I wasn't clear.

The ' hash mark that adagio puts in front of the number stops the format cell from working.

So if the number is '2095775067 I can not format it, but if the number is 2095775067 (without the hash mark in front), Excel converts it to (209)577-5067 just fine.

In the end, you're right, I should use gridview.


Edited by Nick Sciabica (09/21/09 04:06 PM)

Top
#18790 - 09/21/09 04:08 PM Re: Export to Excel problem [Re: Nick Sciabica]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11549
Loc: Vancouver, BC Canada
OK. The leading apostrophe is there because the phone number is defined as text, so that it can be formatted with non-numeric characters and also support alpha characters. You cannot change the data field format with SmartFinder, it simply exports as is.

GridView is really the way to go for simplicity.
_________________________
Regards,
Softrak Tech Support

Top
#18791 - 09/21/09 08:10 PM Re: Export to Excel problem [Re: Nick Sciabica]
Ralph Allan Offline
Adagio Virtuoso

Registered: 06/02/04
Posts: 694
Loc: Prince George BC
Either:

Highlight the column in Excel and select the General format.

or

Assuming the telephone numbers are in column F, insert a new column G with a formula like =Concatenate("(",left(F4,3),") ",Mid(F4,4,3),"-",right(F4,4))

Then either hide Column G or open column H, copy column G and "Paste Special"/Values into column H. Then delete columns F and G.
_________________________
Ralph Allan
Business Computer Centre
Prince George BC Canada

Top
#18810 - 09/22/09 04:01 PM Re: Export to Excel problem [Re: Ralph Allan]
Douglas Dickie Offline
Adagio God

Registered: 06/02/99
Posts: 4414
Loc: Vancouver, BC
To rid yourself of the hash mark open the Excel spreadsheet, highlight the column, press CTL+H (search & replace), put a ' for find what, and nothing for the replace with. This will remove the '.
_________________________
Douglas Dickie
AccSys Solutions Inc
Phone: 1.888.534.4344
ddickie@accsyssolutions.com

Top
#18822 - 09/23/09 04:22 PM Re: Export to Excel problem [Re: Douglas Dickie]
Nick Sciabica Offline
Adagio Buff

Registered: 03/22/04
Posts: 74
Loc: Modesto, CA 95350
Sorry, Excel will not find the '

I got a GridView set up, but It does not format the telephone number correctly either!

Top
#18823 - 09/23/09 04:42 PM Re: Export to Excel problem [Re: Nick Sciabica]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11549
Loc: Vancouver, BC Canada
As mentioned in the previous post, you have to create a calculated column to add the formatting:

eg for a 10-digit number:

"(" & LEFT({Phone number},3) & ")" & MID({Phone number},4,3) & "-" & RIGHT({Phone number},4)

If you have a mix of 7 and 10-digit phone numbers, you have to create a condition that checks for the phone number field length and if 7 then format one way and if 10 format another way.
_________________________
Regards,
Softrak Tech Support

Top


Moderator:  Softrak Support 
Who's Online
3 registered (Carol Wojick, 2 invisible), 59 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14467 Topics
70661 Posts

Max Online: 432 @ 01/20/25 10:17 PM
April
Su M Tu W Th F Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30