VBA additional conditions to

I need additional conditions added to the code below.
I can upload a sample if it would help, but my formulas and all is working now, I just need additional choices.
For instance,

With range("U2")
If O2="GR" AND C2 = {9,17,25,92,96,92}
Then .Formula ="= this formula"
If O2="GR" AND C2 = {51,54}
Then Formula="=this formula"
ELSE
the formula we have below.

For each column, U, V, W, X.
Hope that's clear??  So grateful for any help!!


Sub RATING()
Application.ScreenUpdating = False
Sheets("Reduced_Data").Activate
'Net Rates 1 OLD DIM - Reduced_Data

With range("U2")
.Formula = "=IF(AND(ROUNDUP(S2,0)>150,OR(O2=""GRHW"",O2=""PRPHW"")),(VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_1""),C2,TRUE)/150)*ROUNDUP(S2,0),IF(ROUNDUP(S2,0)>150,VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_1""),C2,TRUE)*ROUNDUP(S2,0),VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_1""),C2,TRUE)))"
.AutoFill Destination:=range(.Offset(0, -1), .Offset(0, -1).End(xlDown)).Offset(0, 1)
End With

'Net Rates 2 OLD DIM- Reduced_Data

With range("V2")
.Formula = "=IF(AND(ROUNDUP(S2,0)>150,OR(O2=""GRHW"",O2=""PRPHW"")),(VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_2""),$C2,TRUE)/150)*ROUNDUP(S2,0),IF(ROUNDUP(S2,0)>150,VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_2""),$C2,TRUE)*ROUNDUP(S2,0),VLOOKUP(ROUNDUP(S2,0),INDIRECT(O2&""_2""),$C2,TRUE)))"
.AutoFill Destination:=range(.Offset(0, -1), .Offset(0, -1).End(xlDown)).Offset(0, 1)
End With

'Net Rates 1 NEW DIM- Reduced_Data

With range("W2")
.Formula = "=IF(AND(ROUNDUP(T2,0)>150,OR(P2=""GRHW"",P2=""PRPHW"")),(VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_1""),$C2,TRUE)/150)*ROUNDUP(T2,0),IF(ROUNDUP(T2,0)>150,VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_1""),$C2,TRUE)*ROUNDUP(T2,0),VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_1""),$C2,TRUE)))"
.AutoFill Destination:=range(.Offset(0, -1), .Offset(0, -1).End(xlDown)).Offset(0, 1)
End With

'Net Rates 2 NEW DIM- Reduced_Data


With range("X2")
.Formula = "=IF(AND(ROUNDUP(T2,0)>150,OR(P2=""GRHW"",P2=""PRPHW"")),(VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_2""),$C2,TRUE)/150)*ROUNDUP(T2,0),IF(ROUNDUP(T2,0)>150,VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_2""),$C2,TRUE)*ROUNDUP(T2,0),VLOOKUP(ROUNDUP(T2,0),INDIRECT(P2&""_2""),$C2,TRUE)))"
.AutoFill Destination:=range(.Offset(0, -1), .Offset(0, -1).End(xlDown)).Offset(0, 1)
End With

    Cells.Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False

Application.ScreenUpdating = True
End Sub

Open in new window

Euro5Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
Copy and modify for the other columns.
If .Range("O2") = "GR" Then
    Select Case Range("C2")
        Case "9", "17", "25", "92", "96", "92" ' You have 92 twice
            .Formula = "=this formula"
        Case "51", "54"
            .Formula = "=this formula"
    End Select
End If

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Euro5Author Commented:
Would it be like..?

Sub RATING()
Application.ScreenUpdating = False
Sheets("Reduced_Data").Activate
'Net Rates 1 OLD DIM - Reduced_Data

With range("V2")
If .Range("O2") = "GR" Then
    Select Case Range("C2")
        Case "9", "17", "25", "92", "96"
            .Formula = "=this formula"
        Case "51", "54"
            .Formula = "=this formula"
    End Select
Else .Formula = "=current formula"
End If
Martin LissOlder than dirtCommented:
Probably no, but state the requirements so I can understand what you need.
Euro5Author Commented:
I got it! Sorry for the confusion. Just took some playing with on my part.
Martin LissOlder than dirtCommented:
No problem. I'm glad you were able to work it out.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.