JoshLyman
New Member
- Joined
- Jan 11, 2023
- Messages
- 35
- Office Version
- 365
- 2010
- Platform
- Windows
I'm trying to write a formula which will tell me if the selection in cell B2 appears in the "Cohort Ref" column on Sheet1, and if so, whether the value in the 'Actual Recruitment' column on Sheet1 is greater than 0. If it is, I need it to return Y, but if it isn't I need it to return N:
Initially I tried =IF(AND(B2=Table2[Cohort Ref.],Table2[Actual Recruitment]>0),"Y","N") but this only works if there's 1 line in the table on Sheet1. If there are multiple, it always returns N. I suspect I need to probably use MATCH and/or INDEX, but my experience with those is very limited!
Thanks in advance
Initially I tried =IF(AND(B2=Table2[Cohort Ref.],Table2[Actual Recruitment]>0),"Y","N") but this only works if there's 1 line in the table on Sheet1. If there are multiple, it always returns N. I suspect I need to probably use MATCH and/or INDEX, but my experience with those is very limited!
Thanks in advance