I am getting stuck converting a formula to use in a macro and finishing off the macro
=CONCAT(TEXT(VLOOKUP(B25,'Sheet2'!A2:C33,3,FALSE),"0000")&VLOOKUP(B25,'Sheet2'!A2:C33,2,0))"
Above is the formula I have got working so the cell B25 is populated with a 4 digit code (0 leaders) followed by letters
I cannot get this to work in a macro.
After that I am trying to get the same macro to add 1 to the value of the correct row of Sheet 2 C column for which the value of B25 matches.
e.g
B25 = gold
On Sheet 2 C1 = Gold and C3 = 0004 I would like C3 to equal 0005 after I run the macro.
=CONCAT(TEXT(VLOOKUP(B25,'Sheet2'!A2:C33,3,FALSE),"0000")&VLOOKUP(B25,'Sheet2'!A2:C33,2,0))"
Above is the formula I have got working so the cell B25 is populated with a 4 digit code (0 leaders) followed by letters
I cannot get this to work in a macro.
After that I am trying to get the same macro to add 1 to the value of the correct row of Sheet 2 C column for which the value of B25 matches.
e.g
B25 = gold
On Sheet 2 C1 = Gold and C3 = 0004 I would like C3 to equal 0005 after I run the macro.