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

  • SEARCH
  • Home
  • 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 8048799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:35:39+00:00 2026-06-05T06:35:39+00:00

I am having a problem when i save my new excel file. I want

  • 0

I am having a problem when i save my new excel file. I want it that when it gets saved the formula calculates itself but at the moment it is just returning a string in the excel file. The formula is correct. I don’t know exactly to get the FormulaEvaluator to work.

Here is where I enter my formula that returns a string:

dataRow1.createCell((short)5).setCellValue("=VLOOKUP(A"+rowCountVlookup+",'C:\\Users\\Admin\\Documents\\JCreator LE\\MyProjects\\WordCount\\classes\\[Pricing.xlsx]Sheet1'!$B$3:$E$41,4, FALSE)*E"+rowCountVlookup+"");

Any help would be much appreciated.

  • 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-05T06:35:40+00:00Added an answer on June 5, 2026 at 6:35 am

    I use this code to evaluate a formula

    //I use an instance of the workbook for the Excel workbook I'm working at the moment
    Workbook wbook;
    
    private CellValue formulaEvaluation(Cell cell) {
        FormulaEvaluator formulaEval = wbook.getCreationHelper().createFormulaEvaluator();
        return formulaEval.evaluate(cell);
    }
    
    public Double obtieneObjetoNumericoCelda(Cell cell) {
        Double dblValue = null;
        if (cell != null) {
            switch(cell.getCellType()) {
            case Cell.CELL_TYPE_NUMERIC:
                dblValue = cell.getNumericCellValue();
                break;
            case Cell.CELL_TYPE_FORMULA:
                CellValue objCellValue = formulaEvaluation(cell);
                if (objCellValue.getCellType() == Cell.CELL_TYPE_NUMERIC) {
                    dblValue = objCellValue.getNumberValue();
                }
                break;
            }
        }
        return dblValor;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having that problem that my model dont want to save. I have
I am having a problem with a XAML report that needs to be saved
I'm having a problem with symfony2 when i'm trying to save the data from
Having problem with my application, I seem to be new in ios. My project
i having problem with draw image in applet. i want to display all images
In this question I was having problem with saving objects that had foreign keys
I'm having a problem with validation in my RoR Model: def save self.accessed =
So I'm new to Ajax in RoR and having first problem with executing .js.erb
I have checked several other threads but I am still having a problem. I
I'm having a problem with the conversion to Excel code I'm finding. I am

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.