+ Reply to Thread
Results 1 to 12 of 12

Sheet adress(name) in cell as referance

  1. #1
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Sheet adress(name) in cell as referance

    Hi

    Have a problem that I can not find a solution for.

    Do some of you kow how to make a drop down list with names of the sheets in my workbook?
    I will in the next collum use the adress in an formula to look up values in that sheet.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Sheet adress(name) in cell as referance

    Put this code in a module
    Please Login or Register  to view this content.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Re: Sheet adress(name) in cell as referance

    Thanks for input.
    I have never used coding in my Excel work before.
    Is it not possible to do this without it?
    I have made an simple example of what I am trying do do.
    Front sheet will be like an order sheet where it is possible to choose different products in different sizes and get correct price.
    When I choose product drop down i left colum it will give me an reference that I can use later with right colums. I plan to use formula Index and Match
    to find the correct price for right product with matching size.
    Maybe I am thinking wrong or it can be don in an more easy way. Happy for all input.
    I know I could just put all product in the front page and make the world more easy. But I like to have an nice structure with one product in its own sheet.
    Later I will also make different options to to apply for the products.
    Attached Files Attached Files
    Last edited by 912Geir; 05-25-2017 at 05:10 AM. Reason: Spelling

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Sheet adress(name) in cell as referance

    You can use this formula in E3:

    =IFERROR(INDEX(INDIRECT("'"&B3&"'!c:i"),MATCH(C3,INDIRECT("'"&B3&"'!B:B")),MATCH(D3,INDIRECT("'"&B3&"'!C3:I3"))),"")

    You may need to change the commas ( , ) in the formula to semicolons ( ; ) according to your regional settings, and you may need to translate the function names into your language.

    Copy down as required.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Re: Sheet adress(name) in cell as referance

    Thanks for formula suggestion.
    I have never used this combination so I have to do a studie to understand its nature.
    I have paste it into cell E3/E4/E5, and changed it to Norwegian but it will not give me any price data.
    If I understand the formula correct, it checks name of product/sheet i colum A and check with/length in Colums B&C to match them in the correct sheet.

    Regards
    Geir
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Sheet adress(name) in cell as referance

    I have put the formula in your file - it should be translated to Norwegian automatically when you open it.

    Hope this helps.

    Pete
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Re: Sheet adress(name) in cell as referance

    Works brilliant!
    Thank for all help. Now I can start to develop my little order system.

    Best Regards
    Geir

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Sheet adress(name) in cell as referance

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  9. #9
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Re: Sheet adress(name) in cell as referance

    Been puzzeling more with my little product calculator today. I have tried to copy Pete's solution (even if I do not understand all parameters yet..) to another collum and find an amount number 2.
    It seems to be something wrong with the lookup, but I can not find it.. :-(
    Attached Files Attached Files

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Sheet adress(name) in cell as referance

    When you use MATCH without specifying the third (optional) parameter, like I did, then it is assumed to be TRUE or 1, which means that it will look for the match which is less than or equal to the item being sought. This means that the data table has to be sorted. The top part of your table in the sheet Classic_FA40 which contain numbers in column B is sorted, but the lower part with names in column B is not. In the attached file I have sorted rows 10 to 15 in that sheet, and the formula in G3 of the Frontpage sheet now gives the correct result.

    Hope this helps.

    Pete
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-24-2017
    Location
    Norway
    MS-Off Ver
    365
    Posts
    8

    Re: Sheet adress(name) in cell as referance

    Thanks again Pete!

    It is facinating how "easy" problems in Excel can be solved sometimes.. I will sort the lists from now :-)

    Best Regards
    Geir

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Sheet adress(name) in cell as referance

    You're welcome - glad to help.

    Pete

+ 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] copy a sheet adress into a formulae via a cell
    By tomneedshelp in forum Excel General
    Replies: 5
    Last Post: 06-29-2016, 08:17 PM
  2. [SOLVED] Hyperlink won't work if there are spacres in sheet name referance
    By kosherboy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2014, 05:56 PM
  3. Trying to referance data from one sheet to another
    By Jugger0s in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2014, 10:02 AM
  4. [SOLVED] Formula to referance Sheet
    By rizmomin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-12-2013, 04:47 PM
  5. Replies: 3
    Last Post: 05-02-2011, 10:18 AM
  6. generically adress previous sheet
    By orgon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2009, 12:52 PM
  7. Indirect(Adress and specific sheet
    By elad in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2007, 03:41 PM

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