Skip to main content

Python implementation of Excel's `text` function

Project description

excel-text

Python implementation of Excel's text function.

The 1900 bug is reproduced.

Upstream docs

Examples

  1. Currency with thousands separators and decimals. =TEXT(1234.567,"$#,##0.00") = $1,234.57
  2. Date and time functions. =TEXT(10,"MM/DD/YYYY") = 01/10/1900
  3. Percentages =TEXT(0.285,"0.0%") = 28.5%
  4. Leading zeros =TEXT(1234,"0000000") = 0001234
  5. Custom Latitude/longitude =TEXT(123456,"##0° 00' 00''") = 12° 34' 56''

Limitations

  • Filling with * is not supported.
  • @ is not supported in the format argument.
  • Single quotation marks ' are not supported for inserting strings. Double quotation marks " must be used.
  • String characters that can be incorrectly interpreted as datetime options can only be used if used with quotation marks.
  • When [] are used for date/datetime/time, only the first character in the brackets will be used.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excel-text-0.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

excel_text-0.0.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file excel-text-0.0.2.tar.gz.

File metadata

  • Download URL: excel-text-0.0.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for excel-text-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c76b2afb37c584add8a94160c40cb4cdf7bb3c6e4d697456cbaf1bf40dcd2f84
MD5 59758f1a4090148cb2a8a1e42b580282
BLAKE2b-256 1008c6d3130ffbde086584c8d99b6c2d23aaec0b1e0a8e7888f4f2bfafbc94c9

See more details on using hashes here.

File details

Details for the file excel_text-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: excel_text-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for excel_text-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 607195d73db124375b92f20443fdae3d653088a290a79ae9c7eac8e138b9eb78
MD5 9d4c0636acb687f2745225eb008ddc31
BLAKE2b-256 7d5fe6a6d7aca9ebcea3c05e709394790304dd00afdf55462dddae41ec73a867

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page