Forum Discussion
azaterol
4 years agoHelper V
Fill with digits
Hello everyone, I have a table "Customers_and_Suppliers" that contains an ID and the corresponding Customers_and_Suppliers_NR. I want to add a custom column in this table. If there is a NR that mat...
Hoangechip910
4 years agoFrequent Visitor
Hi
Try the calculate column below
Adress ID = if( Customer_and_Suppliers_NR in {"10","20","30","40","50"},2000000000 + VALUE(ID),1000000000 + VALUE(ID))
or
Adress ID = if( Customer_and_Suppliers_NR in {"10","20","30","40","50"},
REPLACE ("2000000000",10- LEN(ID) + 1,LEN(ID),ID coummn),
REPLACE ("1000000000",10- LEN(ID) + 1,LEN(ID),ID coummn) )