Minato5972
New Member
- Joined
- Mar 18, 2021
- Messages
- 11
- Office Version
- 2019
- 2016
Transformed(PRow * (c - 1) + 1, 39) = "=MAX(X" & Sum & ",Y" & Sum & ")-INDIRECT(ADDRESS(ROW(AC" & Sum + 3 & "), 28+X" & Sum + 1 & "))+ INDIRECT(ADDRESS(ROW(AF" & Sum & "), 28+(X" & Sum + 1 & "+1)))"
Value 0 must be assigned to "Transformed(PRow * (c - 1) + 1, 39) " if the value is negative.
So i tried to assign the formula to a vairably "qty" to check if the value is less than 0 by using a IF statement but worksheet.Evaluate("formula") is not working
Value 0 must be assigned to "Transformed(PRow * (c - 1) + 1, 39) " if the value is negative.
So i tried to assign the formula to a vairably "qty" to check if the value is less than 0 by using a IF statement but worksheet.Evaluate("formula") is not working