Help with formula

M

mIKE

I am trying to select info from another sheet depending
what number i add in a column, see formula
=IF(A1=3,A19)+IF(A1=4,A20) have more to addd but want to
get it working first, it works fine with numbers but if i
add text it goes to an error #VALUE, any ideas anyomne or
can you think of a different way of doing it

Mike
 
J

J.E. McGimpsey

If your pattern continues, you might try something like:

=SUM(OFFSET(A19,,,A1-2,1))

or, setting bounds:

=IF(AND(A1>0, A1<20), OFFSET(A19,,,A1-2,1)),"Not Valid")


This won't error if A19:An has text since SUM ignores text.
 

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