473,382 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Linking tables to make Pivot Table Excel 2010

Hi all,

I have a spreadsheet which has two data sources on. Table 1 has data relating to patients who have been discharged from the wards at the hospital I work at and Table 2 has the list of all the wards at the hospital. I can make a pivot table from table 1 easily however it will only list the wards present in table 1. Some of the wards may not have discharged patients for some time but are still required on the final report. The only way I thought of doing that would be to link the two tables together but I don't know how to/ if it's possible do it in Excel 2010.

All help would be appreciated as always!
Oct 26 '15 #1
17 4222
hvsummer
215 128KB
only Database can have relation ship, you could study bout power pivot or access.
or just simply your idea like "lookup information from table 2 to add to table 1"
Oct 29 '15 #2
zmbd
5,501 Expert Mod 4TB
DavidAustin
This is not an easy task to accomplish.
Two links:

+MS: Consolidate multiple worksheets into one PivotTable report

+ PDF: PivotTables and PivotCharts – Multiple Sheets Prairie State

If neither if these sources help, please post back.
Nov 3 '15 #3
Hi zmbd and hvsummer,

I cannot use Access for this project and I am running Excel 2010 so power pivot is not available either.

I have previously tried both of the linked methods and cannot get them to work unfortunately. I've spent quite a lot of time searching for ways to get it working and can't find anything. I tried using MS query to join the tables but in the end pivottable this gives blanks for dates corresponding the unused wards, which when hidden would disappear from the report.

My previous "solution" for this problem was to use a vast range of sumproduct formulas which would take ages to load and constantly give ref errors when data was removed so I'm just looking to streamline the whole process!
Nov 5 '15 #4
zmbd
5,501 Expert Mod 4TB
Ignoring the blank cells, did either of the linked to methods return the correct data?
Nov 5 '15 #5
No, it came out with data that was merged randomly between the two tables. Could it be that the tables are not in the same format?

Table 1 is: ID, Name, DoB, ward, discharge date
Table 2 is: wardname, serviceline of ward, location
Nov 5 '15 #6
zmbd
5,501 Expert Mod 4TB
Table 1 is: ID, Name, DoB, ward, discharge date
Table 2 is: wardname, serviceline of ward, location
Is the common field between these two sheets
t1!Ward::t2!Wardname

if so, is the same value used in both fields? If not, then you will have great difficulties in matching the data. Hence why in the RDMS setting, the Primary-Key of the table is the same data cast as it's Foreign-Key in the related table.

One more tutorial type link I have for doing PT across worksheets... when we moved to Off2013 I found this link for making PT using named tables... Advanced PivotTables: Combining Data from Multiple Sheets
However, I moved away from this construct a long time ago once I had a grasp on the relational-database and normalization and only do this for those without Access that don't want to install the runtime. :)

Too bad this wasn't just blank cells,
You can set the pivot table to display a value...
Right click inside the PT
PT-Options>Empty Cell as:> enter what to display in the correct format for the value cells (ie. use a zero ( 0 ) for numeric fields, not "x" etc...) and this might have solved your report quandary.

