SOLVED

ODD, EVEN OR BLANK

%3CLINGO-SUB%20id%3D%22lingo-sub-2878703%22%20slang%3D%22en-US%22%3EODD%2C%20EVEN%20OR%20BLANK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2878703%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20formula%20that%20is%20working%20great%2C%20but%20I%20want%20to%20add%20to%20the%20formula%20that%20if%20the%20cell%20its%20referencing%20is%20blank%20then%20it%20shows%20blank.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20current%20formula.%3C%2FP%3E%3CP%3E%3DIF(ISEVEN(%24A6)%2C%22%22%2C%22N%2FA%22)%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20the%20cell%20is%20even%20it%20will%20display%20N%2FA%2C%20if%20the%20cell%20is%20ODD%20it%20will%20display%20blank%2C%20and%20I%20want%20to%20add%20that%20if%20the%20cell%20is%20blank%20it%20stays%20blank.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2878703%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-2878805%22%20slang%3D%22en-US%22%3ERe%3A%20ODD%2C%20EVEN%20OR%20BLANK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2878805%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1029111%22%20target%3D%22_blank%22%3E%40NConde%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYour%20current%20formula%20will%20return%20N%2FA%20if%20the%20cell's%20value%20is%20%3CSTRONG%3Eodd%3C%2FSTRONG%3E%2C%20and%20a%20blank%20is%20the%20cell%20is%20empty%20or%20its%20value%20is%20%3CSTRONG%3Eeven%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20it%20to%20return%20N%2FA%20if%20the%20cell's%20value%20is%20%3CSTRONG%3Eeven%3C%2FSTRONG%3E%2C%20use%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIF(AND(%24A6%26lt%3B%26gt%3B%22%22%2CISEVEN(%24A6))%2C%22N%2FA%22%2C%22%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eor%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIF(OR(%24A6%3D%22%22%2CISODD(%24A6))%2C%22%22%2C%22N%2FA%22)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2878828%22%20slang%3D%22en-US%22%3ERe%3A%20ODD%2C%20EVEN%20OR%20BLANK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2878828%22%20slang%3D%22en-US%22%3E%3DIF(OR(%24A6%3D%22%22%2CISODD(%24A6))%2C%22%22%2C%22N%2FA%22)%3CBR%20%2F%3E%3CBR%20%2F%3Ethis%20one%20was%20perfect!%20Thank%20you!%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a formula that is working great, but I want to add to the formula that if the cell its referencing is blank then it shows blank.

 

Here is the current formula.

=IF(ISEVEN($A6),"","N/A")

If the cell is even it will display N/A, if the cell is ODD it will display blank, and I want to add that if the cell is blank it stays blank.

 

2 Replies
best response confirmed by NConde (Occasional Contributor)
Solution

@NConde

Your current formula will return N/A if the cell's value is odd, and a blank is the cell is empty or its value is even.

If you want it to return N/A if the cell's value is even, use

 

=IF(AND($A6<>"",ISEVEN($A6)),"N/A","")

 

or

 

=IF(OR($A6="",ISODD($A6)),"","N/A")

=IF(OR($A6="",ISODD($A6)),"","N/A")

this one was perfect! Thank you!