+ Reply to Thread
Results 1 to 5 of 5

Using If formula with two worksheets

  1. #1
    Registered User
    Join Date
    02-08-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using If formula with two worksheets

    Is there a way of using the IF formula to print what is in a cell on a second worksheet if the answer to query on the first worksheet is correct?
    ie - in cell B3 asking about A3 and if query is correct printing what is in B3 on second worksheet.

    Thanks

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using If formula with two worksheets

    We'd need help understanding how the second sheet will know if the query is correct or not, but the comparison is simple enough:

    =IF(Sheet1!B3="dog",Sheet1!B3,"")

    I'm just showing an example of how you can include the verification of whether the answer is correct or not with "dog". It could also be

    =IF(Sheet1!B3=Sheet1!A3,Sheet1!B3,"")

    Hopefully you get the idea.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-08-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using If formula with two worksheets

    The example I'm trying to use is: In cell B3 (worksheet 2), question , if cell A3 (worksheet 2) is( 1 ) then copy cell B3 from (worksheet 1) in cell B3 (worksheet 2).

    Trying to get the data from Worksheet 1 to Worksheet 2 if the query is correct.

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Using If formula with two worksheets

    Hm, if I follow your logic correctly:

    =IF(Sheet2!A3=1,Sheet1!B3,"")

  5. #5
    Registered User
    Join Date
    02-08-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using If formula with two worksheets

    Thanks, that worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1