You might also consider using the "table format" in Excel2013, it helps to keep the data ranges set when adding or removing rows/columns. This format can be a pain to use; however, for simple pivot tables, this has really made them much easier for me as the data is a bit more dynamic and the PT only needs to be refreshed to get the new data appended within the table.
Nov 5 '15 #7
Yes, Table 1's ward matches table 2's wardname. I have checked and the same values are used in both tables. As previously stated, I only have Excel 2010 not 2013 (which is a shame because I'm sure 2013 would be able to do this!). As there is sensitive patient data, we are restricted in creating databases with the information in otherwise I would definitely have this up and running in Access in no time!
Nov 6 '15 #8
zmbd
5,501 Expert Mod 4TB
well.... 2010... I do like that version; however, we're asking a workbook to do the task of a database.

Let me think about this some more. In the meantime, maybe someone else will have an approach. I think we may end up with a VBA method under ACC2010.

ON a side stream:
As for Excel vs Access... IMHO... your IT-Security team has the wrong concept for data protection. Unless overridden by Group Policy, the Office Distribution Wizard, or compatibly mode via options, Access2007(+) can use reasonably strong encryption and as of ACC2010, and ACC2007 w/compatibility-SPK IIRC, the default Windows Cryptographic API is used( Microsoft: About cryptography and encryption in Office 2010 ); thus, once the database is encrypted - not password protected which is easy to defeat -, assuming the newer Win7->Current OS) the encryption should be fairly strong provided a reasonable password is used (lc,uc,#,@) (( Password Haystack: How Big Is Your Haystack... and how well hidden is YOUR needle? ))
At work, we use encrypted drives, vpn, and thumbdrives to keep the data secured from a hardware side.
(Honestly, when I've inherited old databases and workbooks, I have a list of the top passwords used, I can usually brute force by hand within 15 minutes - scary that! Now the network passwords... yuck so long and so much entropy and cycle limits against prior passwords - makes my head hurt sometimes to come up with a new passphrase and I have to have all my thumbdrives connected or they wont sync to the network after the new password is changed - sigh)

Show your IT guys the article about the default CSP and maybe they will let you use Access.
Nov 6 '15 #9
Hi zmdb,

The main reason I haven't tried using Access is because every month we get sent an updated spreadsheet with all the discharges for the previous month. The spreadsheet I'm currently working with imports the data from this updated spreadsheet and adds it to my data table. I have had experience of importing data from Excel into Access and have found it to be flaky at the best of times. Once this spreadsheet is made, I'm leaving it to another member of staff who isn't particularly IT literate so I'm trying to make this as simple as possible for them (e.g. click a button which updates the pivot table with the latest information then exports it into a word report).

If I have to make it into Access I will but it will get rid of all the other stuff I've done so I would rather not go down that route unless absolutely necessary.
Nov 9 '15 #10
zmbd
5,501 Expert Mod 4TB
I do not advise using this method.
Workbooks are not databases nor were they
ever intended to be a database
There are very cleaver methods to link to and import data in to Access from Excel. Normally, I create a secondary database to hold a temp table and validate the data in that table, then dump to the main tables in the backend.
There are other methods such as parsing each row or cell of data for data type and validity.

With that said:

Ok - back at work today and I know that we had done something like this in the past with some old workbooks that I subsequently moved to Access; thus, I went back to some older documentation from my Office2003 days and found a reference I had on doing this based on a book by T. Zapawa, so I searched on the name hoping to come up with something and lo-and-behold - I not only found a link to the book, I also found a tutorial!

Just to be sure that this is what we're after, I followed the tutorial and was able to recreate the MockRDMS we were using - two caveats... MS-Query must be installed, which it should be by default with Office2010, and I just recreated my old MockRDMS using an Office2013 - so anyway the link:
http://exceluser.com/formulas/msquer...ional-data.htm

Now a few tweaks that I encountered here while following the method. Because this is based on the Office2003 and I am in Office2013 I had to do the following.

+ Named ranges - no change. I highly recommend staying with the alphanumeric - no spaces - underscore as the only special character.

+ Step for creating the new connection. Do not follow this step as written. The connection wizard choked on the xlsx file; however:
++ Instead, in the databases tab, scroll down to and select {Excel Files*}
++ Double check that the option to use the wizard - Is NOT selected. My first time thru this I didn't catch that and the results were a mess.
++ Once you have selected {Excel Files*} [OK]; the file dialog will open, select your "back end"; follow the remaining steps for creating the query and relationships

The only issues I see with this is that the query is hardcoded to the path and file to the back end workbook and the range names are hard coded to the current dataset. There maybe some VBA that could be employed here to name ranges and establish the query and connection.

SO, I've worked a tad of VBA for this, it compiles and works on my PC w/ Office 2013 - once you modify it for your setup let me know... obviously, you'll need to setup the paths and SQL strings.


To use this:
Two workbooks.
1) "Back End"
Sheet1: People
A1-D1
people_pk, people_firstname, people_lastname
A2-C27 has various names
(A2)1001, Alpha, Zebra
(B2)1002, Beta, Yoke
etc...
(A27)1026, Zulu, Able

Named Range: People_Range
A1 - C27

Sheet2: Data
a1-C1
data_pk,data_number,People_fk
2001,100,1001
2002,200,1001
2003,300,1001
(...) further entries for people_fk 1007,1018,etc...

Named Range: Data_Range
A1 - C100

Save. I named this: "964602_excel_2010_MockRDMS_BackEnd.xlsx"

Open a new workbook.
Insert a new module or insert this code into the "thisworkbook" object.


Do not duplicate line 1 in the following if it already exists within your module
Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2.  
  3. Sub Example_MockRDMS()
  4. Dim zWB As Workbook
  5. Dim zCN As WorkbookConnection
  6. Dim zPT As PivotTable
  7. Dim zptsheet As Worksheet
  8. Dim zFP As String
  9. Dim zFN As String
  10. Dim zDBQ As String
  11. Dim zDefaultDir As String
  12. Dim zSQL As String
  13. Dim znewnames As String
  14. Dim zemergency As Integer
  15. '
  16. On Error GoTo zerrortrap
  17. '
  18.     Set zWB = ThisWorkbook
  19. '
  20. '
  21.     Set zptsheet = zWB.Worksheets.Add
  22. 'make sure the new sheet has a unique name
  23.     znewnames = "NewPT" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  24.     zptsheet.Name = znewnames
  25. '
  26. 'Here's where you'll want to seup your paths and file names.
  27. 'observe the format in each... it is importaint the the back-slashes be correct!
  28.     zFP = "C:\Users\USERNAMEHERE\Documents\_Databases_Programming\Bytes_Work\964602_excel_2010_MockRDMS"
  29.     zFN = "\" & "964602_excel_2010_MockRDMS_BackEnd.xlsx"
  30. '
  31. 'build the connection string
  32.     zDBQ = "ODBC;DSN=Excel Files;" & _
  33.         "DBQ=" & zFP & zFN & _
  34.         ";DefaultDir=" & zFP & _
  35.         ";DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"
  36. '
  37. 'build the relational SQL for the named ranges in the mock backend database
  38. 'following the above tutorial, you should be able to 
  39. 'get this from your first setup.
  40. 'I've built a simple mock example here.
  41.     zSQL = "SELECT people_range.people_pk" & _
  42.         ", people_range.People_LastName" & _
  43.         ", data_range.data_pk, data_range.data_number" & _
  44.         " FROM data_range data_range, people_range people_range" & _
  45.         " WHERE people_range.people_pk = data_range.People_FK" & _
  46.         " ORDER BY people_range.People_LastName, data_range.data_pk"
  47. '                              ^^^^^
  48. 'Notice, you will not be able to sort on two fields
  49. 'in the Excel query editor..... (-_-)
  50. '
  51. 'Reuse the variable here to create a unique connection
  52.     znewnames = "DC_MockRDMS_BE" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  53.     zWB.Connections.Add2 _
  54.         Name:=znewnames, _
  55.         Description:="Connection to ExcelFile as Mock RDMS backend", _
  56.         ConnectionString:=zDBQ, _
  57.         CommandText:=zSQL
  58. '
  59. 'because I'm changing the connection names...
  60.     Set zCN = zWB.Connections.Item(znewnames)
  61. '
  62. 'ok, now for the magic insert the new pivot table in to the newly created worksheet
  63. '
  64. 'Reuse the variable here to create a unique connection
  65. 'technically, we can use the same name on different sheets so that PivotTable1 could be on twenty different
  66. 'worksheets... @_@
  67.     znewnames = "PvtTbl" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  68.     zWB.PivotCaches.Create(SourceType:=xlExternal, _
  69.         SourceData:=zCN, _
  70.         Version:=xlPivotTableVersion15).CreatePivotTable TableDestination:=zptsheet.Cells(1, 1), _
  71.         TableName:=znewnames, _
  72.         DefaultVersion:=xlPivotTableVersion15
  73.     zptsheet.Cells(1, 1).Select
  74. '
  75. 'make our life easier when refering to the new piviot table!
  76.     Set zPT = zptsheet.PivotTables(znewnames)
  77. '
  78. 'OK... now here is where we start setting up the row, column, and field information.
  79. 'this is a very simple example.
  80.     With zPT.PivotFields("People_LastName")
  81.         .Orientation = xlRowField
  82.         .Position = 1
  83.     End With
  84.     zPT.AddDataField zPT.PivotFields("data_number"), "Sum_of_data_number", xlSum
  85. '
  86. 'ok, hide the field list if visible... this worked in Excel2003 anbd in Excel2013...
  87.     If zWB.ShowPivotTableFieldList Then zWB.ShowPivotTableFieldList = False
  88.     '
  89. zcleanup:
  90.     If Not zCN Is Nothing Then Set zCN = Nothing
  91.     If Not zptsheet Is Nothing Then Set zptsheet = Nothing
  92.     If Not zPT Is Nothing Then Set zPT = Nothing
  93.     If Not zWB Is Nothing Then Set zWB = Nothing
  94. Exit Sub
  95. zerrortrap:
  96.     Debug.Print "ErrS: " & Err.Source & vbCrLf & "ErrN: " & Err.Number & vbCrLf & "ErrD: " & Err.Description
  97.     '
  98.     'prevent errortrapping loops... sometimes Shifu's-an-idiot :)
  99.     If zemergency > 100 Then Exit Sub
  100.     zemergency = zemergency + 1
  101.     '
  102.     Resume zcleanup
  103. End Sub
