My excel table looks like this:
Counter ProductDescription
1 Bed
2 Chair
3 Chair
4 Table
5 Chair
6 Table
I want every time it finds the same consecutive description, to not increase the counter. So the output should look like:
Counter ProductDescription
1 Bed
2 Chair
2 Chair
3 Table
4 Chair
5 Table
I used a MultiRow formula tool with the "Update Existing Field" set to [Counter], and my expression is:
IF [ProductDescription]=[Row-1:ProductDescription] THEN ToNumber("1") ELSE ToNumber("[Counter]+1")
ENDIF
But it gives me endless 0s and 1s. I used the "ToNumber" function because I was getting an error about a string being entered into a numerical field or something. Counter is an integer and productdescription is a string.