Hi I need help to look up data in another tab based on multiple criteria.
As an example, lets say in Sheet 1, I have the following data:
A1 = month (eg 5 for May)
A2 = Code Number 1
A3 = Code Number 2
In Sheet 2, I have the data:
A2 = Code Number 1
A3 = Code Number 2
In Sheet 2, from B1 to B13 is the months of the year (1-12)
And also B2 to B13 are the values for Code Number 1 for each of these months (and C2 to C13 are values for Code Number 2 etc).
So back in Sheet 1, I want to have a formula that returns in Cell B2 the value for the Code Number 1 that is in the relevant month in sheet 2. In Sheet 1, I need to reference the Code Number and current month, and then based on these 2 criteria, search for the correct value in Sheet 2 that has the same month and Code Number.
So if I input "4" in Cell A1 in Sheet 1, this would mean it is April. The formula in Sheet 1, Cell B2 would then look in Sheet 2 and return the value for that Code Number for April.
Hope this makes sense. It is doing my head in! ANy help much appreciated
As an example, lets say in Sheet 1, I have the following data:
A1 = month (eg 5 for May)
A2 = Code Number 1
A3 = Code Number 2
In Sheet 2, I have the data:
A2 = Code Number 1
A3 = Code Number 2
In Sheet 2, from B1 to B13 is the months of the year (1-12)
And also B2 to B13 are the values for Code Number 1 for each of these months (and C2 to C13 are values for Code Number 2 etc).
So back in Sheet 1, I want to have a formula that returns in Cell B2 the value for the Code Number 1 that is in the relevant month in sheet 2. In Sheet 1, I need to reference the Code Number and current month, and then based on these 2 criteria, search for the correct value in Sheet 2 that has the same month and Code Number.
So if I input "4" in Cell A1 in Sheet 1, this would mean it is April. The formula in Sheet 1, Cell B2 would then look in Sheet 2 and return the value for that Code Number for April.
Hope this makes sense. It is doing my head in! ANy help much appreciated