+ Reply to Thread
Results 1 to 16 of 16

Linkage of Sheets

  1. #1
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Linkage of Sheets

    Hi everyone

    I am a total Excel newbie but got a task from my boss that I have no idea how to solve. It's the following I need to link two Sheets so that if I put an X in a Cell of the sheet 1 (eg. Cell 5G) it automatically makes fills cell 1.A on Sheet 2 with the content 5/G. And the other way around so it deletes the column in Sheet 2 if delete the X in Sheet one.

    Help would be much appreciated.

  2. #2
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: Linkage of Sheets

    Upload the sample file

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Linkage of Sheets

    Welcome to the forum.

    You cannot delete contents using a formula. I suspect you will need VBA for this, however to be sure we need to see a workbook.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    So I added an example. Basically if I put an X in Base 1 I need a new row to form in Base two with the name. And if I remove the X in Base one the row in Base 2 needs to be removed as well.
    Last edited by Asyra; 07-23-2019 at 09:34 AM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Linkage of Sheets

    While Ali is most likely correct that VBA is needed to get the results you want, I felt that this might work.
    1. A helper column (BG) is added to the Base 1 sheet and populated using: =SUMPRODUCT(--(E5:BF5<>""))
    2. Column B on the Base 2 sheet is populated using: =IFERROR(INDEX('Base 1'!C$5:C$109,AGGREGATE(15,6,(ROW($A$5:$A$109)-ROW($A$4))/('Base 1'!$BG$5:$BG$109),ROWS($A$1:$A1))),"")
    3. Column C on the Base 2 sheet is populated using: =IF(B5="","",INDEX('Base 1'!D$5:D$109,MATCH(B5,'Base 1'!C$5:C$109,0)))
    Let us know if you have any questions.
    Last edited by JeteMc; 07-23-2019 at 11:15 AM. Reason: Attachment removed at OP's request
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    Hi JeteMc

    This is quite helpful except I need the Column to appear as well. So it would be "Row/column" eg. Determine Baseline Granularity Objects - Granularity and Attributes/Baseline HBC. Do you know how to do that?

  7. #7
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    Also it should be possible to make one row appear more than once since there are the several different row/column combinations

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Linkage of Sheets

    In the attached file there are six helper columns, however the blue section may need to be expanded depending on how many columns (E:BF) could possibly receive an X, for a given row, at one time.
    The formula for the blue section helper columns is: =IFERROR(VALUE(ROW()-4&AGGREGATE(15,6,COLUMN($E$1:$BF$1)/($E5:$BF5<>""),COLUMNS($A$1:A$1))),"")
    The formula for the peach helper column is: =IFERROR(AGGREGATE(15,6,BG$5:BI$109/(BG$5:BI$109<>""),ROWS(A$1:A1)),"")
    The formula for the green helper column is: =IF(BJ5="","",ROUNDDOWN(BJ5/10,0))
    The formula for the purple helper column is: =IF(BJ5="","",MOD(BJ5,10))
    The formula for the Representative column is: =IFERROR(INDEX('Base 1'!D$5:D$109,'Base 1'!BK5)&"/"&INDEX('Base 1'!A$4:BF$4,'Base 1'!BL5),"")
    The formula for the ID column is: =IF(C5="","",'Base 1'!BK5)
    Let us know if you have any questions.
    Last edited by JeteMc; 07-23-2019 at 11:16 AM. Reason: Attachment removed at OP's request

  9. #9
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    This is exactly what i needed. Thank you so much JeteMc!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Linkage of Sheets

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  11. #11
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    Hi JeteMc
    Thanks so much for your help. Unfortunately the document isn't working for me in the back part but only for the first few lines. Could you maybe fix that for me?

  12. #12
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    It seems to work for the rows but only for the first 5 columns

  13. #13
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    Deleted by User.
    Last edited by Asyra; 07-23-2019 at 10:37 AM.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Linkage of Sheets

    See if the following resolves the issue:
    1. The range of the blue cells is extended to column BS (counting the highlighted columns in the table)
    2. The formula* in BT is modified to read: =IFERROR(INDIRECT(TEXT(SMALL(IF((BH$5:BS$100<>""),ROW($5:$100)*100+COLUMN(BH:BS),10^10),ROWS($1:1)),"R0C00"),)&"","")
    3. The formula in BU is modified to read: =IF(BT5="","",VALUE(LEFT(BT5,SEARCH("/",BT5)-1)))
    4. The formula in BV is modified to read: =IF(BT5="","",VALUE(MID(BT5,SEARCH("/",BT5)+1,9)))
    *Denotes an array entered formula which is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Last edited by JeteMc; 07-23-2019 at 11:17 AM. Reason: Attachment removed at OP's request

  15. #15
    Registered User
    Join Date
    07-18-2019
    Location
    Switzerland
    MS-Off Ver
    2016
    Posts
    15

    Re: Linkage of Sheets

    Thank you. Your help is much appreciated.
    Last edited by Asyra; 07-23-2019 at 11:20 AM.

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Linkage of Sheets

    You're Welcome. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Multiple Sheets Linkage
    By MWandersee in forum Excel General
    Replies: 2
    Last Post: 03-02-2012, 10:28 AM
  2. Dynamic linkage to file
    By Didieeer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2012, 10:54 AM
  3. Exchange Rate Linkage
    By Chandrashekhar in forum Excel General
    Replies: 5
    Last Post: 06-27-2008, 09:00 AM
  4. worksheet linkage
    By garyww in forum Excel General
    Replies: 2
    Last Post: 08-20-2006, 10:39 PM
  5. worksheet linkage
    By garyww in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-18-2006, 11:09 PM
  6. worksheet linkage
    By garyww in forum Excel General
    Replies: 0
    Last Post: 08-18-2006, 10:54 PM
  7. [SOLVED] how to change cell linkage
    By artglassbob in forum Excel General
    Replies: 4
    Last Post: 02-14-2006, 10:40 AM
  8. Linkage data between two spreadsheets
    By vitality in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2005, 01:05 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