![]() |
counting with multiple conditions
The below formula is working in macro.
myvar= "=countif(a1:a100,10)" but i need to count the cells containing values between less than 10 and greater than five? How to change the above formula to incorporate this? |
counting with multiple conditions
The below formula is working in macro.
myvar= "=countif(a1:a100,10)" but i need to count the cells containing values between less than 10 and greater than five? How to change the above formula to incorporate this? How about this... myvar= "=countif(a1:a100,""<10"")-countif(a1:a100,""<=5"")" Note that this excludes 5 and 10 from the range. If you want to include them, add an equal sign to the '<10' and remove the equal sign from the '<=5'. Rick |
All times are GMT +1. The time now is 07:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com