89
Views
4
Comments
Solved
[Advanced Excel] Fill formula down column
Question
advanced-excel
Service icon
Forge asset by Carlos Freitas
Application Type
Service

Hi,

I have an action that works good. I added a column that contains an "IF" formula based on adjacent cell. I have the formula set up in the ListAppend. The formula shows up in the export spreadsheet (column F), but it doesn't execute. 

This is the statement in the ListAppend: "=if(e"+RowNumber+"="""",today(),e"+RowNumber+")"

 

This is what it looks like in the exported spreadsheet:

If I click on it in the formula line of excel and then enter it will execute:

Is there an Advanced Excel server action that I can use to make the formula execute properly in the exported excel?

Thanks,

Glenn


2022-12-22 10-00-39
Beatriz Sabino
Solution

Hi Glenn.

There is an action, SetFormulaByName, that might help you.

UserImage.jpg
Glenn Southward

Hi Beatriz,

Thanks for the reply and advice. I had tried the SetFormulaByName but it only affected one cell. I didn't think it would work for my needs, but I was using it wrong. 

I then placed it in the "For Each" loop with the formula I had in the ListAppend and it worked.

Thanks,

Glenn

2025-09-25 22-50-38
Hanno

Hi Glenn

You have some options to calculate the formulas before downloading the excel file.

  1. Cell_CalculateBy* to calculate only a specific cell
  2. Worksheet_Calculate to calculate all formulas in all cell for a specific sheet
  3. Workbook_Calculate to calculate all formulas for all cells in all sheets in the workbook

Hope this helps.

Hanno 

UserImage.jpg
Glenn Southward

Hi Hanno,

Thanks for the reply. I tried the Worksheet_Calculate with the settings I had and it didn't seen to have any effect on the exported file. 

Then I revisited the process with the SetFormulaByName in a different part of the action and things worked. 

Thanks,

Glenn

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.