+ Reply to Thread
Results 1 to 5 of 5

link cells from different worksheets in order to populate indexed values

  1. #1
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    link cells from different worksheets in order to populate indexed values

    What I would like to accomplish pertains to the last 2 pages – “Night Charge RN” and “Night Second RN”. The top page “Census Sheet” is the data entry page and preferred reference page. When this book is done every other page will populate either directly or indirectly off of the top page –“Census Sheet” (Sheet 3103). You will see on both of the last worksheets column D and E reference the cart name and room number respectively. Because the last names of the patients on those sheets is truncated to only show the last initial, I cannot link the name with the respective columns on the “Census Sheet”. I would like to find a way to populate the room number and the cart initial into these columns from “Census Sheet” or sheet 3103. On the “Census Sheet” sheet the cart name is column N or 14 and the room number is column A or 1.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: link cells from different worksheets in order to populate indexed values

    in column E of "Night Charge" and column C of "Census Sheet" you will see the solution I came up with. Now I have the issue of the error trap not working. Can anyone figure out a way to remove the "Bed #" error? Is there another error trap I could use?
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,298

    Re: link cells from different worksheets in order to populate indexed values

    There's a simpler way to return the names:

    =IFERROR(LEFT(D3,FIND(" ",D3)+1),"")

    The bed# error is caused by the fact that Table 3103 has (in effect) two sets of header rows. Type the data (bed#, etc) from row 2 to row 1 and then delete row 1. However, this mucks up a macro that I'm not going to mess with. Alternatively (and much less tidy), change your error capture formula to:

    =IFERROR(IF(INDEX(Table3103[Column1],MATCH($C4,Table3103[Column25],0))="bed #","",INDEX(Table3103[Column1],MATCH($C4,Table3103[Column25],0))),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: link cells from different worksheets in order to populate indexed values

    I always feel humbled when someone presents such an eloquent solution...and shamed...why did I not think of that?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,298

    Re: link cells from different worksheets in order to populate indexed values

    the first suggestion is greatly to b preferred, otherwise you'll run into more botther later. You know your macro, so you should be able to sort it. In the mantime, though, glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Replies: 2
    Last Post: 05-06-2013, 08:53 AM
  2. spreadsheet to populate and link to other worksheets and also the other way around ;-)
    By applesandpears in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2013, 03:15 PM
  3. Replies: 3
    Last Post: 12-17-2012, 01:12 PM
  4. How to create an order form with drop down lists that populate multiple cells
    By d_washington in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2012, 10:23 AM
  5. Link together different cells in specific order?
    By Sandman4432 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-03-2008, 05:01 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