+ Reply to Thread
Results 1 to 4 of 4

Return Value In A Shared Workbook

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Return Value In A Shared Workbook

    Hi All

    I use a shared workbook for my job in supply chain, with a shared workbook I believe I can't use array formulas all to well so I am stuck on how to get a return value.

    I have attached a mock workbook and I will explain what I am after.

    In cell E5 on the tab 'Dispatch' I want the return of an In Stock Date which is found in column N on the tab 'Dates'. The criteria of order number would need to match for this to work.
    I tried a nested IF but it would mean that both data on each tab would need to match cell for cell in order. As I will be dragging the formula down this wouldn't work.

    Any help is appreciated!

    Regards

    Aarron
    Attached Files Attached Files

  2. #2
    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,967

    Re: Return Value In A Shared Workbook

    Try this...
    =INDEX(Dates!$N:$N,MATCH(Dispatch!C5,Dates!$D:$D,0))
    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

  3. #3
    Registered User
    Join Date
    12-09-2014
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    80

    Re: Return Value In A Shared Workbook

    It works perfect thank you!

    Could I ask an additional question?

    How does the formula work?
    Here is my interpretation of it.
    The formula works backwards so it looks for the match first being the order number then returns the cell in the same row that is within the index.

    Does that sound about right?

    Regards

    Aarron

  4. #4
    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,967

    Re: Return Value In A Shared Workbook

    Yup, pretty much. Most complex formulas work from the inside out, although some can jump around a bit.

    In this case, I am using INDEX, which needs a range (in this case a single column), and a row to pull from. So, to find the row we need, I use MATCH which returns a row number - just what we need here

    Happy to help and thanks for the rep

+ 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. Running Macro on shared protected/shared workbook?
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2017, 10:56 AM
  2. Replies: 3
    Last Post: 04-05-2016, 11:41 AM
  3. Unprotect Excel 2010 workbook - not a shared workbook
    By kisboros in forum Excel General
    Replies: 1
    Last Post: 01-08-2015, 06:51 PM
  4. [SOLVED] Delete sheets and create a new workbook in Shared Workbook.
    By honger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2014, 01:35 PM
  5. Replies: 0
    Last Post: 04-10-2014, 03:31 AM
  6. Replies: 0
    Last Post: 11-19-2012, 09:28 AM
  7. Replies: 0
    Last Post: 11-15-2012, 11:40 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