I need an experts advise please. I have a formula that needs to be populated on multiple cells of column G, can someone assist me on how to create a macro to accomplish this? below is the macro for your reference.
{=INDEX($O$2:$O$5000,MATCH(1,($A$2:$A$5000=A32)*($E$2:$E$5000=C32)*($C$2:$C$5000=J32),0))}
Those in red should change depending on the row number where the formula is placed, so if the formula is placed in G32 then those in red should be 32, if G50 then it should be 50 and so on and so forth.
I tried running using looping, I was able to populate the formula to the desired cells but those in red are fixed I cant make it change based on the row numbers.
{=INDEX($O$2:$O$5000,MATCH(1,($A$2:$A$5000=A32)*($E$2:$E$5000=C32)*($C$2:$C$5000=J32),0))}
Those in red should change depending on the row number where the formula is placed, so if the formula is placed in G32 then those in red should be 32, if G50 then it should be 50 and so on and so forth.
I tried running using looping, I was able to populate the formula to the desired cells but those in red are fixed I cant make it change based on the row numbers.