ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   need help using count if (https://www.excelbanter.com/excel-worksheet-functions/6494-need-help-using-count-if.html)

Lionheartilly

need help using count if
 

hi all,

thanks for taking the time to look!

I have a column with # ranging from 0-9999.
Now, I want to filter in to only obtain the # of rows that contain
0-30, 30-60, 60-90 that represents the different months.

I was able to get the first 30 using countif(F22:F3999, "<=30"), but
then I don't know how to get the counts from 30-60.
Can anyone help me with this using a single formula?

Thanks

Lion


--
Lionheartilly
------------------------------------------------------------------------
Lionheartilly's Profile: http://www.excelforum.com/member.php...o&userid=16537
View this thread: http://www.excelforum.com/showthread...hreadid=313865


Don Guillett

try
=sumproduct((f22:f3999=30)*(f22:f3999<60))

--
Don Guillett
SalesAid Software

"Lionheartilly" wrote in
message ...

hi all,

thanks for taking the time to look!

I have a column with # ranging from 0-9999.
Now, I want to filter in to only obtain the # of rows that contain
0-30, 30-60, 60-90 that represents the different months.

I was able to get the first 30 using countif(F22:F3999, "<=30"), but
then I don't know how to get the counts from 30-60.
Can anyone help me with this using a single formula?

Thanks

Lion


--
Lionheartilly
------------------------------------------------------------------------
Lionheartilly's Profile:

http://www.excelforum.com/member.php...o&userid=16537
View this thread: http://www.excelforum.com/showthread...hreadid=313865




Frank Kabel

Hi
as alternative:
=COUNTIF(F22:F3999,"30")-COUNTIF(F22:F3999,"60")

--
Regards
Frank Kabel
Frankfurt, Germany

"Lionheartilly" schrieb im
Newsbeitrag ...

hi all,

thanks for taking the time to look!

I have a column with # ranging from 0-9999.
Now, I want to filter in to only obtain the # of rows that contain
0-30, 30-60, 60-90 that represents the different months.

I was able to get the first 30 using countif(F22:F3999, "<=30"), but
then I don't know how to get the counts from 30-60.
Can anyone help me with this using a single formula?

Thanks

Lion


--
Lionheartilly
---------------------------------------------------------------------

---
Lionheartilly's Profile:

http://www.excelforum.com/member.php...o&userid=16537
View this thread:

http://www.excelforum.com/showthread...hreadid=313865




All times are GMT +1. The time now is 10:24 PM.

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