New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there support relative formula update in duplicate row function #1306
Comments
Thanks for your issue. This library doesn't support this feature currently. I'll consider adding support for it later. |
thank you sir~ |
same feature need, thank you ! |
I write this utils funtion can support this feature func parseFormula(formula string, sourceRowID, targetRowID int) (newFormula string) {
reg := regexp.MustCompile(fmt.Sprintf("([A-Z]{1,2}%d)", sourceRowID))
cellSlice := reg.FindAllString(formula, -1)
newFormula = formula
for _, cell := range cellSlice {
col, _, err := excelize.SplitCellName(cell)
if err != nil {
log.Fatalln(err)
}
targetCell, err := excelize.JoinCellName(col, targetRowID)
if err != nil {
log.Fatalln(err)
}
newFormula = strings.ReplaceAll(newFormula, cell, targetCell)
}
return
} call like this |
- Support adjust formula on inserting/deleting columns/rows
- Support adjust formula on inserting/deleting columns/rows
Hi @bailantaotao, @ljyf5593, this library now support this feature, please upgrade to the master branch code, and this feature will be released in the next version. |
Hi,
I wonder to know the feature is supported currently?
In my imagine like below
but in library actually
I have try to find any documents but no answer in library.
The text was updated successfully, but these errors were encountered: