Variable criteria formula
Hi!
Use 2 cells to hold the criteria:
M1 = LB
N1 = year = 2005
=SUMPRODUCT(--(A1:A15=M1),--(YEAR(C1:C15)=N1),L1:L15)
Biff
"Brent" wrote in message
...
Column 'A' contains 2-digit codes (i.e. LB, BA, BB, etc.).
Column 'C' contains dates (mm/dd/yy format)
Column 'L' contains mileage figures.
Attempting to write a formula that will calculate mileage (Col. L) by a
specific code (Col. A) and a certain date (Col. C).
For example, total mileage for all 2005 dates that have code "LB".
This is probably simpler than I am making it out to be. Any help is
appreciated!
|