New Post: Format cell for >24hours sum
I'm familiar with[h]:mm and that should work. I wasn't aware that a [t] mask existed: it isn't mentioned in the MS Excel docs at all
View ArticleNew Post: Format cell for >24hours sum
Thanks Mark I'm using the danish version of Excel 2013, and [t] is used as t stands for time = hour in english. Your suggestion works, so now I know I have to use the english notation and it will be...
View ArticleNew Post: PHPExcel search cell by value
There's nothing built-in to PHPExcel to do a search, but it's pretty straightforward to write something yourself based around the iterators.... take a look at 28iterator.php in /Examples $foundInCells...
View ArticleNew Post: PHP error generating excel worksheets
I have this same issue - working fine on localhost Php 5.4.30 but the error is there on the live server running Php 5.3.28 - thing is though that this has always been the latest 1.8.0 branch.
View ArticleNew Post: Insert Object (Picture) Properties
I'm inserting quite a few images into a spreadsheet and I'd like to know if it is possible to change their properties. Specifically, I want to set the picture properties to "Move and size with cells"....
View ArticleNew Post: Pre Calculate Formulas Problem
Hello, I just finished up writing a rather larger report using this system. It uses 3 sheets and and lots of formulas. When I do not enable the pre calculate formulas when saving the file, when I...
View ArticleNew Post: PHPExcel can not read with excel 2010 when protected editing
hi everyone, i am using PHPExcel to read content but PHPExcel can not read content when excel file is protected in office 2010. any idea?? thanks for advance
View ArticleNew Post: PHP error generating excel worksheets
If you can point me to any instance of short array syntax in the 1.8.0 release, then I can fix it. I have searched and am completely unable to find any such instance. There was briefly a use of short...
View ArticleNew Post: Insert Object (Picture) Properties
There is no "Move and size with cells" option for images because any images added through PHPExcel are "single anchored", and the top left anchor for images should always be related to a specific cell...
View ArticleNew Post: Fill Color vs Conditional Formatting
At the moment the excel workbook I am generating via PHPExcel takes about 30 seconds. I found that if I remove the coloring steps in the row iterators that the generation is down to 10 seconds. I would...
View ArticleNew Post: Fill Color vs Conditional Formatting
Conditional formatting is slower than standard styling, and can only be applied to individual cells, so it's slower and more memory hungry; and if you wouldn't use conditional styling for cells in MS...
View ArticleNew Post: Import multisheet into mysql database
We have code to import excel to mysql database, there are 10 sheets inside. It works to view on browser all sheet, but only one sheet insert into database. Could you help us, thanks.$path =...
View ArticleNew Post: Read only one sheet to Array
I am using PHPExcel to only read values from excel sheets if i use this code , it works fine without no problem:function ReadUploadedFile($Uploadedfile,$fileExtension) { class MyReadFilter implements...
View ArticleNew Post: Fill Color vs Conditional Formatting
Thank you for your response. For some of the sheets I basically need to alternate row color. So it sounds like conditional formatting will be the way to go once the data is written and I can select the...
View ArticleNew Post: How to format a cell for time data and after in document use sum of...
Hi I created time cell by this topic. I have format:$d= DateTime::from('00:30:00'); $objPHPExcel->getActiveSheet()->SetCellValue('N' . ($key + 2), $d->format('G:i:00'));...
View ArticleNew Post: Fill Color vs Conditional Formatting
Standard formatting would be better for your alternating rows, because you can set the range for each style as A1:Z1, A2:Z2, A3:Z3, etc, so at least you're setting several cell styles each time...
View ArticleNew Post: How to format a cell for time data and after in document use sum of...
Don't store a formatted date as a string in a cell. You can't simply add string values and expect to get a sensible number as a result. The topic you've linked to shows several methods for converting a...
View ArticleNew Post: How to format a cell for time data and after in document use sum of...
@MarkBaker Thx, and one more question, it is possible use not DateTime? Because I don't need date only time. I have only '00:30:00' and in excel is [now date '00:30:00'] like 29.1.2015 2:30:00
View ArticleNew Post: How to format a cell for time data and after in document use sum of...
If you need purely time, then you need to force the date to Excel's baseline date: 31st December 1900. Standard PHP behaviour when setting a DateTime object with purely a time, it will assume today's...
View ArticleNew Post: How to format a cell for time data and after in document use sum of...
@MarkBaker Thx, when I use this solution I have also date in in excel cell. And what about this? Is this best particle?$time = '00:30:00'; $objPHPExcel->getActiveSheet()->SetCellValue('N' . ($key...
View Article