I have three columns A B and C. In some cases only B has a value. In the example below only the rows 2 and 4 should be considered, and then depending on their value their corresponding cell in the D column is given a certain value (corresponding to the two arrays below).
A B C D
1 x y z
2 b 2
3 t v
4 e 5
5 g h i
I'm not certain what's the best approach for this. I declared the necessary arrays, but I don't know how to meet the "if cell in A and cell in C is empty..." condition.
Dim Kol() As Variant: Kol = VBA.Array(1,2,3) ' I don't know if it makes sense to include columns A and C here
Dim Faelle() As Variant: Faelle = VBA.Array( _
"a", "b", "c", "d", "e")
Dim Werte() As Variant: Werte = VBA.Array( _
"1", "2", "3", "4", "5")