ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   adding numbers in a specific range of values (https://www.excelbanter.com/excel-discussion-misc-queries/123792-adding-numbers-specific-range-values.html)

Tophaw

adding numbers in a specific range of values
 
I have column A listing miles from point to point, column B give the number
of occurences in 60 days. I'm trying to add up the number occurences if the
miles are in between lets say 50 and 150 miles. Can anyone help?

Teethless mama

adding numbers in a specific range of values
 
=SUMPRODUCT(--(A1:A100=50),--(A1:A100<=150),B1:B100)
You can not use whole column A:A or B:B

"Tophaw" wrote:

I have column A listing miles from point to point, column B give the number
of occurences in 60 days. I'm trying to add up the number occurences if the
miles are in between lets say 50 and 150 miles. Can anyone help?


Bob Phillips

adding numbers in a specific range of values
 
=COUNTIF(A:A,"=50")-COUNTIF(A:A,"150")

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Tophaw" wrote in message
...
I have column A listing miles from point to point, column B give the
number
of occurences in 60 days. I'm trying to add up the number occurences if
the
miles are in between lets say 50 and 150 miles. Can anyone help?





All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com