IF statement

  • Thread starter Thread starter Brian Thompmson
  • Start date Start date
B

Brian Thompmson

I am trying to do an IF statement that works something
like:

if A2=1 then sum Sheet1 B5, if A2=2 then sum Sheet2 G5,
if A2=3 then sum Sheet3 G5

Any suggestions?
 
Brian
=IF(A2=1,Sheet1!B5,IF(A2=2,Sheet2!G5,IF(A2=3,Sheet3!G5,0)))
Cheers
Juan
 

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