Populate Remarks Based on Criteria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
953
Office Version
  1. 365
Hi,

I have the following table:
QMS Anomaly Remarks.xlsx
BCDEFGHIJKLMNOPQRS
13-Nov
2BranchJan AverageJan UpperJan Lower1-Nov1 Nov SLA2-Nov2 Nov SLA3-Nov3 Nov SLAMTD SLAUpper LimitLower LimitDaily Anomaly Remarks
3Branch1101281989%793%1191%95%0%0%SLA below KPI at 89%.
4Branch21214102187%2187%2185%95%50%0%Branch2 exceeded the upper limit volume by 50%. SLA below KPI at 85%.
5Branch31416121598%1598%1598%89%0%0%SLA achieved at 98%.
6Branch41214101995%1995%1995%95%36%0%Branch4 exceeded the upper limit volume by 35.71%. SLA achieved at 95%.
7Branch51517131896%1896%1896%87%6%0%Branch5 exceeded the upper limit volume by 5.88%. SLA achieved at 96%.
8Branch61820161098%1098%1098%95%0%38%Branch6 ticket volume is below the lower limit by 37.5%. SLA achieved at 98%.
9Branch71921171898%1898%1898%95%0%0%SLA achieved at 98%.
10Branch82022181998%1998%1998%91%0%0%SLA achieved at 98%.
Sheet1
Cell Formulas
RangeFormula
P3:P10P3=IF(ISNUMBER(MATCH($P$1, G$2:L$2, 0)), IF(INDEX(G3:L3, MATCH($P$1, G$2:L$2, 0)) > D3, ROUND((INDEX(G3:L3, MATCH($P$1, G$2:L$2, 0)) - D3) / D3, 4), 0), 0)
Q3:Q10Q3=IF(ISNUMBER(MATCH($P$1, G$2:L$2, 0)), IF(INDEX(G3:L3, MATCH($P$1, G$2:L$2, 0)) < E3, ROUND(ABS(INDEX(G3:L3, MATCH($P$1, G$2:L$2, 0)) - E3) / E3, 4), 0), 0)
S3:S10S3=IF(ISNUMBER(MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0)), IF(AND(P3=0, Q3=0), IF(H3 >= 0.9, "SLA achieved at " & ROUND(H3*100, 2) & "%.", "SLA below KPI at " & ROUND(H3*100, 2) & "%." ), IF(AND(P3 > 0, Q3 > 0), B3 & " exceeded the upper limit volume by " & ROUND(P3*100, 2) & "% and ticket volume is below the lower limit by " & ROUND(Q3*100, 2) & "% respectively. " & IF(H3 >= 0.9, "SLA achieved at " & ROUND(H3*100, 2) & "%.", "SLA below KPI at " & ROUND(H3*100, 2) & "%." ), IF(P3 > 0, B3 & " exceeded the upper limit volume by " & ROUND(P3*100, 2) & "%. " & IF(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0)) >= 0.9, "SLA achieved at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%.", "SLA below KPI at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%." ), IF(Q3 > 0, B3 & " ticket volume is below the lower limit by " & ROUND(Q3*100, 2) & "%. " & IF(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0)) >= 0.9, "SLA achieved at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%.", "SLA below KPI at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%." ), IF(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0)) >= 0.9, "SLA achieved at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%.", "SLA below KPI at " & ROUND(INDEX(G3:L3, MATCH(TEXT($P$1, "d mmm") & " SLA", G$2:L$2, 0))*100, 2) & "%." ) ) ) ) ), "No match in Date. Check again." )


1/ The first table to the left is the average ticket for the month of January. It also shows the upper limit and the lower limit of the ticket for January.
2/ The second table in the middle shows the actual ticket volume for Nov and the daily SLA met by the respective branches.
3/ The third table to the right shows if the Nov daily ticket exceeded the upper limit of below the lower limit as compared to the month of January based on the date on cell P1
4/ In column S, I am trying to populate the remarks for each branch on daily basis.
5) The branch name is in column B. Daily SLA to be achieved is 90%.

