Not able to fix Zero-length String in Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2271225%22%20slang%3D%22en-US%22%3ENot%20able%20to%20fix%20Zero-length%20String%20in%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2271225%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI'm%20using%20a%20formula%20that%20is%20trying%20to%20calculate%20the%20total%20number%20of%20items%20(or%20tickets)%20using%20COUNTIFS%20from%20a%20table%20based%20on%203%20different%20criteria.%20However%2C%20the%20criteria%20for%20column%20W%20which%20is%20looking%20for%20the%20cell%20to%20be%20%26lt%3B%26gt%3B%20than%20empty%20is%20causing%20the%20total%20result%20to%20be%20wrong%20simply%20because%20all%20the%20empty%20cells%20from%20column%20W%20have%20a%20zero-length%20string%20in%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20table%20is%20written%20via%20integration%20with%20Jira%20so%20unfortunately%2C%20how%20that's%20Jira%20writes%20the%20values%20-%20the%20cells%20look%20empty%20when%20they%20actually%20have%20an%20empty%20string%2C%20which%20totally%20messes%20up%20with%20my%20formulas.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20to%20address%20the%20issue%20in%20several%20different%20ways%20but%20wasn't%20able%20to.%3C%2FP%3E%3CP%3EPlease%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20a%20sample%20spreadsheet%20with%20the%20data%20and%20formula%20I'm%20using.%3C%2FP%3E%3CP%3EYou'll%20notice%20the%20total%20from%20the%20formula%20is%203%20when%20it%20should%20be%201%20(the%20extra%202%20there%20is%20because%20of%20the%20zero-length%20string%20issue%20I%20wasn't%20able%20to%20fix).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2271225%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2271399%22%20slang%3D%22en-US%22%3ERe%3A%20Not%20able%20to%20fix%20Zero-length%20String%20in%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2271399%22%20slang%3D%22en-US%22%3EAs%20an%20alternative%2C%20perhaps%20try%3A%3CBR%20%2F%3E%3DSUMPRODUCT(--(INDIRECT(%22'JQL%20-%20Sprint%20%22%26amp%3B%20A2%20%26amp%3B%20%22'!B%3AB%22)%3D%22Bug%22)%2C--(INDIRECT(%22'JQL%20-%20Sprint%20%22%26amp%3B%20A2%20%26amp%3B%20%22'!U%3AU%22)%3D%22%22)%2C--(INDIRECT(%22'JQL%20-%20Sprint%20%22%26amp%3B%20A2%20%26amp%3B%20%22'!W%3AW%22)%26lt%3B%26gt%3B%22%22))%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

I'm using a formula that is trying to calculate the total number of items (or tickets) using COUNTIFS from a table based on 3 different criteria. However, the criteria for column W which is looking for the cell to be <> than empty is causing the total result to be wrong simply because all the empty cells from column W have a zero-length string in them.

 

The table is written via integration with Jira so unfortunately, how that's Jira writes the values - the cells look empty when they actually have an empty string, which totally messes up with my formulas.

 

I've tried to address the issue in several different ways but wasn't able to.

Please help!

 

I've attached a sample spreadsheet with the data and formula I'm using.

You'll notice the total from the formula is 3 when it should be 1 (the extra 2 there is because of the zero-length string issue I wasn't able to fix).

 

Thanks!

3 Replies
As an alternative, perhaps try:
=SUMPRODUCT(--(INDIRECT("'JQL - Sprint "& A2 & "'!B:B")="Bug"),--(INDIRECT("'JQL - Sprint "& A2 & "'!U:U")=""),--(INDIRECT("'JQL - Sprint "& A2 & "'!W:W")<>""))

@ragomes1972 

Try ">=A" as criteria.

@ragomes1972 

As variant with third criteria it could be used something like =COUNTIFS(W:W,"=?*") which counts all cells which have at least one character, i.e. not blanks and not empty strings.