That formula worked. Thank you very much. I was able to integrate it in my other more complex formula as in:
"Variable 1" "Name" "SharedVariable 1" "Count of shared"
CASSYGDGGTGELFF John Private 1
CATSRSSGYEQYF John Private 1
CASSPAAGAAYEQYF John Shared 3
CASSPAAGAAYEQYF Albert Shared 3
CASSVGSDAYEQYF Albert Private 1
CASSVGGVSYNEQFF Albert Private 1
CASSVSGSAYEQYF Albert Private 1
CASSPAAGAAYEQYF Michael Shared 3
New Column( "SharedVariable1",
Character,
Nominal,
Formula(If(ColNumber( Hex To Number( Char To Hex( :Variable 1 ) ), :Variable 1 ) > Col Number( Hex To Number( Char To Hex( :Variable 1 ) ), :Variable 1 || :Name ), Char("Shared"), Char("Private")))
);
New Column( "Count of shared",
Numeric,
Continuous,
Formula((ColNumber( Hex To Number( Char To Hex( :Variable 1 ) ), :Variable 1 ) - Col Number( Hex To Number( Char To Hex( :Variable 1 )), :Variable 1 || :Name ))+1)
)
One question:
Col Number( Hex To Number( Char To Hex( :Variable 1 ) ) is to create a countable variable. To specificy what to count is after the comma on the:
Col number(Column with a numeric variable, Condition to count)