karabiner8
Board Regular
- Joined
- Jan 11, 2005
- Messages
- 50
A B C
1 Date Date Answer
2 >=1/2/11 <=28/2/11 No
3 >=1/2/11 <=28/2/11 Yes
4
5
6
7 Date Answer
8 Jan 14, 2011 Yes
9 Jan 14, 2011 No
10 Feb 2, 2011 No
11 Feb 17, 2011 Yes
12 Feb 18, 2011 (Empty)<BLANK>
Hi all. I'd like to get the value in the Answer column of my database based on three criteria. The date must be in February, it must be the most recent date and the Answer column cannot be blank (must be either "Yes" or "No").
With my data laid out as above (simplified) with criteria in A1:C3 and database in A7:B12 I can use DMAX(A7:B12,"Date",A1:C3) to correctly return Feb 17, 2011 (because Feb 18, 2011 has a blank in the Answer column).
My question is how do I get the value in the Answer column ("Yes", in this case)? I figure there must be a way to use DGET but I cannot figure out how to set the criteria.
BTW, I know how to do this with SUMPRODUCT but I'm trying to stick to the database functions for this particular spreadsheet.
Any help would be most appreciated as none of my searching has turned up anything.
1 Date Date Answer
2 >=1/2/11 <=28/2/11 No
3 >=1/2/11 <=28/2/11 Yes
4
5
6
7 Date Answer
8 Jan 14, 2011 Yes
9 Jan 14, 2011 No
10 Feb 2, 2011 No
11 Feb 17, 2011 Yes
12 Feb 18, 2011 (Empty)<BLANK>
Hi all. I'd like to get the value in the Answer column of my database based on three criteria. The date must be in February, it must be the most recent date and the Answer column cannot be blank (must be either "Yes" or "No").
With my data laid out as above (simplified) with criteria in A1:C3 and database in A7:B12 I can use DMAX(A7:B12,"Date",A1:C3) to correctly return Feb 17, 2011 (because Feb 18, 2011 has a blank in the Answer column).
My question is how do I get the value in the Answer column ("Yes", in this case)? I figure there must be a way to use DGET but I cannot figure out how to set the criteria.
BTW, I know how to do this with SUMPRODUCT but I'm trying to stick to the database functions for this particular spreadsheet.
Any help would be most appreciated as none of my searching has turned up anything.