jarvisaurus
Board Regular
- Joined
- Nov 26, 2010
- Messages
- 52
I have a spreadsheet (excel 2003) that requires a formula for a tier fee schedule(e.g., first occurence 100%, second 50% and third 25%). The spreadsheet is setup as follows:
Column A - Name
Column B - Code
so you'll have blocks of data:
MVP 300
MVP 300
MVP 300
VPM 300
VPM 300
VPM 300
Here's what I have so far:
How do I get it so after the first 300 it's 50% for the second 300, 25% for the third 300, and 25% anything there after.
Column A - Name
Column B - Code
so you'll have blocks of data:
MVP 300
MVP 300
MVP 300
VPM 300
VPM 300
VPM 300
Here's what I have so far:
Code:
Dim i As Integer
Dim LR As Long
Application.ScreenUpdating = False
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To LR Step 1
Select Case cells(i, "B").Value
Case 300
cells(i, "AD").Value = 500*100%
End Select
Next i
Application.ScreenUpdating = True
End Sub