SOLVED
Home

I want "#VALUE!" error to become zero

%3CLINGO-SUB%20id%3D%22lingo-sub-531837%22%20slang%3D%22en-US%22%3EI%20want%20%22%23VALUE!%22%20error%20to%20become%20zero%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-531837%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20formula%20that%20pulls%20stock%20dividends%20for%20a%20remote%20database%20%3A%3C%2FP%3E%3CP%3E%22%3D%20FNBX(B30%2C%20%22dividend_yield%22%20)*%24Q30%22.%3C%2FP%3E%3CP%3EHowever%20when%20there%20are%20no%20dividends%20I%20get%20the%20%23VALUE!%20error.%20How%20can%20I%20make%20this%20turn%20to%20zero%20instead%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-531837%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-531924%22%20slang%3D%22en-US%22%3ERe%3A%20I%20want%20%22%23VALUE!%22%20error%20to%20become%20zero%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-531924%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F235152%22%20target%3D%22_blank%22%3E%40Greg%20Bonaparte%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20IFERROR%20will%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3DIFERROR(FNBX(B30%2C%20%22dividend_yield%22%20)*%24Q30%2C0)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhen%20the%20formula%20FNBX%20gives%20a%20value%2C%20it%20will%20do%20as%20usual.%20However%2C%20when%20it%20returns%20error%2C%200%20(as%20indicated%20after%20comma)%20will%20be%20returned.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Greg Bonaparte
Contributor

I have a formula that pulls stock dividends for a remote database :

"= FNBX(B30, "dividend_yield" )*$Q30".

However when there are no dividends I get the #VALUE! error. How can I make this turn to zero instead?

1 Reply
Solution

@Greg Bonaparte 

The formula IFERROR will help. 

 

=IFERROR(FNBX(B30, "dividend_yield" )*$Q30,0)

 

When the formula FNBX gives a value, it will do as usual. However, when it returns error, 0 (as indicated after comma) will be returned.