You are here:

# Excel/Copying between work sheets

Question
I'm in  Excel  worksheet Sheet1.
IF B1=1, I want to put in my location B2 on Sheet1 the value that is in sheet2 at the location \$A\$1.
=IF(B1=1,B2=Sheuet2!\$A\$1,)
This is my formula,but I get True or False, not the value from sSheet 2

This is because you have an equation in your VALUE_IF_TRUE parameter. No matter what:

X=Y

will always evaluate to either TRUE or FALSE. That's what you're getting for an answer.

The VALUE_IF_TRUE needs to be a discrete value or a cell reference.

=IF(B1=1,B2,Sheet1!A1)

Now it says "if B1=1 then this cell equals whatever is in B2 on this sheet, OTHERWISE, put A1 from Sheet1 here."

See this tutorial for more help on the IF function.

Be sure to visit my web site and watch my FREE 90-minute Microsoft Excel Video Tutorial

Cordially,
Richard Rost
Microsoft MVP
Computer Learning Zone
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment No Comment

This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Richard Rost

##### Expertise

 I am the author of The Complete Idiot's Guide to Excel 2010.   I am happy to answer any questions about Microsoft Excel. If you have an Excel problem, let me help you with it. Also, please be sure to check the Excel Tips & Tricks and Excel Tutorials sections of my web site.   You can also watch my complete Excel 2010 For Beginners tutorial online which is over 90 minutes of FREE videos and an eBook.

##### Experience

I have been using Microsoft Excel since the very early Windows 3.1 versions. I have been teaching Microsoft Excel in the classroom since 1994, and online through computer tutorials since 2002.

Organizations
I have been volunteering on AllExperts in the categories of Microsoft Access, Visual Basic, and Weight Loss for years.

Publications
I am the author of The Complete Idiot's Guide to Excel 2010. I have created a line of computer tutorials online at www.ExcelLearningZone.com and www.599CD.com/Excel.

Education/Credentials
Personally, I am self taught. I've learned everything I know from books and trial & error. If I don't know the answer, I know how to find it.

Past/Present Clients
I have over 20,000 happy clients worldwide.