The partial output from my example files:
Expand|Select|Wrap|Line Numbers
  1. Row Labels    Sum_of_data_number
  2. Chance           7500
  3. Ink              12300
  4. Tare             13200
  5. Zebra            2100
  6. Grand Total     35100
Nov 9 '15 #11
Wow, that looks like it could be what I'm after - does it definitely list all objects even if they have no data attached? EDIT: I have also just realised this is the same website I used a couple of weeks ago to do this and it didn't work in producing the final table as it wouldn't list all of the wards in the pivot table as required

I have started going through the tutorial (selecting the excel files option like you have said) but once I have been taken into MS Query, my tables do not appear in the add table box - any ideas? EDIT: just found out it has to be converted to a named range rather than a table
Nov 10 '15 #12
I've been going through your vba and edited it so that zFP is my file path and zFN is the filename (adhering to the same format as your example). I have also pasted in the SQL from my original go (see below) and then ran the code. I am getting an error in the zWB.Connections.Add 2 section of:

ErrS: VBAProject
ErrN: 438
ErrD: Object doesn't support this property or method

The SQL I've been using (copied from microsoft query):

Expand|Select|Wrap|Line Numbers
  1. "SELECT DataTable.RioID, DataTable.Name" & _
  2.         ", DataTable.DOB, DataTable.dischdate, Ward.Ward" & _
  3.         ", Ward.ServiceLine, Ward.Location" & _
  4.         " FROM {oj Ward Ward LEFT OUTER JOIN DataTable DataTable" & _
  5.         "ON Ward.Ward = DataTable.Ward}"
