+ Reply to Thread
Results 1 to 27 of 27

transpose data through multiple sheets calculate the values based on three datavalidation

  1. #1
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    transpose data through multiple sheets calculate the values based on three datavalidation

    hi
    I have data about five sheets sometimes contain the same data are duplicated then should merge and summing the values as show in sheet summary based on three data validation when select the item from three data validations in cells C2,D2,E2 should shows data as what I design in sheet summary with same borders and formatting I would show each three tables next to each of them and I put the formula in BALANCE but I would show as value and if the data validation are empty brings all of the tables and every time select the items should copy to the bottom but if it's already existed it shouldn't copy to the bottom again and if I change the data for each sheet of them then should update in sheet SUMMARY .
    last thing if there is way to link items with data validations across multiple sheets without use helpers columns just link directly based on the first and the second sheet without any duplicated.
    I put the result in sheet SUMMARY based on selection data validations
    Attached Files Attached Files
    Last edited by abdo meghari; 06-05-2021 at 09:15 AM.

  2. #2
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    any helps?

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Try this code. Data validation request not implemented

    Please Login or Register  to view this content.
    Last edited by maniacb; 06-13-2021 at 12:01 AM. Reason: Remove testing lines

  4. #4
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    truly , it's good but I no know if you can fix somethings
    first when selection from three data validations it should create the table by code and fill data without create table manually
    the second also should create the formula in cell BALANCE by code but shows as value not formula
    third when select another item from data validations should copy to the bottom but be carful if I return selecting the item are already existed in the bottom shouldn't repeat copying to the bottom again and if the data validations are empty then should create all the tables and fill the data by code
    fourth If I change or add a new data in all sheets except summary then should update in sheet summary
    I know this project is complicated but I trust in this forum contains many experts to do that

    I really appreciate your assistance and effort

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Multiple subroutines created in the attached file. I placed two buttons on the Summary sheet. The "Check Sel Exists" button is used to Check if the selected combination exists in the summary sheet. If it doesn't exists, then a new table is created in the summary page and the data is entered into Fourth tab. The 'populate summary' button populates the summary sheet pulling data from all the other sheets. Furthermore, any change to column E in the other sheets will fully update the summary sheet. The data validtion cells are populated through code with all the values that exist in the data.

    Place these subroutines in a module

    Please Login or Register  to view this content.
    Place this subroutine in each other(not summary sheet) sheet module:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    great work ! but still something is missed I no know if it's not clear also it supposes bring the item separately what I mean when select the first time the item from three data validation it should bring what I select not bring all and if I select another item it should copy to the bottom without repeat and if the data validations are empty then should brings all
    thanks for your cooperation

  7. #7
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Here is another iteration. You only need the "Check Sel Exists" button since if three validation fields are blank then the whole summary populates. Try it out and let me know how it fares. I updated the one module below.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    perfect but not completely it remains one thing if when I select the item from the first time it shows , but when I select a different item should copy to the bottom because a new item I think to mentioned that
    if I select another item it should copy to the bottom without repeat
    isn't clear my explanation ?

  9. #9
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    I thought that what you are asking for has been implemented. While one item is being displayed, and a new previously unexisting combination is entered, the summary page is updated with all the item combinations (tables) and the new item appears at the bottom of the summary page. Let me know if this explanation doesn’t align to yours.

  10. #10
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    yes I would that , but the code it doesn't do it you can check it , I select the item then show and when select a new item it replaces for what I searched earlier item

  11. #11
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Do you mean that when you select a new(previuosly unexisting) combination, that the summary sheet is updated with all the items plus the new combination item at the bottom? I understood that is what you want. If you then select the button once more, then only that new combination shows up. I am unable to recreate a condition where a new item is selected and the previous search item shows up. If this answer still doesn't address your concern, please spell out each step with the original spreadsheet items so that I can try to recreate the condition.

  12. #12
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    all what you did is perfect and what I want
    about this
    a condition where a new item is selected and the previous search item shows up
    yes this condition should be
    for more from the first time select item it shows if I select another but is a new then should copy to bottom of previous searched item and so on to rest of new items which searches for them without repeat any item has already searched and existed

  13. #13
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    So I am clear, while entering new items, you want their to be a list of tables, one under the other in the summary page. And if you enter an existing item, then you want that item to show up individually, right?
    Last edited by maniacb; 06-17-2021 at 09:21 AM.

  14. #14
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    then you want that combination item/table to show up individually, right?
    what you means combination , may you make clear more please ?
    and do not forgot showing each three tables next to each of them

  15. #15
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    A combination/table is what you call an item. I updated my previous post.
    Last edited by maniacb; 06-17-2021 at 09:23 AM.

  16. #16
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Here's another iteration. Try it out and let me know how it fares. I only had to update this one module.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    it gives error "object doesn't support this property or method " in this line
    HTML Code: 

  18. #18
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    I updated the code to use the join function instead of the concat method. Otherwise it remains the same. That should resolve the error.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    thanks
    but you still doesn't seem understand me , I put some results when I select more than a new item and how should show in sheet EXPECTED
    please see the attached file
    Attached Files Attached Files

  20. #20
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Here is an update. Let me know if it works as expected.
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    thanks
    but it repeat copying the items have already existed if I search again for the same items it should just update if update in the others sheets without repeat copying again , may you fix it please ?

  22. #22
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    So you want to start with say 4 items as in your previous example. You then want to add to any of those four items in the other sheets. Then be able to come back to the summary sheet to see new changes in the 4 items, correct?

  23. #23
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    You then want to add to any of those four items in the other sheets. Then be able to come back to the summary sheet to see new changes in the 4 items, correct?
    yes
    So you want to start with say 4 items as in your previous example
    but this I'm afraid not sure understand it
    to be more clearly , the file in post#20 it's perfect but the problem if I select repeatedly for items has already existed it shouldn't copy again in the bottom just update if they change in others sheets , and if they are new items then should copy and add to the bottom in sheet summary

  24. #24
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    I've updated two modules. Let me know how it works.

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Attached Files Attached Files

  25. #25
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    amazing !! thanks so much for achieving this project , just I would show message when fill in data validations c2,d2,e2 are doesn't matched for any each sheet then should show message "the items are not available , please Verify that the data is correct " and when show the value is 0 for some item I would change to hyphen "- "
    thanks for your cooperation.

  26. #26
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    Here you go. I added the below code to the formatting section

    Please Login or Register  to view this content.
    and updated the the code to ask 'The items are not available , please verify that the data is correct. Do you want to create a new item?'
    Attached Files Attached Files

  27. #27
    Forum Contributor
    Join Date
    12-02-2020
    Location
    Asia
    MS-Off Ver
    2010 & 2016 insider(Windows 10 64-bit)
    Posts
    724

    Re: transpose data through multiple sheets calculate the values based on three datavalidat

    astonishing ! thanks for provide me this a great project
    you're the best

+ 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] calculate data from multiple sheets from workbook to another based on sheets name
    By MKLAQ in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-03-2021, 10:35 AM
  2. [SOLVED] Data Validation Based on Values on Multiple Sheets
    By Saighead in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2021, 05:30 PM
  3. [SOLVED] vLookUp and Transpose between different sheets/files based on two values from two columns
    By naumanxkhan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2020, 12:17 PM
  4. Replies: 6
    Last Post: 04-03-2020, 04:41 PM
  5. [SOLVED] Datavalidation dropdown based on multiple criteria
    By Cboggie in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-17-2014, 12:00 AM
  6. [SOLVED] transpose values based on multiple lookup criteria
    By mlttkw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2013, 02:29 AM
  7. [SOLVED] use formulas to transpose and sum values based on multiple criteria
    By rmwalters181 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 06:18 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