Newbies coopersred Posted August 1, 2006 Newbies Posted August 1, 2006 I need to import an Excel spreadsheet into Filemaker to convert it to a database. I have one column that displays UPC codes as 14 digit numbers in my spreadsheet. In Excel I can format the cells so that it always show 14 digits. For example if I enter 22211704423, Excel will add three leading zeros and format the cell as: 00022211704423 Is there any way I can do this in Filemaker? Thanks
Raybaudi Posted August 1, 2006 Posted August 1, 2006 Hi coopersred yes, you can do it in FileMaker. Make a text field (UPCcodes) with AutoEnter/Replace option based on this calculation: Right( "00000000000000" & UPCcodes ; 14 ) Whatever number you'll insert into the field, FM will convert it to a text field of 14 chars with the correct number of leading zeros.
Lee Smith Posted August 1, 2006 Posted August 1, 2006 (edited) I'm trying to duplicate the problem for my own knowledge. Although the formula that Daniele provided will take care your need, I'm curious as to why FileMaker would be dropping these leading zeros, if they are actually there in the export. I did a test of export from Excel using a Text field with the zeros, and it imported (opened) with the leading zeros intact. TIA for your feedback. Lee Edited August 1, 2006 by Guest
Newbies coopersred Posted August 2, 2006 Author Newbies Posted August 2, 2006 Thank you - that works perfect. The orignal numbers in spreadsheet were imported to Filemaker without the cell formatting which was adding the leading zeros.
comment Posted August 2, 2006 Posted August 2, 2006 Filemaker imports data, not formatting. There never were any leading zeros in your actual Excel data.
Recommended Posts
This topic is 6688 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now