Nov 10 '15 #13
zmbd
5,501 Expert Mod 4TB
subtle change- a space between the quote and the ON predicate; thus,
Expand|Select|Wrap|Line Numbers
  1. "ON Ward.Ward = DataTable.Ward}"
goes to,
Expand|Select|Wrap|Line Numbers
  1. " ON Ward.Ward = DataTable.Ward}"
See if that works.
The MS Query uses a little different flavor of SQL than Access; however, the spaces are still the little minefields that await to terrorize us!

TBH - we're a tad out of my depth here now... (@_@)
Part of the reason I moved things to Access.
Nov 10 '15 #14
zmbd
5,501 Expert Mod 4TB
Revised SQL
Expand|Select|Wrap|Line Numbers
  1.     zSQL = "SELECT people_range.people_pk" & _
  2.         ", people_range.People_LastName" & _
  3.         ", data_range.data_pk, data_range.data_number" & _
  4.         " FROM {oj people_range people_range" & _
  5.         " LEFT OUTER JOIN data_range data_range" & _
  6.         " ON people_range.people_pk = data_range.People_FK}" & _
  7.         " ORDER BY people_range.People_LastName, data_range.data_pk"
Returns a result of:
Expand|Select|Wrap|Line Numbers
  1. Row Labels      Sum_of_data_number
  2. Able    
  3. Baker    
  4. Chance                 7500
  5. Duff    
  6. Ed    
  7. (... etc ...)
  8. Grand Total    35100
Right click on the table
Pivot table Options
Layout and Format tab
For empty cells show
0

Expand|Select|Wrap|Line Numbers
  1. Row Labels    Sum_of_data_number
  2. Able              0
  3. Baker             0
  4. Chance            7500
  5. Duff              0
  6. Ed                0
using the GETPIVOTDATA()
In a cell:
Expand|Select|Wrap|Line Numbers
  1. =GETPIVOTDATA("data_number",$A$1,"People_LastName","Able")
Returns 0

Whereas
Expand|Select|Wrap|Line Numbers
  1. =GETPIVOTDATA("data_number",$A$1,"People_LastName","Chance")
Returns 7500

-Z
Nov 10 '15 #15
zmbd
5,501 Expert Mod 4TB
Once again, I advise using a true database for this type of work. Excel is not, nor is intended to be, a RDMS. Data can be easily corrupted/orphaned and updates to data can be horrible to complete.


Ok DavidAustin,

This is the revised code to return as described in my prior post. You should be able to take it from here. Please post back with any tweaks or improvements.

Also added a line to set the row header to something better than [Row Labels] default:

Remember not to duplicate line1 in your modules :)
This code has been tested in Office 2013 using the files as described in post#11

