Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8157915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:26:57+00:00 2026-06-06T17:26:57+00:00

i have a strange issue with phpexcel on a pair of formulas and can’t

  • 0

i have a strange issue with phpexcel on a pair of formulas and can’t figure the source of the problem. (Other simple math formulas work, only this fails).

Since the php report is quite long i’ll get straight to the point.

Setting this formula like this

$objPHPExcel->getActiveSheet()->setCellValue("D$cuenta_empleados", "=$'asientos_title'.K$cuadro_row" );

Throws me this

Fatal error: Uncaught exception 'Exception' with message 'INPUT NOMINA Agosto!D8 -> Formula Error: An unexpected error occured' in /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/inc/PHPExcel/Cell.php:293 Stack trace:
 #0 /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/inc/PHPExcel/Writer/Excel5/Worksheet.php(455): PHPExcel_Cell->getCalculatedValue() 
 #1 /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/inc/PHPExcel/Writer/Excel5.php(194): PHPExcel_Writer_Excel5_Worksheet->close() 
 #2 /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/classes/Everything.class.php(2361): PHPExcel_Writer_Excel5->save('../../reports/1...') 
 #3 /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/classes/Everything.class.php(3813): Everything->create_act_entry(Array, Array, Array, Array, Array) 
 #4 /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/controllers/common/generar.php(68): Everything->gen_docs(Array, Array, Array) 
 #5 {main} thrown in /Users/PolCPP/Documents/Proyectos/Activos/beneficiat/php/inc/PHPExcel/Cell.php on line 293

So to debug it i remove the = to avoid it’s calculation. I check it on openoffice. And i see

'ASIENTOS Agosto'.K4

And adding the = in front of it works.

The second formula i have issues it’s a condition one (same issue, it can generate it but it works on php)

=IF(D22>O22;D22-O22;0)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:26:59+00:00Added an answer on June 6, 2026 at 5:26 pm

    The developer documentation states that you need to us US/UK separators in formulae.

    Quoting:

    4.6.4. Write a formula into a cell

    Inside the Excel file, formulas are always stored as they would appear in an English version of Microsoft
    Office Excel, and PHPExcel handles all formulae internally in this
    format. This means that the following rules hold:

    • Decimal separator
    is ‘.’ (period)

    • Function argument separator is ‘,’ (comma)

    • Matrix
    row separator is ‘;’ (semicolon)

    • English function names must be used

    This is regardless of which language version of Microsoft Office Excel
    may have been used to create the Excel file.

    so

    =IF(D22>O22,D22-O22,0) 
    

    rather than

    =IF(D22>O22;D22-O22;0) 
    

    The only exception that applies is if you have set locale settings for formulae as described in section 4.6.5 of that document

    The separator for a worksheet in a cell reference is the exclamation mark:

    'ASIENTOS Agosto'!K4 
    

    not

    'ASIENTOS Agosto'.K4 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello have following strange issue, can vertical center the menu text if it's one
I have a strange issue with Hibernate 3.5 which I hope some one can
I have a strange issue. I created a simple app in haskell with sdl,
I'am building simple Ajax application (via jquery). I have strange issue. I found where
I have a strange issue with a MVC 3 app running as an Azure
I have a strange issue . I am currently working on a mail app
I have a strange issue: When I scroll vertically it triggers swipe right/left events.
I have a strange issue (at least for me :)) with the MySQL's locking
I have a strange issue that has arisen recently: Whenever I enter text, even
I have a strange issue with jQuery's hover, addClass $(document).ready(function(){ $('#selectable li').hover( function(){ $(this).addClass('selecting',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.