Nice options, indeed.
However, I still see two advantages for QLingo (or JavaScript or
VBScript, if you operate a uPlan-capable configuration):
* if you are a Service Provider (I mean: a subcontractor, who receives
Excel files from a customer), it can be a little hazardous to edit the
Excel file (some customers here even forbid their subcontractors to do
so);
* using QLingo is database independant: if your Excel file suddenly
becomes an Access, CSV or dBase (without mentiong SQL database, MySQL,
Oracle etc. if you have a uPlan-capable configuration), your XMPie
application will still be compatible. When coding the equivalent of an
Excel formula in Access or SQL can only take a couple of minutes, what
if there are dozens of? What if there are two data sources: one for
proofing (say, an Excel file) and one for production (say, an Access
file). Each slight change in an Excel formula needs to be re-coded in
Access... With QLingo, everything is centralized and shared in one
single XMPie code.
On Jan 2, 4:46 pm, Mark Kuehn <
mark_ku...@comcast.net> wrote:
> There are a couple a ways around this. The zipcode formatting in Excel does
> not work. I format the ZIP column at text and then create a new column and
> use the Excel text() function.
>
> For example purposes lets assume the existing zipcode column is "M" and the
> newly inserted column is "N".
>
> In cell N2 enter this formula:
> =if(len(trim(m2))<6,text(trim(m2),"00000"),if(len(trim(m2))<10,text(trim(m2)
> ,"000000000"),text(trim(m2),"00000000000")))
>
> The result of this formula is a string that is left padded with zeros, 5
> digits in the first case, 9 in the second, and 11 in the last case.
>
> After applying the formula to all the rows, select the entire newly inserted
> column and hit "Copy". Then move to the top of the newly inserted column and
> hit "Paste Special..." and select "Values" in the popup. You can now delete
> the original Zip column.
>
> The data should now be written properly to have the leading zero in the
> data.
>
> Or you could accomplish the same with a Qlingo and/or JavaScript in the Plan
> file.
>
> -Mark
>