T
Tom
I need some help with a function that I'd like to utilize in a report.
The following is some sample data of a report (ID, ORG, SUB-ORG are the
field headers):
ID ORG SUB-ORG
1 ABC F, G, H
DEF G, R
2 DEF M
GHI H, K, M
3 KLM S
NOP R, T
According to the example, records are grouped by the ID field. It then
shows the organisation (ORG) and the interaction with any sub-organizations
(SUB-ORG).
Here's what I'm trying to achieve:
1.For each ID (here 1 or 2 or 3), 'BOLD' the "sub-organization letter" in
the SUB-ORG string if it exists in multiple organizations.
EXAMPLES:
In ID "1", SUB-ORG "G" exists as the 2nd sub-organization of ORG "ABC".
Therefore, I want to "bold" the letter "G"... NOT the letters "F" and "H"
In ID "1", SUB-ORG "G" exists as the 1st sub-organization of ORG "DEF".
Therefore, I want to "bold" the letter "G"... NOT the letter "R"
In ID "2", SUB-ORG "M" exists as the only sub-organization of ORG "DEF".
Therefore, I want to "bold" the letter "M"
In ID "2", SUB-ORG "M" exists as the 3rd sub-organization of ORG "GHI".
Therefore, I want to "bold" the letter "M"... NOT the letters "H" and "K"
In ID "3", nothing should be "bold" in the SUB-ORG string since there are no
multiple instances of any of the sub-organizations (S, R, T are unique for
ID "3").
I am not sure if this can be done... otherwise, any advice to solve this
function is truly welcomed.
Thanks,
Tom
The following is some sample data of a report (ID, ORG, SUB-ORG are the
field headers):
ID ORG SUB-ORG
1 ABC F, G, H
DEF G, R
2 DEF M
GHI H, K, M
3 KLM S
NOP R, T
According to the example, records are grouped by the ID field. It then
shows the organisation (ORG) and the interaction with any sub-organizations
(SUB-ORG).
Here's what I'm trying to achieve:
1.For each ID (here 1 or 2 or 3), 'BOLD' the "sub-organization letter" in
the SUB-ORG string if it exists in multiple organizations.
EXAMPLES:
In ID "1", SUB-ORG "G" exists as the 2nd sub-organization of ORG "ABC".
Therefore, I want to "bold" the letter "G"... NOT the letters "F" and "H"
In ID "1", SUB-ORG "G" exists as the 1st sub-organization of ORG "DEF".
Therefore, I want to "bold" the letter "G"... NOT the letter "R"
In ID "2", SUB-ORG "M" exists as the only sub-organization of ORG "DEF".
Therefore, I want to "bold" the letter "M"
In ID "2", SUB-ORG "M" exists as the 3rd sub-organization of ORG "GHI".
Therefore, I want to "bold" the letter "M"... NOT the letters "H" and "K"
In ID "3", nothing should be "bold" in the SUB-ORG string since there are no
multiple instances of any of the sub-organizations (S, R, T are unique for
ID "3").
I am not sure if this can be done... otherwise, any advice to solve this
function is truly welcomed.
Thanks,
Tom