+ Reply to Thread
Results 1 to 10 of 10

Can I update data source from pivot table?

Hybrid View

elbrujo Can I update data source from... 12-28-2015, 12:08 PM
JapanDave Re: Can I update data source... 12-28-2015, 12:24 PM
elbrujo Re: Can I update data source... 12-28-2015, 12:34 PM
elbrujo Re: Can I update data source... 12-29-2015, 03:14 PM
JapanDave Re: Can I update data source... 12-29-2015, 04:47 PM
elbrujo Re: Can I update data source... 12-30-2015, 01:22 AM
JapanDave Re: Can I update data source... 12-30-2015, 03:29 AM
elbrujo Re: Can I update data source... 12-30-2015, 10:07 AM
elbrujo Re: Can I update data source... 01-02-2016, 11:18 AM
JapanDave Re: Can I update data source... 01-02-2016, 10:25 PM
  1. #1
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Can I update data source from pivot table?

    Hello there,

    I would like to know if its possible to edit the source of the data by updating the content of a pivot table; this, when the field of the pivot table I'm trying to update is a row and not a value.

    My goal is to correct typos that are present in multiple rows, without having to update the data source as it would be more difficult to do.

    Regards
    Last edited by elbrujo; 12-28-2015 at 12:36 PM.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Can I update data source from pivot table?

    Are you trying to do via VBA?
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Re: Can I update data source from pivot table?

    Hello,

    I would tend to believe it is the only way, as I've been trying with the Pivot tool itself and this is not a native function; but if you know that this can be achieved without VBA it would be fine. I'm posting it here since there doesn't seem to be another way.

    In any case thank you very much for your time, @JapanDave

    edit: I edited my original post in order to update the goal I want to achieve
    Last edited by elbrujo; 12-28-2015 at 12:37 PM.

  4. #4
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Re: Can I update data source from pivot table?

    Anyone believe this could be possible?

    Regards

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Can I update data source from pivot table?

    Can you post a sample file with a little explanation in it what and where you need done?

  6. #6
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Re: Can I update data source from pivot table?

    Hi there, thanks for your response.

    I have uploaded the files here: http://1drv.ms/22xQggK

    In the column called "Institución (solo educativas)" inside sheet "cs_col" is the name of several academic institutions.
    If you create a pivot table as follows:
    5idSRvk.png

    You will see that it gives you all the names of the institutions, they are all the same for all the files. Now, the main problem is that they might have several typos or simply they are not standardised through all files, one lowercase can make the difference.

    I have a list of the standardised institutions, all of them. What I need is to make sure that the institutions in the files have such standardised name.

    Any advise?
    Thank you,
    Regards
    Last edited by elbrujo; 12-30-2015 at 01:27 AM.

  7. #7
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Can I update data source from pivot table?

    I could do something with that file, but it would be better if you made the pivot table the way you need it and then tell me what part of the table you want to change along with the source data.

  8. #8
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Re: Can I update data source from pivot table?

    Hello,

    Inside file WoS - 2005 I've created a sheet called "Sheet1" with the pivot table. The values I used are random, I just need to generate the list of the institutions shown in the first column, which are those in the column called "Institución (solo educativas)" in sheet "cs_col"

    I hope you understand the nature of my problem; I had said Pivot Table and Editing the Source content from there simply because I found that would be a suitable solution for me. In any case, The pivot table does give me the list of all institutions in that current file; if I was able to use that table to edit the source content, it would be easier to correct the typos present in all other files as well.

    Thanks for your time!
    Last edited by elbrujo; 12-30-2015 at 10:10 AM.

  9. #9
    Registered User
    Join Date
    03-15-2015
    Location
    España
    MS-Off Ver
    2013
    Posts
    80

    Re: Can I update data source from pivot table?

    Any advise? :/

  10. #10
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Can I update data source from pivot table?

    Sorry, been busy,

    Try this. Put the code in the WorkSheet module on sheet1. Then double click what institution name you want to change in sheet1 column A.
    A message will pop up and input the correct spelling there and click ok. The source data will update and so will the pivot chart.

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
      Dim ws As Worksheet
      Dim r As Range
      Dim x As String
      Dim pt
      
        Application.ScreenUpdating = 0
        If Not Intersect(Target, Range("A:A")) Is Nothing Then
          Set ws = Sheets("cs_col")
          Set r = ws.Columns(6).Find(What:=Target.Value, LookIn:=xlValues, lookat:=xlWhole)
           x = InputBox("Enter the correct spelling", , "")
            Do While Not r Is Nothing
                r = x
                Set r = ws.Columns(6).FindNext(After:=r)           
            Loop
                For Each pt In ActiveSheet.PivotTables
                    pt.RefreshTable
                Next pt
         End If
         Application.ScreenUpdating = 1
    End Sub
    Last edited by JapanDave; 01-02-2016 at 11:11 PM.

+ 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] Pivot Table Auto Update Data Source?
    By Ket in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2020, 02:05 PM
  2. using VBA to update a pivot table data source
    By bzl in forum Excel General
    Replies: 1
    Last Post: 06-03-2015, 04:38 PM
  3. Changing data source to update pivot table
    By jonesli in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-07-2014, 01:48 AM
  4. change(update) pivot table data source.
    By Berserk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2012, 08:21 AM
  5. Update source data from pivot table
    By bryanbak3 in forum Excel General
    Replies: 0
    Last Post: 01-12-2012, 05:28 PM
  6. vba code to Update Pivot Table source data
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2010, 04:37 PM
  7. can I use a pivot table and update my source data (like Hyperion)
    By AK in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2006, 02:55 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