+ Reply to Thread
Results 1 to 11 of 11

Reference another sheet by formula

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    df
    MS-Off Ver
    2010
    Posts
    4

    Reference another sheet by formula

    Hi everyone,

    I would like to get some data from another excel file. But every data that i needed is located in another sheet.

    I created a column that contains the correct pages. And i want to use a formula by using that column. Like;

    =VLOOKUP(M28;'[Example.xlsx]The Sheet'!$F$1135:$P$1218;4;0)

    I want that the sheet be like;

    =VLOOKUP(M28;'[Example.xlsx]MyMainSheetC6'!$F$1135:$P$1218;4;0)


    Thanks in advance

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    If you know INDIRECT function then try it else attach sample file...
    Last edited by mangesh.mehendale; 10-12-2015 at 05:45 AM.
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Reference another sheet by formula

    I'm not sure I understand your question. If you want to reference another workbook then open the reference workbook, when you write your formula in your sheet, then click on the other workbook for your formula that refers to that book and finish the formula.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    @ moakcan...

    Thanks for Reputaion points.. If it works for you then mark thread as Solved..(See at top right side "Thread Tools")

  5. #5
    Registered User
    Join Date
    02-03-2015
    Location
    df
    MS-Off Ver
    2010
    Posts
    4

    Re: Reference another sheet by formula

    Quote Originally Posted by mangesh.mehendale View Post
    @ moakcan...

    Thanks for Reputaion points.. If it works for you then mark thread as Solved..(See at top right side "Thread Tools")
    No unfortunately ...

    - In A.xls file, I have the B2 cell which is a list of the products.

    - In the list there are 4 names. Every name is also the name of the sheets in another excel file( Lets call it B.xls - 4 different sheets)

    - I want this: when the user select the product from the 4-named-list, I have to bring the price of this product from the B.xls file.


    If there is not 4 different name, formula would be like;

    =VLOOKUP(M28;'[Example.xlsx]The Sheet'!$F$1135:$P$1218;4;0).

    But i have 4 different sheet that i have to use in B.xls file. So it have to be like

    =VLOOKUP(M28;'[Example.xlsx]B2'!$F$1135:$P$1218;4;0)

    Since the text in the B2 cell is the exact name of the sheet (in B.xls). There musn't be any problem. But when i try to write this. Excel gives me a warning message. So my question is how do i do that?

    I couldnt do this with INDIRECT. Could you show me if it is possible?

    Thank you very much
    Last edited by moakcan; 10-12-2015 at 09:03 AM.

  6. #6
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    not getting actually... It would be easy to solve if you attach sample files with desired results...

  7. #7
    Registered User
    Join Date
    02-03-2015
    Location
    df
    MS-Off Ver
    2010
    Posts
    4

    Re: Reference another sheet by formula

    I couldnt find how to attach files but i attached the pics

    here they are;

    Attachment 424310
    Attachment 424311

    As you can see the SKU names im con1 and the sheet names in con2 are the same. So i want to write a formula.

    When "Nestle 100gr." selected, it will bring the price from the "Nestle 100gr." sheet(another excel file), and when "Nestle 120gr." selected, it will bring the price from the "Nestle 120gr."

    Now the formula is this:

    =VLOOKUP(D4;'[Cont 2.xlsx]Nestle 100gr'!$C$4:$G$4;2;0)

    But it brings only the price in the "Nestle 100gr" sheet. So what about i choose the "Nestle 120gr"? It has to be dynamic and goes the other sheet. But how ?


    Thank you again

  8. #8
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    see attached files Hope this is what you want.... Else Click on "Go Advanced" => Manage Attachments => Add File.. (to attach your files)

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

  9. #9
    Registered User
    Join Date
    02-03-2015
    Location
    df
    MS-Off Ver
    2010
    Posts
    4

    Re: Reference another sheet by formula

    Quote Originally Posted by mangesh.mehendale View Post
    see attached files Hope this is what you want.... Else Click on "Go Advanced" => Manage Attachments => Add File.. (to attach your files)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you very much! It worked.

    But as far as i understood. The excel file that i referenced must be open while doing it.
    I will do it that way.

    Thank you again.

  10. #10
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    Please note Other excel file should be open and when you close current file and reopen it the again other file required to open to take effect...
    If you don`t want to open other files again and again you should have to Paste Special after applying formula...

    Please mark this thread as Solved (See at Top "Thread Tools"

  11. #11
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Reference another sheet by formula

    Please note Other excel file should be open and when you close current file and reopen it the again other file required to open to take effect...
    If you don`t want to open other files again and again you should have to Paste Special after applying formula...

    Please mark this thread as Solved (See at Top "Thread Tools")

+ 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. [SOLVED] Locked formula changes reference when rows added to reference sheet in same workbook
    By macrorookie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2014, 04:08 PM
  2. VBA formula to reference Sheet Name
    By jhall488 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2013, 01:31 PM
  3. [SOLVED] Use cell reference on one sheet as a sheet name in a formula on another sheet
    By GavJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2013, 05:06 AM
  4. [SOLVED] Sheet Reference Formula Help
    By K m in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2013, 08:38 PM
  5. Dragging formula, change sheet reference, but not cell reference
    By Kalilaya0419 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2013, 04:50 PM
  6. Sheet reference in a formula
    By Yobari in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2009, 10:36 AM
  7. Formula to reference another sheet
    By wmorrison49 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2008, 02:04 PM
  8. [SOLVED] Formula to reference name of sheet tab
    By DBCollier in forum Excel General
    Replies: 7
    Last Post: 04-03-2006, 05:10 PM

Tags for this Thread

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