how can I fix a #value! error?

R

reloanpro

I get a #VALUE! with the following formula:

"=IF(INDIRECT("'xyz'!j3")=3,O13*I6,1),IF(INDIRECT("'xyz'!j3")=8,O14*I6,1),..."

The logic seems to work, as values are correct when I evaluate the
calculation steps.

Any help is appeciated.
 
D

Dave Peterson

if xyz!j3=3
then 013*i6
else 1

But then you have another completely separate If statement there.

Did you want
=IF(INDIRECT("'xyz'!j3")=3,O13*I6,1) + IF(INDIRECT("'xyz'!j3")=8,O14*I6,1)
 
D

Dave Peterson

Well, you wouldn't want a plus there. But maybe:

=IF(INDIRECT("'xyz'!j3")=3,O13*I6,IF(INDIRECT("'xyz'!j3")=8,O14*I6,1))
 
R

reloanpro

That's great, Dave. Worked like a charm!

Thanks!

Norberto

Dave Peterson said:
Well, you wouldn't want a plus there. But maybe:

=IF(INDIRECT("'xyz'!j3")=3,O13*I6,IF(INDIRECT("'xyz'!j3")=8,O14*I6,1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top