The criteria are as follows:
a) Look at the date at cell P1 and match the data in column G:L and check the daily ticket for that day
b) Compare the daily ticket based on (a) and compare the daily ticket with the upper limit and lower limit in column D and E.
c) If the daily ticket in (b) is above the upper limit in column D, then return "<Branch Name> exceeded the upper limit volume by <upper limit % from column P>. SLA is above/below <from daily SLA%>"
d) If the daily ticket in (b) is below the lower limit in column E, then return "<Branch Name> ticket volume is below the lower limit volume by <lower limit % from column Q>. SLA is above/below <from daily SLA%>"
e) If the daily ticket in (b) is below the upper limit in column D, and higher than the lower limit in column E, and the daily SLA % is above 90%, then return "SLA is achieved at <SLA %>"
f) If the daily ticket in (b) is below the upper limit in column D, and higher than the lower limit in column E, and the daily SLA % is below 90%, then return "SLA is below KPI at <SLA %>"

The current formula in column S seems to be working. However for Nov 3, the daily ticket for Branch1 is 11 which is lower than the upper limit and higher than the lower limit. Based on the above crietria, the formula should return "SLA achieved at 91%". However, the formula returns "SLA is below KPI at 89%".

Appreciate any help on how to correct this.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello! From the fact that P3 = 0 and Q3 = 0, as well as H3 <0.9, the formula returns "SLA below the KPI at 89%."
 
Upvote 0
This should help. The output text is recorded in separate cells of the column "U", and links to them are added to the formulas.
Populate Remarks Based on Criteria.xlsx
BCDEFGHIJKLMNOPQRSTU
13-Nov
2BranchJan AverageJan UpperJan Lower1-Nov1 Nov SLA2-Nov2 Nov SLA3-Nov3 Nov SLAMTD SLAUpper LimitLower LimitDaily Anomaly RemarksSLA achieved at
3Branch1101281989,00%793,00%1191,00%95,00%0%0%SLA achieved at 91 %.SLA below KPI at
4Branch21214102187,00%2187,00%2185,00%95,00%50%0%Branch2 exceeded the upper limit volume by 50 %. SLA below KPI at 85 %.exceeded the upper limit volume by
5Branch31416121598,00%1598,00%1598,00%89,00%0%0%SLA achieved at 98 %.% and ticket volume is below the lower limit by
6Branch41214101995,00%1995,00%1995,00%95,00%36%0%Branch4 exceeded the upper limit volume by 35,71 %. SLA achieved at 95 %.% respectively.
7Branch51517131896,00%1896,00%1896,00%87,00%6%0%Branch5 exceeded the upper limit volume by 5,88 %. SLA achieved at 96 %.ticket volume is below the lower limit by
8Branch61820161098,00%1098,00%1098,00%95,00%0%38%Branch6 ticket volume is below the lower limit by 37,5 %. SLA achieved at 98 %.No match in Date. Check again.
9Branch71921171898,00%1898,00%1898,00%95,00%0%0%SLA achieved at 98 %.
10Branch82022181998,00%1998,00%1998,00%91,00%0%0%SLA achieved at 98 %.
Sheet1
Cell Formulas
RangeFormula
P3:P10P3=IF(ISNUMBER(MATCH($P$1,G$2:L$2,0)),IF(INDEX(G3:L3,MATCH($P$1,G$2:L$2,0)) > D3,ROUND((INDEX(G3:L3,MATCH($P$1,G$2:L$2,0)) - D3) / D3,4),0),0)
Q3:Q10Q3=IF(ISNUMBER(MATCH($P$1,G$2:L$2,0)),IF(INDEX(G3:L3,MATCH($P$1,G$2:L$2,0)) < E3,ROUND(ABS(INDEX(G3:L3,MATCH($P$1,G$2:L$2,0)) - E3) / E3,4),0),0)
S3:S10S3=IF(ISNUMBER(MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0)), IF(AND(P3=0,Q3=0),IF(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))>=0.9,$U$2&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %.",$U$3&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %."), IF(AND(P3>0,Q3>0),B3&" "&$U$4&" "&ROUND(P3*100,2)&" "&$U$5&" "&ROUND(Q3*100,2)&" "&$U$6&" "& IF(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))>=0.9,$U$2&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %.",$U$3&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %."), IF(P3>0,B3&" "&$U$4&" "&ROUND(P3*100,2)&" %. "&" "& IF(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))>=0.9, $U$2&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %.", $U$3&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %."), IF(Q3>0,B3&" "&$U$7&" "&ROUND(Q3*100,2)&" %. "& IF(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))>=0.9, $U$2&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %.", $U$3&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %."), IF(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))>=0.9, $U$2&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %.", $U$3&" "&ROUND(INDEX(G3:L3,MATCH(TEXT($P$1,"d mmm")&" SLA",G$2:L$2,0))*100,2)&" %."))))),$U$8)
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top