JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 785
- Office Version
- 365
- Platform
- Windows
Hi,
Best to describe what im trying to figure out is (vlookup from 1 array to another)
Screenshot of Worksheet - The yellow is what im trying to populate within array
Here is my code to build the 2 arrays, and the total is working
appreciate any help
Best to describe what im trying to figure out is (vlookup from 1 array to another)
Screenshot of Worksheet - The yellow is what im trying to populate within array
Here is my code to build the 2 arrays, and the total is working
VBA Code:
Sub ArrayTest()
Dim DataArray As Variant
Dim NewArray As Variant
DataArray = Range("K2:P228")
LR = Sheet6.Range("A10000").End(xlUp).Row
NewArray = Range("A2:G" & LR)
For i = 1 To UBound(NewArray, 1)
'How to get B,C,D,E,F values from DataArray ?
'Get Totals
NewArray(i, 7) = NewArray(i, 2) + NewArray(i, 3) + NewArray(i, 4) + NewArray(i, 5) + NewArray(i, 6)
Next i
End Sub
appreciate any help