I'm trying to use the =AND function as a case selection argument within the range selected as the criteria for a database function.
So in simpler cases I am used to putting say <26 in the age column if I want the DCOUNT function to count all the cases of those under 26.
But suppose I wanted to get it to count those under 26 and those over 66.
I tried putting in: =AND(<26,>66) and I get a rejection for an incomplete formula.
I also tried entering the address for the first data filled cell of that field (e.g. =AND(K2<26,K2>66) in the database and got an answer for that single cell but not a apparent sorting function to apply that case selection across the entire database field.
Obviously I could interrogate with two DCOUNT functions and then add the results together, but I'm assuming this can be done in one step.Can anyone get me going in the right direction.
(Currently using Excel 2004 I think on a Mac)
thanks,
brian
Bookmarks