A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To achieve your goal of matching data from two sheets based on two criteria (columns A and I) and bringing forward the premium from the '2026' sheet to the '2025' sheet, you can use a combination of the INDEX and MATCH functions instead of VLOOKUP. This approach allows you to specify multiple criteria for your lookup.
Here’s how you can set it up:
- In the '2025' sheet, where you want to retrieve the premium, enter the following formula in column U (assuming your data starts from row 2):
=INDEX('2026'!S:S, MATCH(1, ('2026'!A:A=A2) * ('2026'!I:I=I2), 0))- This formula uses
INDEXto return the value from column S of the '2026' sheet. - The
MATCHfunction looks for a row where both conditions are met: the value in column A of '2026' matches the value in column A of '2025', and the value in column I of '2026' matches the value in column I of '2025'. - The
1in theMATCHfunction indicates that we are looking for a match of both conditions (which are multiplied together).
- This formula uses
- Array Formula: Since you are using an array operation, you need to enter this formula as an array formula. To do this, after typing the formula, press
Ctrl + Shift + Enterinstead of justEnter. Excel will add curly braces{}around the formula to indicate that it is an array formula.
This method should help you avoid duplicates and correctly match the premiums based on both criteria.
References: