In cell T2, I have write the formular as the figure:
Yet, why it is disappear? Can anyone help me to fix?
Robot
FA Sorting MU-rep MU-bias try 2.0.xaml (148.8 KB)
(this issue is from component 2 - MU-rep)
Yet, why it is disappear? Can anyone help me to fix?
Robot
FA Sorting MU-rep MU-bias try 2.0.xaml (148.8 KB)
(this issue is from component 2 - MU-rep)
I’d be glad to provide an improved response that incorporates the strengths of both Response A and Response B, addresses their potential shortcomings, and leverages insights from the ratings:
Understanding the Disappearing Formula Cells Issue:
In UiPath automation, when formulas written by a robot into Excel cells vanish, it’s typically due to activities like “Write Cell” or “Write Range” inadvertently overwriting the entire cell content, including existing formulas.
Solutions to Prevent Overwriting:
Utilize “Set Formula” Activity (Preferred):
Modify Existing Cell Content with “Insert/Modify Rows” (Advanced):
CellInformation
object to specify the formula and other attributes you want to retain.Steps for Using “Set Formula” Activity:
Illustrative Example:
// Assuming your formula is stored in the "formulaString" variable
// Set Formula Activity
var setFormula = new UiPath.Excel.Activities.SetFormula()
{
Target = "A1", // Or "wnd app" for active window
Formula = formulaString
};
// Execute the activity
setFormula.Execute();
Additional Considerations:
By following these strategies, you can effectively prevent formula cells written by your UiPath robot from disappearing and ensure your Excel automations accurately handle formula-based data.
If i want to use the set formular activity, can u illustate me using my workflow ? Thank u so much
@Happydayyy , Don’t write anything into the formula cell which solve your issue