IF-then formula doesn't work

  • Thread starter Thread starter pegman
  • Start date Start date
P

pegman

I can't figure this one out...

=IF(M16>0,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that value
to show so I added the IF aspect... I keep getting errors in the value
 
You put a bracket in wrong place
here is the correction:

=IF(M16>0,INDIRECT("V"&SUM(O2+1)),0)
 
=IF(M16>0,INDIRECT("V"&SUM(O2+1)),0)


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Thanks guys, everything works beuatiful now...

I need to figure how to protect these worksheets NOW...!!!!
 
And you don't need the SUM as well as the + sign.
=IF(M16>0,INDIRECT("V"&(O2+1)),0)
 
Tools>Protection>Protect Worksheet is the norm.


Gord Dibben MS Excel MVP
 
The reason you got an error is because as written:

=IF(M16>0,INDIRECT("V"&SUM(O2+1),0))

Your formula is using the 0 in INDIRECT to denote that you're using R1C1
reference style.

So, Vn is not a legitimate R1C1 reference so you get the error.
 

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

Back
Top