+ Reply to Thread
Results 1 to 13 of 13

Creation of a data validation cell that can contain values from MULTIPLE worksheets

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Dear forum,

    I am a beginner at creating excel Formulas, so i have an issue creating a data validation cell.

    I want to create a data validation cell that can contain values from multiple worksheets:

    The background is that I am creating a summary page, in where I want to be able to choose between different data from multiple worksheets (where the layout is the same but with different figures). These worksheets will contain prices on multiple Products from multiple vendors and in the summary page I will compare these and therefore I want to be able to easily swich from one vendor's price to another's.

    The way I am trying to accomplish this is by creating a data validation cell, allowing a list with the source: "='Data sheet 1'!$C$8, 'Data sheet 2'!$C$8, 'Data sheet 3'!$C$8"

    But this only returns error messages. It works perfect if i have all the data pasted into the same worksheet and the source looks like this: "='Data sheet 1'!$C$8:$E$8"

    Does anyone know how to solve this? The issue is that the data sheets will contain a lot of data, and it will be a mess if I should have to copy all the data into one sheet, especially if some of the data should change.

    I have attached an example of a mockup I made:example.PNG

    Very thankful for advice! // Zimmermann
    Last edited by Zimmermann; 01-18-2013 at 12:46 PM. Reason: added attachment

  2. #2
    Registered User
    Join Date
    01-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Any ideas? Really struggling with this one for my manager..

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    You can use a macro to add all data in sheet.

    After that use a pivot table to get the summary etc.

    If you want it that way, you get better help if you add an small excel file without confidentional information.

    Please also add the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  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
    53,044

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Hi Zimmermann and welcome to the forum

    (just fyi, I live in Zimmerman's lane lol)

    If you have a bunch of data on different sheets that you want to include in a DV list, maybe you could just reference the entries from each sheet into a summary somewhere. By referencing the data, instead of copy/pasting, if you change the data, the list will update automatically.

    As suggested though, it will be easier to help you if we had some data to work with
    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

  5. #5
    Registered User
    Join Date
    01-18-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Hi!

    FDibbins: that is a nice name for a street

    Thank you for the replies! I have created a dummy mockup that should work in the same way as my original workbook will do. Hopefully this makes the issue more clear.

    The ideal solution would be if it is possible to create some form of reference to the cells in the data sheets, and make this reference controlled by the vendor selection dropdown. Do you think that this is possible?

    Thank you again!

    BR / Zimmermann
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    With a macro you get all the data to one sheet.

    After that you can make an pivot table or filter on the data.

    The macro who is been used is:

    Please Login or Register  to view this content.
    See the attached file (for the result).

  7. #7
    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
    53,044

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Based on the sample you provided, the following formula, copied down and across in your table, will provide the answers you want...

    =INDEX(INDIRECT("'"&$C7&"'!$B$3:$M$9"),MATCH(Summary!D$5,INDIRECT("'"&$C7&"'!$B$3:$B$9"),0),MATCH(Summary!$B7,INDIRECT("'"&$C7&"'!$B$3:$M$3"),0))

  8. #8
    Registered User
    Join Date
    01-22-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Hi FDibbins.

    Could you help me with a data validation over multiple worksheets please?
    I think your formula would work but I often get confused as to what I have to change to match myworksheet.

    Many thanks!

  9. #9
    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
    53,044

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    That does work across multiple sheets. It uses the sheet name you have in column C for the sheet name reference

    =INDEX(INDIRECT("'"&$C7&"'!$B$3:$M$9"),MATCH(Summary!D$5,INDIRECT("'"&$C7&"'!$B$3:$B$9"),0),MATCH(Summary!$B7,INDIRECT("'"&$C7&"'!$B$3:$M$3"),0))

    So as long as you use exactly the same sheet names in C, it will pull the required info

    what do you mean by "data validation"? DV is used to ensure that only specified info is entered into a cell by a user

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    @Keiralea

    In your respond #8, your breaking the forum rules.

    You ask a question in the question of somebody else.

    Please start your own question an refer to this treat.

  11. #11
    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
    53,044

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    oops thanks oeldere, I didnt notice that wasnt the OP

  12. #12
    Registered User
    Join Date
    01-22-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Sorry Oeldere.

    I started my thread but I kinda jumepd on this one when I saw this wasbetter articulated than what I said!

    Apologies.

    And thanks FDibbins. Hope I didn't get you in trouble by assoction.

    Sorry aagain.

  13. #13
    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
    53,044

    Re: Creation of a data validation cell that can contain values from MULTIPLE worksheets

    Keiralea no problem. If you think its valid, you can add a link to this thread in your own thread. just copy/paste the web address above

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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