+ Reply to Thread
Results 1 to 15 of 15

Referencing Across sheets in a workbook

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Question Referencing Across sheets in a workbook

    So I have a workbook I use to keep track of my offices workflow. I want to have one main sheet that shows the status for everyone so basically I want to accomplish this if sheet "test" C1 has an x then on sheet "A" put in text proof pending in a specified cell. Is this something I can do? If so what would the formula be to accomplish this.

    Thanks

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    Hi BabyBandit82,

    This sounds very easy and straight forward, however, a sample worksheet is always welcome.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    So it won't let me upload even in the advanced options. I uploaded my anatomized file to google sheets at this link
    https://docs.google.com/spreadsheets/d/1WwUmMBgFDDYfSJ7XwDaMuXo8O-tpWnVSK-_hrTDT0a0/edit?usp=sharing

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    Ok, sorry I'm not quite seeing it. Can you elaborate a little more on what you are trying to achieve?

    if sheet "test" C1 has an x
    I don't see any x on sheet test and what is the "specified cell"?

  5. #5
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    Sorry when creating my sample I reversed my sheets. So on sheet A you can see columns with "x" in them I want sheet test to show the header of that column (sheet A) if an x is marked in it. In the final there would actually be several companies I have updated the sample to reflect this.

    Not so easy to explain I guess. But I want the furthest field marked X to read in the 1st sheet as you can now see on the updated sample. At first I thought IF statements but I don't really understand those well and don't think that is the correct way to approach this. My basic goal though it to have the cell act as "if sheet "A" D2 has an x ... then on sheet "Test" B2 put in text Proof Pending" referencing the furthest cell to the right in a range of cells to have an x in it.

    Sheet A
    Sheet A.PNG

    Test
    Test.PNG
    Last edited by BabyBandit82; 12-09-2017 at 03:54 AM.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    In its simplest form as the Company names are in order, you could use...

    Data Range
    A
    B
    C
    D
    E
    1
    Company Name
    1st Column
    2nd Column
    3rd Column
    4th Column
    2
    Testing ABC
    x
    x
    x
    3
    Testing 123
    x
    x
    4
    ABC Company
    x
    5
    123 Company
    x
    x
    x
    x

    Data Range
    A
    B
    C
    1
    Company
    Current Status
    2
    Testing ABC
    3rd Column
    $B$2 =INDEX('Sheet A'!$B$1:$E$1,COUNTIF('Sheet A'!B2:E2,"x"))
    3
    Testing 123
    2nd Column
    $B$3 =INDEX('Sheet A'!$B$1:$E$1,COUNTIF('Sheet A'!B3:E3,"x"))
    4
    ABC Company
    1st Column
    $B$4 =INDEX('Sheet A'!$B$1:$E$1,COUNTIF('Sheet A'!B4:E4,"x"))
    5
    123 Company
    4th Column
    $B$5 =INDEX('Sheet A'!$B$1:$E$1,COUNTIF('Sheet A'!B5:E5,"x"))

  7. #7
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    I am not sure I follow how would a count if statement get me a text result in the cell?

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    I'm not sure then I follow what you're asking. I thought post #6 is what you want. If not, please use post #6 and refine the requirements please?

  9. #9
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    Okay I have tried this on both my sample file and my actual file the result i get is "FALSE" is there a way to have it read the columns and then return the text in row 1 that matches the furthest marked x in row 2?

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    That is what it does unless I am just not getting what you are communicating. Look at post #6. What is not coming out right?

    In row 2 the furthest "X" is in the 3rd column so the formula returns what is in row 1 (D1).

    Can you post your sample workbook where you are getting FALSE and tell me what it should actually be?

  11. #11
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    Found my error and got it working for the most part. what happens if I skip a consecutive x. As you can see in the second one Test 123 it seems to break the system?

    Sheet A
    A.PNG

    Test
    Test.PNG

  12. #12
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Referencing Across sheets in a workbook

    Try replacing the formula in B2 with...

    =LOOKUP(2,1/('Sheet A'!$B2:$E2="x"),'Sheet A'!$B$1:$E$1)

  13. #13
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Question Re: Referencing Across sheets in a workbook

    Been playing with this for 2 days keep getting an N/A in return. I even watched several training videos on lookup functions. If you have any recommendations on free online training I would appreciate it.

    I am sharing a link below that will allow you to edit on my sheet maybe you can help me figure it out.
    https://docs.google.com/spreadsheets...it?usp=sharing

    Here is what I am attempting to accomplish I think I have broken it down better.
    1) Search Row 2 for x (absolute)
    2) Return Result Column Headers in Row 1*
    *But only reference the last x to the right ignoring blank cells, or cells with different data such as --- to reference it is N/A

    Thanks for all your help on this.

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: Referencing Across sheets in a workbook

    Formula from Jeff (post #12) delivers the required results:
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    09-14-2016
    Location
    Winchester, KY
    MS-Off Ver
    365 Desktop
    Posts
    19

    Re: Referencing Across sheets in a workbook

    When I put the formula in my workbook and adjust for sheet names and cells I get an error where it can't find value '2'

+ 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. Referencing a workbook with variable name and run macros in that workbook
    By dode in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2016, 03:39 AM
  2. Moving worksheet with named ranges to new workbook without referencing old workbook
    By madcaplaughs79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2014, 07:54 PM
  3. [SOLVED] Index Match Function Within One Workbook Referencing Cells in Another workbook error
    By Hackboss007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-18-2014, 12:06 PM
  4. [SOLVED] Trouble copying data from closed workbook into active workbook, referencing help
    By lepperga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2013, 01:48 PM
  5. Replies: 3
    Last Post: 05-09-2012, 12:59 PM
  6. Replies: 2
    Last Post: 04-24-2009, 03:45 PM
  7. Referencing other sheets in a workbook.
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2007, 08:45 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