Počas práce na projekte som narazil na problém podobný tej otázke. Napríklad, ak chcete exportovať informácie o obyvateľovi do Excelu, pretože jeho identifikačné číslo je príliš dlhé (viac ako 10 číslic), Excel automaticky prevedie dlhý reťazec čísel na vedecké počítanie.(Pridanie "'", '' alebo tabulátora pred a za reťazec čísel nebude fungovať a Excel ich automaticky odstráni.) )
Jedno z riešení:<tdstyle="mso-number-format:'\@'; ">100821199909091234</td> Pridané style="mso-number-format:'\@'; " štýl, (osobný test je možný!) )
Iné štýly vlastného formátovania buniek | mso-number-format:"0" | ŽIADNE desatinné čísla | | mso-number-format:"0\.000" | 3 desatinné čísla | | mso-number-format:"\#\,\#\#0\.000" | Čiarka s 3 dec | | mso-number-format:"mm\/dd\/yy" | Dátum7 | | mso-number-format:"mmmm\ d\,\ yyyy" | Date9 | | mso-number-format:"m\/d\/yy\ h\:mm\ AM\/PM" | D -T AMPM | | mso-number-format:"Short Date" | 01/03/1998 | | mso-number-format:"Medium Date" | 01-mar-98 | | mso-number-format:"d\-mmm\-yyyy" | 01-mar-1998 | | mso-number-format:"Short Time" | 5:16 | | mso-number-format:"Medium Time" | 5:16 ráno | | mso-number-format:"Long Time" | 5:16:21:00 | | mso-number-format:"Percent" | Percento – dve desatinné čísla | | mso-number-format:"0%" | Percento – žiadne desatinné čísla | | mso-number-format:"0\.E+00" | Vedecká notácia | | mso-number-format:"\@" | Text | | mso-number-format:"\#\ ???\/???" | Zlomky - až do 3 číslic (312/943) | | mso-number-format:"\0022£\0022\#\,\#\#0\.00" | £12.76 | | mso-number-format:"\#\,\#\#0\.00_ \;Red\-\#\,\#\#0\.00\ " | 2 desatinné čísla, záporné čísla červenou a podpísané (1.56 -1.56) |
|