Hi,
I want to use sumif in the following way :
SUMIF(purchases!O18:purchases!O500,"=b21",purchases!
Q18:purchases!Q500)
and not :
SUMIF(purchases!O18:purchases!O500,"=01960",purchases!
Q18:purchases!Q500)
in otherwords I want to use the value of the cell b21 to
look up and not the typed in value ( 01960 ) can this be
done ?
thanks
steve
Andy Wiggins - 30 Apr 2005 10:12 GMT
SUMIF(purchases!O18:purchases!O500,"="&B21,purchases!Q18:purchases!Q500)

Signature
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
> Hi,
>
[quoted text clipped - 15 lines]
>
> steve
steve alcock - 30 Apr 2005 11:48 GMT
Hi Andy,
many thanks it works a treat
regards
steve
>-----Original Message-----
>SUMIF(purchases!O18:purchases!O500,"="&B21,purchases!Q18:purchases!Q500)
[quoted text clipped - 20 lines]
>
>.
Alan - 30 Apr 2005 22:48 GMT
Why not
=SUMIF(purchases!O18:purchases!O500,B21,purchases!Q18:purchases!Q500)
?
Regareds
> Hi Andy,
>
[quoted text clipped - 31 lines]
>>
>>.
Dave Peterson - 30 Apr 2005 23:37 GMT
As a pedagogical exercise???
The OP could see how to change the formula to look for greater than (or any
other comparison operator).
Just my guess.
> Why not
> =SUMIF(purchases!O18:purchases!O500,B21,purchases!Q18:purchases!Q500)
[quoted text clipped - 43 lines]
> >>
> >>.

Signature
Dave Peterson