A few things I've thought of that I'll leave for later.
+ Ideally the code would check for an existing connection to the "back-end" workbook and either delete that connection or modify the connection.
+ Using the file dialog ( insights>Select a File or Folder using the FileDialog Object ) one could allow the user some control to locate the desired file.
+Hmmm...
Expand|Select|Wrap|Line Numbers
  1. Option Explicit
  2.  
  3. Sub Example_MockRDMS()
  4. 'This code will make a connection to the specified workbook
  5. 'this workbook must have named ranges. In this case people_range and data_range
  6. 'the SQL relates the data from one range to the other.
  7. '
  8. Dim zWB As Workbook
  9. Dim zCN As WorkbookConnection
  10. Dim zPT As PivotTable
  11. Dim zptsheet As Worksheet
  12. Dim zFP As String
  13. Dim zFN As String
  14. Dim zDBQ As String
  15. Dim zDefaultDir As String
  16. Dim zSQL As String
  17. Dim znewnames As String
  18. Dim zemergency As Integer
  19. '
  20. On Error GoTo zerrortrap
  21. '
  22.     Set zWB = ThisWorkbook
  23. '
  24. '
  25.     Set zptsheet = zWB.Worksheets.Add
  26. 'make sure the new sheet has a unique name
  27.     znewnames = "NewPT" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  28.     zptsheet.Name = znewnames
  29. '
  30. 'Here's where you'll want to seup your paths and file names.
  31. 'observe the format in each... it is importaint the the back-slashes be correct!
  32.     zFP = "C:\Users\[USERNAMEHERE]\Documents\_Databases_Programming\Bytes_Work\964602_excel_2010_MockRDMS"
  33.     zFN = "\" & "964602_excel_2010_MockRDMS_BackEnd.xlsx"
  34. '
  35. 'build the connection string
  36.     zDBQ = "ODBC;DSN=Excel Files;" & _
  37.         "DBQ=" & zFP & zFN & _
  38.         ";DefaultDir=" & zFP & _
  39.         ";DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"
  40. '
  41. 'build the relational SQL for the named ranges in the mock backend database
  42. 'simple
  43.     'zSQL = "SELECT people_range.people_pk" & _
  44.         ", people_range.People_LastName" & _
  45.         ", data_range.data_pk, data_range.data_number" & _
  46.         " FROM data_range data_range, people_range people_range" & _
  47.         " WHERE people_range.people_pk = data_range.People_FK" & _
  48.         " ORDER BY people_range.People_LastName, data_range.data_pk"
  49. '
  50. 'returns all of the last names in the named range people_range
  51.     zSQL = "SELECT people_range.people_pk" & _
  52.         ", people_range.People_LastName" & _
  53.         ", data_range.data_pk, data_range.data_number" & _
  54.         " FROM {oj people_range people_range" & _
  55.         " LEFT OUTER JOIN data_range data_range" & _
  56.         " ON people_range.people_pk = data_range.People_FK}" & _
  57.         " ORDER BY people_range.People_LastName, data_range.data_pk"
  58. '
  59. 'Reuse the variable here to create a unique connection
  60.     znewnames = "DC_MockRDMS_BE" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  61.     zWB.Connections.Add2 _
  62.         Name:=znewnames, _
  63.         Description:="Connection to ExcelFile as Mock RDMS backend", _
  64.         ConnectionString:=zDBQ, _
  65.         CommandText:=zSQL
  66. '
  67. 'because I'm changing the connection names...
  68.     Set zCN = zWB.Connections.Item(znewnames)
  69. '
  70. 'ok, now for the magic insert the new pivot table in to the newly created worksheet
  71. '
  72. 'Reuse the variable here to create a unique connection
  73. 'technically, we can use the same name on different sheets so that PivotTable1 could be on twenty different
  74. 'worksheets... @_@
  75.     znewnames = "PvtTbl" & Format(Now(), "YYYY_MM_DD_HH_mm_ss")
  76.     zWB.PivotCaches.Create(SourceType:=xlExternal, _
  77.         SourceData:=zCN, _
  78.         Version:=xlPivotTableVersion15).CreatePivotTable TableDestination:=zptsheet.Cells(1, 1), _
  79.         TableName:=znewnames, _
  80.         DefaultVersion:=xlPivotTableVersion15
  81.     zptsheet.Cells(1, 1).Select
  82. '
  83. 'make our life easier when refering to the new piviot table!
  84.     Set zPT = zptsheet.PivotTables(znewnames)
  85.     zPT.NullString = "0"
  86. '
  87. 'OK... now here is where we start setting up the row, column, and field information.
  88. 'this is a very simple example.
  89.     With zPT.PivotFields("People_LastName")
  90.         .Orientation = xlRowField
  91.         .Position = 1
  92.     End With
  93. 'Change the rowheader title to something better than the default [row labels]
  94.     zPT.CompactLayoutRowHeader = "Last_Name"
  95. '
  96.     zPT.AddDataField zPT.PivotFields("data_number"), "Sum_of_data_number", xlSum
  97. '
  98. 'ok, hide the field list if visible... this worked in Excel2003 anbd in Excel2013...
  99.     If zWB.ShowPivotTableFieldList Then zWB.ShowPivotTableFieldList = False
  100.     '
  101. zcleanup:
  102.     If Not zCN Is Nothing Then Set zCN = Nothing
  103.     If Not zptsheet Is Nothing Then Set zptsheet = Nothing
  104.     If Not zPT Is Nothing Then Set zPT = Nothing
  105.     If Not zWB Is Nothing Then Set zWB = Nothing
  106. Exit Sub
  107. zerrortrap:
  108.     Debug.Print "ErrS: " & Err.Source & vbCrLf & "ErrN: " & Err.Number & vbCrLf & "ErrD: " & Err.Description
  109.     '
  110.     'prevent errortrapping loops... sometimes Shifu's-an-idiot :)
  111.     If zemergency > 100 Then Exit Sub
  112.     zemergency = zemergency + 1
  113.     '
  114.     Resume zcleanup
  115. End Sub
