Ok, so here are the steps that I would like to create a formula for:
- Check whether the value in a specific cell appears in a column on another sheet eg: MATCH(A3,'Sheet1'!$A:$A)
- If yes, then check the value in Sheet1 column I on the same row as that value was found
- If the value in column I matches 'specified value' then return the value B3 from Sheet1
- If the value in column I doesn't match then leave cell blank
The bit I'm struggling with is that I need to only return data from rows with the matching value in column A AND the specified value in column I, but there are multiple occurrences of both values in both columns (but hopefully only one occurrence of both values in a single row).
These are the closest 2 formulas I have figured out so far (currently returning no instead of blank if false for testing): =IF(AND('Sheet1'!$A:$A=A2,'Sheet1'!$I[]="WEEK 1"),'Sheet1'!$B[],"NO")
=IF(AND(MATCH(A5,'Sheet1'!$A:$A),'Sheet1'!$I[]="WEEK 1"),'Sheet1'!$B[],"NO")
But the 'I' can't be a fixed value because I don't know what row I am looking at until I have matched the A value.
To put it another way: I need to find out if there is a row in the data tracking sheet where the value in column A = X AND the value in column I = Y, and then return the value in column B.
Hopefully that makes sense. Any help would be very much appreciated.
INDEX