Sumif similar to Countif??
Hello. I'm looking for a variation of the formula Countif tht will operate in a similar fashion to the Sumif.
In column A I have various categories. In column B I have either blank cells or numbers. I need to scan column A to indentify a category (Apple for example), and then COUNT the non-blank cells for Apple in column B. Any ideas? Thanks so much! |
Sumif similar to Countif??
Hello again,
Set up an equation for each column that returns True or False for each cell. Convert the Boolean to a number using two minus signs (True to -1, then -1 to 1) Multiply the two columns together using Sumproduct... =SUMPRODUCT(--(A4:A22="Apple"),--(LEN(B4:B22)0)) -- Jim Cone Portland, Oregon USA . http://www.mediafire.com/PrimitiveSoftware . (Data Options add-in: Color, Delete or Insert specific rows/dates/random data) "Steve" wrote in message news:11421607.960.1331740136160.JavaMail.geo-discussion-forums@vbut24... Hello. I'm looking for a variation of the formula Countif tht will operate in a similar fashion to the Sumif. In column A I have various categories. In column B I have either blank cells or numbers. I need to scan column A to indentify a category (Apple for example), and then COUNT the non-blank cells for Apple in column B. Any ideas? Thanks so much! |
Sumif similar to Countif??
On Wed, 14 Mar 2012 08:48:56 -0700 (PDT), Steve wrote:
Hello. I'm looking for a variation of the formula Countif tht will operate in a similar fashion to the Sumif. In column A I have various categories. In column B I have either blank cells or numbers. I need to scan column A to indentify a category (Apple for example), and then COUNT the non-blank cells for Apple in column B. Any ideas? Thanks so much! If you have Excel 2007 or later, you can use COUNTIFS: =COUNTIFS(A:A,"apple",B:B,"<"&"") If you have an earlier version of Excel, use: =SUMPRODUCT((A1:A1000="apple")*(B1:B1000<"")) |
Sumif similar to Countif??
On Wednesday, March 14, 2012 9:48:56 AM UTC-6, Steve wrote:
Hello. I'm looking for a variation of the formula Countif tht will operate in a similar fashion to the Sumif. In column A I have various categories. In column B I have either blank cells or numbers. I need to scan column A to indentify a category (Apple for example), and then COUNT the non-blank cells for Apple in column B. Any ideas? Thanks so much! Thanks guys!! |
All times are GMT +1. The time now is 08:49 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com