No particular problem whis your first formula
=LOOKUP(A1, Client)
which will return a client's number or nothing
The second formula is wrong.
The LOOKUP() function is described this way:
The LOOKUP function finds a match to your search value in one range, then retrieves the value in the cell with the same relative position in a second range.
LOOKUP(search-value, search-range, [result-range])
search-value: The text or numeric expression you want to search for in the search range.
search-range: The range of cells that you want to search for the search value.
result-range: Optional; If omitted, the result is returned from the last row or column of search-range, whichever is the longer dimension.
It's clear that what is searched is the cells whose contents matches a value not those whose contents matches a conition.
To do what you ask for, you must use an auxiliary column.
assuming that your dates are in column B
the formula
=AND(B>=DATE(2008,1,1),B<=DATE(2008,1,31))
will do the trick which would give you the ability to identify the range fitting your needs.
<img src="http://homepage.mac.com/koenigyvan/.Pictures/forum/2008
07/2008_0702b.jpg">
The formula in the cell D of the footer is :
=SUMIF(C,TRUE,D)
Yvan KOENIG (from FRANCE mercredi 2 juillet 2008 13:50:12)
I don't know why the screenshot is not displayed.