+ Reply to Thread
Results 1 to 5 of 5

Linking cells between workbooks if IF statement is satisfied

  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    2

    Linking cells between workbooks if IF statement is satisfied

    Hi,

    I want to link cells between workbooks based on certain criteria being met. I.e IF c6=M then link c5 to a cell in another workbook. Is this possible?

    Thanks

    Matt

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Linking cells between workbooks if IF statement is satisfied

    Keep both the workbook in open


    =IF(C6="M",[Book6]Sheet1!$C$5,"")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Linking cells between workbooks if IF statement is satisfied

    Hi, welcome to the forum

    Sure, you would do this in exactly the same way as if it was in a different worksheet (tab) or even on the same worksheet.

    Something like...
    =IF(F1="M",'[other-file.xlsm]Formulas 1'!$A$1,"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-09-2015
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: Linking cells between workbooks if IF statement is satisfied

    Great, thanks everyone. Works perfectly!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Linking cells between workbooks if IF statement is satisfied

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2007 : linking workbooks and cells
    By Lou54 in forum Excel General
    Replies: 0
    Last Post: 05-30-2012, 02:36 PM
  2. Linking two cells in two workbooks
    By robertgrimsley in forum Excel General
    Replies: 1
    Last Post: 03-28-2009, 03:14 AM
  3. Linking two cells in two workbooks
    By robertgrimsley in forum Excel General
    Replies: 1
    Last Post: 03-27-2009, 02:49 PM
  4. [SOLVED] for DS et al. : linking workbooks and cells
    By Larry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2006, 01:15 PM
  5. Linking cells from different workbooks
    By tillytee1 in forum Excel General
    Replies: 4
    Last Post: 05-11-2006, 10:39 AM

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