Making tiered list with AND statement?

normalkiwi

New Member
Joined
Mar 21, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I am trying to make a tiered list, or rank, to rank employees success. There are 2 things I am looking for in the rankings, number of sales that day and the conversion rate.

Tier 1: Sales greater or equal to 30 and 100% conversion Output: 1
Tier 2: Sales greater or equal to 25 and 99%-95% conversion. Output: 2
Tier 3: Sales greater or equal to 20 and 94%-90% conversion. Output: 3
Tier 4: whatever is leftover Output: 4

I am having trouble if this is something I can do with a IF/AND formula? If so, what does something like this look like?

Thanks
 

Attachments

  • Excel.PNG
    Excel.PNG
    31 KB · Views: 7

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
somethin like this?
sheet DATA has your data listed

sheet RATES has the tier values:
tierLevel sales ConvStart ConvEnd
Tier1 30 100% 100%
Tier2 25 95% 99%
Tier3 20 90% 94%
Tier4 0

run: AnalyzeTier()
Code:
'Tier 1: Sales greater or equal to 30 and 100% conversion Output: 1
'Tier 2: Sales greater or equal to 25 and 99%-95% conversion. Output: 2
'Tier 3: Sales greater or equal to 20 and 94%-90% conversion. Output: 3
'Tier 4: whatever is leftover Output: 4
Sub AnalyzeTier()
Dim aTiers()
Dim bTierFound As Boolean
Dim t As Integer, iRows As Integer, r As Integer
Dim vConv, vSaleAmt, vTierAward, vName
  '==== load rates
Sheets("rates").Activate
Range("a1").Select
iRows = ActiveSheet.UsedRange.Rows.Count
ReDim aTiers(iRows - 1, 3)
Range("a2").Select
r = 1
While ActiveCell.Value <> ""
    aTiers(r, 1) = ActiveCell.Offset(0, 2).Value  'convStart
    aTiers(r, 2) = ActiveCell.Offset(0, 3).Value  'convEnd
    aTiers(r, 3) = ActiveCell.Offset(0, 1).Value  'sales
  
    ActiveCell.Offset(1, 0).Select   'next person row
    r = r + 1
Wend
iRows = iRows - 1
 '======process data
Sheets("Data").Activate
Range("B2").Select

While ActiveCell.Value <> ""
    vSaleAmt = ActiveCell.Offset(0, 1).Value
    vConv = ActiveCell.Offset(0, 3).Value
    vName = ActiveCell.Offset(0, 0).Value
  
    t = 1
    bTierFound = False
    While Not bTierFound And t <= iRows
        For t = 1 To iRows
            If vConv >= aTiers(t, 1) And vConv <= aTiers(t, 2) And vSaleAmt >= aTiers(t, 3) Then
              bTierFound = True
              vTierAward = "Tier" & t
              Exit For
            End If
        Next
    Wend
  
  
    If bTierFound Then
    Else
      vTierAward = "Tier" & iRows
    End If
  
    ActiveCell.Offset(0, 4).Value = vTierAward
  
    ActiveCell.Offset(1, 0).Select   'next person row
Wend
End Sub
'If vName = "Mad Hatter" Then
'Beep
'End If
 
Upvote 0
Hi,

Your written requirements are unclear.
What if sales is 21 at 96% Conversion...

Does this achieve what you want.

Book3.xlsx
BCDEFG
1
2# SalesConversionTier
322100%3
41498%4
51197%4
6665%4
725100%2
81785%4
93096%2
1030100%1
Sheet1040
Cell Formulas
RangeFormula
G3:G10G3=IFERROR(LOOKUP(2,1/((D3>={20,25,30})*(F3>={0.9,0.95,1})),{3,2,1}),4)
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,971
Members
449,059
Latest member
oculus

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