View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Combining sumIF statements with other functions?

greater than 10000 and less than 19999

Taking that literally...

Use cells to hold your boundaries:

D1 = 10000
E1 = 19999

=SUMIF(A1:A10,""&D1,B1:B10)-SUMIF(A1:A10,"="&E1,B1:B10)

Another way...

=SUMPRODUCT(--(A1:A10D1),--(A1:A10<E1),B1:B10)

If you're using Excel 2007:

=SUMIFS(B1:B10,A1:A10,""&D1,A1:A10,"<"&E1)

--
Biff
Microsoft Excel MVP


"Hopeless in Cincy" <Hopeless in wrote in
message ...
I am wondering can a 'sumif statement and vlookup formula' be combined to
provide a total of a range of numbers or maybe even combined with using
'greater than a number but less than another number' functions. For
example,
I have a range of 5 digit numbers in column 'A', and have dollar amounts
that
correspond to those 5 digit numbers in column 'B', in a seperate tab I
need a
formula that would look in coulmn 'A' for a range of numbers (for ex..
greater than 10000 and less than 19999) then give me the total of the
corresponding dollar amounts in column 'B'. Is this possible or am I
SOL????