ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count G4:G51 for critera only if D4:D51 contains text data (https://www.excelbanter.com/excel-worksheet-functions/55274-count-g4-g51-critera-only-if-d4-d51-contains-text-data.html)

sir Lancelot

count G4:G51 for critera only if D4:D51 contains text data
 
How can I make this work? I want the answer to be a number.

Column D contains individual names
Column G contains certain criteria.
I can count the criteria in column G with countif, but I only want it to
total if column D contains text data. For an example,
If d17 has no data, do not count what is in G17.

IDEAS???

Peo Sjoblom

count G4:G51 for critera only if D4:D51 contains text data
 
See answer to your previous post, it is always better to wait a little while
to check answers to your post

--
Regards,

Peo Sjoblom

(No private emails please)


"sir Lancelot" wrote in message
...
How can I make this work? I want the answer to be a number.

Column D contains individual names
Column G contains certain criteria.
I can count the criteria in column G with countif, but I only want it to
total if column D contains text data. For an example,
If d17 has no data, do not count what is in G17.

IDEAS???



Bob Phillips

count G4:G51 for critera only if D4:D51 contains text data
 
=SUMPRODUCT(--(NOT(ISNUMBER(D1:D100))),--(D1:D100<""),--(G1:G100="criteria"
))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sir Lancelot" wrote in message
...
How can I make this work? I want the answer to be a number.

Column D contains individual names
Column G contains certain criteria.
I can count the criteria in column G with countif, but I only want it to
total if column D contains text data. For an example,
If d17 has no data, do not count what is in G17.

IDEAS???





All times are GMT +1. The time now is 04:27 PM.

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