|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub test()
Columns("C:C").Replace " ", ""
For i = 2 To Sheets("rawdata").Range("b2000").End(xlUp).Row
If Cells(i, 2).Value = "拆借" And Cells(i, 3).Value = "LOAN" And Cells(i, 25).Value <> "security" Then
Cells(i, 1).Value = "拆出银行同业"
ElseIf Cells(i, 2).Value = "拆借" And Cells(i, 3).Value = "LOAN" And Cells(i, 25).Value = "security" Then
Cells(i, 1).Value = "拆出非银同业"
ElseIf Cells(i, 2).Value = "拆借" And Cells(i, 3).Value = "DEPOSIT" Then
Cells(i, 1).Value = "同业拆入"
ElseIf Cells(i, 2).Value = "存单发行" Then
Cells(i, 1).Value = "发行存单"
ElseIf Cells(i, 2).Value = "存单投资" Then
Cells(i, 1).Value = "投资存单"
ElseIf Cells(i, 2).Value = "存放" And Cells(i, 3).Value = "DEPOSIT" Then
Cells(i, 1).Value = "吸收同存"
ElseIf Cells(i, 2).Value = "回购" And Cells(i, 3).Value = "REV" Then
Cells(i, 1).Value = "债券逆回购"
ElseIf Cells(i, 2).Value = "利率券" Then
Cells(i, 1).Value = "利率债"
ElseIf Cells(i, 2).Value = "非标" Then
Cells(i, 1).Value = "非标投资"
End If
Next
End Sub
|
|