kickingk100
New Member
- Joined
- Jul 14, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Hi,
I have two sheets of data - the first (sheet1) is a list of activities done by schools (many with multiple entries per school), and in this sheet I've included two columns for two specific activity types that I've put a Y in if the activity corresponds with this type. The second sheet is a smaller list of school addresses with postcodes that I want to get data on (sheet2).
In the second sheet I have successfully done an X lookup to identify the schools that are in the master sheet that I want to get data on. I would then like to write a statement that says "if the postcode in column L in sheet2 is a match to the postcode in column F in sheet 1, then I would like to count each row in sheet1 where this postcode appears and there is a "Y" in column I.
I've tried nesting a vlookup in a countif statement to do this but I'm a complete novice in excel formula and I can't get it to work (I tried =countif(=VLOOKUP(L12,Sheet1!F),('Sheet1'!I:I, "Y"). Just wondered if anyone could help me?
Thanks
I have two sheets of data - the first (sheet1) is a list of activities done by schools (many with multiple entries per school), and in this sheet I've included two columns for two specific activity types that I've put a Y in if the activity corresponds with this type. The second sheet is a smaller list of school addresses with postcodes that I want to get data on (sheet2).
In the second sheet I have successfully done an X lookup to identify the schools that are in the master sheet that I want to get data on. I would then like to write a statement that says "if the postcode in column L in sheet2 is a match to the postcode in column F in sheet 1, then I would like to count each row in sheet1 where this postcode appears and there is a "Y" in column I.
I've tried nesting a vlookup in a countif statement to do this but I'm a complete novice in excel formula and I can't get it to work (I tried =countif(=VLOOKUP(L12,Sheet1!F),('Sheet1'!I:I, "Y"). Just wondered if anyone could help me?
Thanks