+ Reply to Thread
Results 1 to 26 of 26

One workbook, multiple sheets, referencing various cells to display

  1. #1
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    One workbook, multiple sheets, referencing various cells to display

    Hi All,

    I think my request might be beyond Excel. If it's not possible, no problem, i've tried to figure it out, by i'm struggling.

    Basically, i'm trying to reference a schedule, and have multiple cells referenced and display on other sheet in the workbook.
    I have a workbook with 6 sheets. 3 Sheets for each week, as the schedule is done on a bi-weekly basis.

    I'm trying to figure out how to get one cell to search for it's value on another sheet, if it finds it, then give the value of another cell in the same row.

    I've noticed that examples are usually requested, so i made a sample workbook. If you take a look, you might notice some sheets have multiple pages, that's for each day of the week,

    Any help at all is appreciated.
    Attached Files Attached Files
    Last edited by AliGW; 04-14-2019 at 03:42 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Welcome to the forum!

    This will be easy to achieve with a few tweaks to your data layout and headings.

    For example, on the START sheet, please list ALL workers in one table, not two spread across the page.

    Also, standardised headings (e.g. Sun in both places or Sunday, but not a mix of the two).

    Once these things are done, INDEX MATCH will get you there.

    Oh, and don't use merged cells - they are the spawn of the devil.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Sounds good! You were a big help. One last issue that i'm running into though, In my example, I have two people down for U2. Is it possible to have the 1st name returned on one line, and another formula to return the 2nd name?
    Last edited by AliGW; 04-13-2019 at 08:45 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Yes, it's possible, but I suggest you provide a fresh workbook.

    Will you please attach a 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.

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

    Administrative Note:


    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

  5. #5
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Thanks agan AliGW! Here is an updated example file. Now my actual file will have many more cells in it, this is just a basic version that should cover off most things.

    The only two issues that i'm really having are
    1) A cell returning a "0" value when i want it blank instead
    2) Names being posted twice, instead of once and getting the other name in the 2nd spot.

    Once again, thanks for your help!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    EDIT: Fixed my 0 issue. Now i just need to deal with the duplicate names.
    Attached Files Attached Files
    Last edited by peijeff19; 04-13-2019 at 02:23 PM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Will take a look in the morning.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: Super complicated. One workbook, multiple sheets, referencing various cells to displa

    Try this:

    =IFERROR(INDEX(Week1!B$1:B$13,AGGREGATE(15,6,ROW($2:$13)/(Week1!C$2:C$13=$A4),ROW(1:1))),"")
    Last edited by AliGW; 04-14-2019 at 03:27 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    Hi AliGW, i gave that fomula a shot, but i'm still get the same name returned in both cells, but i was hoping it would post one name in 1, and the 2nd name that matched the area in the 2nd location.

    Thanks though!!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    It works here.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    1
    DATE Sunday, April 21, 2019
    2
    3
    Day Shift
    Evening Shift
    Night Shift
    4
    U1 Noah U2 William U3 Michael
    5
    U1 Liam U2 Ethan U3 Benjamin
    Sheet: Shift List Start
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    Downloaded your file and you're right, it works great! I'm having issues trying to incorporate it into my actual workbook though. As some of the fields are a bit different, is there any chance you can explain the actual function to me? If you don't have time, no problem as i know you've been helping me out immensely.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    I'll try!

    =IFERROR(INDEX(Week1!B$1:B$13,AGGREGATE(15,6,ROW($2:$13)/(Week1!C$2:C$13=$A4),ROW(1:1))),"")

    Week1!B$1:B$13 needs to be the range you are drawing the data from (names) - it has to start with row 1.

    $2:$13 needs cover the number range that is the same as the lookup range.

    Week1!C$2:C$13 is the range containing U1, U2, etc. (lookup range).

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    Please do not PM members asking for help. If you need further help with this, post here. Thanks.

  15. #15
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    Quote Originally Posted by AliGW View Post
    Please do not PM members asking for help. If you need further help with this, post here. Thanks.
    Hi AliGW, I apologize for that. Won't happen again. I appreciate all the help you've provided and hopefully you don't mind helping me one more time.

    I'm still having issues getting that formula to work correctly in my workbook. Do you mind taking a look? Thanks for breaking down the formula for me, i understood most of it, but i think the AGGREGATE(15,6,ROW($2:$13) & ,ROW(1:1) is confusing me.

    The issue is that the names still are repeating, but it worked well in your example. When i combine both, it gets messed up.
    Attached Files Attached Files

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    The problem is that the real workbook is significantly different to the sample you provided. A different approach will be required. We didn't know that the match items on the left (U1, etc.) would not all be the same.

    I will see what I can do, but you really should have provided a more realistic sample of data in the first place!

    Which version of Excel do you have? Office Home tells me nothing useful.
    Last edited by AliGW; 04-27-2019 at 10:27 AM.

  17. #17
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: One workbook, multiple sheets, referencing various cells to display

    I haven't read the whole thread, so could have easily missed something, does this variation of the formula in B4 and filled down, give the desired results?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    It looks like it, Jason - well done!

  19. #19
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    Thanks Jason.b75 and AliGW. I'll try to incorporate it now!

    And you are 100% correct AliGW, i should have used a better example, i thought if i provided a simple example, then i could just copy and paste it in all the cells. Forgive my ignorance, I'm learning as i go

  20. #20
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    Yes, it's a fine line between simplified and over-simplified! You are forgiven.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  21. #21
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    I'm just working on it now and it seems to be working fantastically! One more question though if you don't mind, should i change ('Week 1'!B$2:B$150=$A4),COUNTIF(A$4:A4,A4))) to ('Week 1'!B$2:B$150=$D4),COUNTIF(D$4:D4,D4))) for the other columns such as "Evening Shift" and ('Week 1'!B$2:B$150=$G4),COUNTIF(G$4:G4,G4))) for "Night Shift"? It seems to work if i do, i just wanted to make sure i wasn't messing it up.

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

    Re: One workbook, multiple sheets, referencing various cells to display

    Yes. That is correct.

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    Could you please update your forum profile with the correct version of Office that you are using?

  24. #24
    Registered User
    Join Date
    04-12-2019
    Location
    Halifax, NS
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    10

    Re: One workbook, multiple sheets, referencing various cells to display

    Quote Originally Posted by AliGW View Post
    Could you please update your forum profile with the correct version of Office that you are using?
    Done!

    Once again, thank you for all the help you've provided. I really appreciate everything, i would have figured this out without the all the assistance! I'll mark the thread as solved!

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,231

    Re: One workbook, multiple sheets, referencing various cells to display

    Thanks for updating the profile.

  26. #26
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: One workbook, multiple sheets, referencing various cells to display

    See if the following will help:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that the highlighted portions of the formula will need to be changed for each day. For example starting with April 8th the formula will need to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note also that the dates in B1, B38 etc have been changed from text to actual dates formatted dddd, mmmm dd, yyyy In order to display cells B1:D1 were selected, then cell formatting (Ctrl + 1 > Alignment tab) 'display across selection' was applied (not merge and center).
    Let us know if you have any questions.
    Edit: I failed to notice that this thread had two pages and thought that the last post was #15. Please ignore this post if the information contained confuses things.
    Attached Files Attached Files
    Last edited by JeteMc; 04-28-2019 at 02:41 PM.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. VBA to fully automate a complicated workbook with multiple sheets
    By lawrence24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2014, 11:01 AM
  2. [SOLVED] Need a complicated formula to display part of current workbook name in a cell
    By ianpwilliams in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2013, 01:41 PM
  3. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  4. Complex Lookup or IF Formula referencing multiple cells and sheets
    By CKD777 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-24-2011, 04:43 AM
  5. Replies: 0
    Last Post: 09-16-2010, 10:44 PM
  6. Replies: 4
    Last Post: 01-06-2009, 07:49 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