Lines 42 thru 48 are from the prior posting returning a simpler dataset. I've left them here for academic review - normally I would delete these in a production setting.
Nov 10 '15 #16
I'm not going to lie, this looks well outside of my comfort zone for something I thought would be "simple". If I had to use Access for this, how would I make it produce the report in dataform that I need?

All I need is something that is like a pivot table but will show all of my wards on the rows without having a blank dates column at the top!
Nov 11 '15 #17
zmbd
5,501 Expert Mod 4TB
The vba should be straight forward at this point and will handle most of the hard work. All you need to do is modify for your file locations and named ranges, etc...


To do this in Access - the Basics would be:
Design your data tables using at least 1NF normalization
( Insights>Database Normalization and Table Structures )

at least two data tables?
t_wards - PK and only the information directly related to the wards
t_w_admissions - PK, FK to t_wards, and ...

Without a generic copy of the data you are working with it's almost impossible to advise.

- to go into this in depth please start a new thread in the Access/VBA-Q&A forum( home > topics > microsoft access / vba ) you can always insert a link back to this thread for context :)
Nov 11 '15 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: matthew kramer | last post by:
Hi, I'm using the reverse pivot technique on an excel spreadsheet to create a list dataset from which I can make a pivot table in excell. The only problem is that because there are so many...
0
by: Alexander Mandl | last post by:
Hello I have a pivot table in an Access form and open the pivot Table (Excel OLE Object) from within Access. In the Excel Table is a macro (signed) (in teh open event) running when opening the...
1
by: Grey | last post by:
I have created a asp.net form for user to input data. After input the data, user need to click a button to export the input data to excel for data analysis with excel pivot table function. is it...
8
by: Jerome Ranch | last post by:
Okay So I've got pivot tables setup in Access 2003. Only about 30K records in the current 2005 databases...the pivots summarize the info in a number of nice ways. I need to get the pivot tables...
9
by: PeteCresswell | last post by:
I've got something called "Reference Rates". The idea is that on a given day, we have various rates of return for various entities. e.g. Libor 3-month return, Libor 6-month return, US Treasury...
1
by: NS3687 | last post by:
Hi, Is there a way to simulate the Excel Pivot table flexibility in MS Access? I mean, once I get the needed data into one table, instead of writing one query to for an analysis point, I'd lke to...
9
by: patrick.waldo | last post by:
Hi all, I tried reading http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/334695 on the same subject, but it didn't work for me. I'm trying to learn how to make pivot tables from some...
0
by: dmitry chov | last post by:
using Excel = Microsoft.Office.Interop.Excel; ... Excel.Application xlApp = new Excel.Application(); Excel.Worksheet xlWorkBook = xlApp.Workbooks.Open(templateFileReport); Excel.Worksheet...
2
by: dha lak | last post by:
Hi, I have 4 tables in my database. i want to create pivot table using them in a gridview. 1) Category CategoryID CategoryName 1 Milk 2 Nuts 3 Fruits
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.