Is there a way to count in pairs in attribute table? For example to be attribute like that: 2, 4, 6, 8, 10 and so on, or 1,3,5,7.


1 Answer 1


You can use the Field Calculator with the expression @row_number*2 to insert an attribute with values 2, 4, 6, ... if this is what you're looking for. Alternatively use @row_number*2 - 2 if you want to start at zero or @row_number*2 - 1 if you want to start at one.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.