J
Jan I
I need to look up the *Amount* based on two criteria (Provider and Date). Is
there a built-in way to do that in Excel?
Jan
there a built-in way to do that in Excel?
Jan

T. Valko said:Well, you haven't answered my questions so I guess I have to coax the
information out of you !
............A..........B............C
1......Client.....Date.....Amount
2.........A.......1/1/08........10
3.........B.......2/1/08........15
4.........A.......5/3/08........17
5.........C.......1/1/08........12
If I want to find the amount for Client A for date 5/3/08:
=SUMPRODUCT(--(A2:A5="A"),--(B2:B5=DATE(2008,5,3)),C2:C5)
The result is: 17
It's better to use cells to hold the criteria:
E2 = A
F2 = 5/3/08
=SUMPRODUCT(--(A2:A5=E2),--(B2:B5=F2),C2:C5)
Tell me that the clients are listed in the range A2:A5, the dates are in
the range B2:B5 and the amount to be returned is in the range C2:C5.
That's the kind of information I need to be able to help you!
T. Valko said:Ok, we're making progress.
Based on the sample data you posted what result do you expect?
T. Valko said:Yeah
If I were a dentist I'd probably be out on the golf course right now!
Dave Peterson said:So you'd be filling holes in either case????
Jan :) said:Yes, they did, thank you. But......you didn't ask if they did, you just
asked what I expected.
Thanks, Biff.
Jan![]()