You are on page 1of 3

Dim devTeam(1 To 17) As String Dim testingTeam(1 To 19) As String Dim reqTeam(1 To 6) As String Dim sme(1 To 2) As String Public

Function GetTeam(Cell As Range) As String Call CreateTeam(devTeam, testingTeam, reqTeam, sme) devMatch = CeckArray(Cell, 1) testMatch = CeckArray(Cell, 2) reqMatch = CeckArray(Cell, 3) smeMatch = CeckArray(Cell, 4) If devMatch = True Then ' Match GetTeam = "TS" End If If testMatch = True Then GetTeam = "V&V" End If If reqMatch GetTeam End If If smeMatch GetTeam End If End Function Function CeckArray(Cell As Range, V As Integer) As Boolean Dim d As Boolean CeckArray = False If V = 1 Then For Each lArr In devTeam If lArr = Cell.Value Then CeckArray = True End If Next lArr End If If V = 2 Then For Each lArr In testingTeam If lArr = Cell.Value Then CeckArray = True End If Next lArr End If If V = 3 Then For Each lArr In reqTeam If lArr = Cell.Value Then CeckArray = True End If Next lArr End If If V = 4 Then For Each lArr In sme If lArr = Cell.Value Then = True Then = "REQ" = True Then = "SME"

CeckArray = True End If Next lArr End If End Function Sub CreateTeam(devTeam, testingTeam, reqTeam, sme) devTeam(1) = "Gautham" devTeam(2) = "Jins philip" devTeam(3) = "Murugan" devTeam(4) = "Joseph Rathnaraj" devTeam(5) = "Srikanth. Y. Kumar" devTeam(6) = "Sripati Pattanayak" devTeam(7) = "Dhivya Srinivasan" devTeam(8) = "Kannan Thirumal" devTeam(9) = "Naganathan (LPIDOMAIN\Naganathan)" devTeam(10) = "Nageswara Reddy Orekanti" devTeam(11) = "Nikhil Thaker" devTeam(12) = "Somnath Kasta" devTeam(13) = "Vijay Arumugam" devTeam(14) = "Saravana Kumar" devTeam(15) = "A96B6D1E-FCA7-4A5A-9866-441F566A5BF5" devTeam(16) = "DFDC41CD-82CC-48D6-861A-CDCC2D1169BE" devTeam(17) = "Aneesh"

testingTeam(1) = "Balamurugan d" testingTeam(2) = "B. Kalaivani" testingTeam(3) = "Devaram sindhura" testingTeam(4) = "Endla Mahalakshmi" testingTeam(5) = "Girish Pillai (LPIDOMAIN\GPillai)" testingTeam(6) = "Mahalakshmi" testingTeam(7) = "S Prashanth" testingTeam(8) = "Shaik Feroz Ahmed" testingTeam(9) = "Sujani Devi Reddy" testingTeam(10) = "sumanta nayak (LPIDOMAIN\SNayak)" testingTeam(11) = "usha patil" testingTeam(12) = "V. Sreekanth" testingTeam(13) = "Vishnu priya" testingTeam(14) = "Sumanta Nayak (LPIDOMAIN\Sumanta)" testingTeam(15) = "Murali Krishna" testingTeam(16) = "Prashanth" testingTeam(17) = "55C2AC11-F5DF-437E-92F3-8E0B2AE0360D" testingTeam(18) = "13A05B2A-57B4-4CAE-BB56-DA29BDEBD304" testingTeam(19) = "Girish Pillai (LPIDOMAIN\girish)"

reqTeam(1) reqTeam(2) reqTeam(3) reqTeam(4) reqTeam(5) reqTeam(6)

= = = = = =

"Neela" "Nisha k" "9CE603BF-72F0-4198-B706-B4870BB6C965" "Minni Minaxi" "Mathews Sebastian" "Raghav"

sme(1) = "Reuben Domike" sme(2) = "Ching-Huei Tsou" End Sub

======Formula------=GetTeam([@[Assigned To]])

You might also like