Actually we need to Update values based on two parameters
Example
If year is 2023 and month is 1 for NK01
Then it should return the cell value as C4
Have tried Vlookup but the challange there is we cannot provide both year and month parameters together.So if we add just month and we want to fetch the cell for 2023 suppose then it provides 3 different cell values because there are three different year in the file
Your suggestions are appreciated:)
Have attached sheet for reference Test (1).xlsx (8.3 KB)
Perform look up on the year first…say 2023…from which take the first cell itself say A4
Now perform the look up on the second column as there are 12 months restrict the look up to 12 cells like B4:B16
Now you would have the corresponding cell that is under required year and requried month
Basically to variablize youc an use like…
We already knw which column year and months are
So year always we will get from column A
so we can use "B" + Cellvalue.Replace("A","") + ":B" + (Cint(Cellvalue.Replace("A",""))+12).ToString This will restrict the search in only 12 cells from the first identified year cell