Indirect command and getpivotdata

In Excel 2010 I have a worksheet that uses data from monthly Pivot Tables in different externel Excel files (cumulating sales per month) using GetPivotData and I want to use the INDIRECT command to adress variabel filenames changing monthly to a higher number
(1 to 12). The problem is in getting data from subtotals in the Pivot Table.
When I get the data directly from the Pivot Table there is no problem and I get the correct data, by using the following command  (in fact I use a Dutch version but I translated these to the English equivalents):
=GetPivotData("Sum of Deposits";'C:\Data\User\Group\Company\2014\Invoicehistory\[Invoicing 2014-10.xlsx]PivotTable'!$A$3;"Month";2)
"Month" is the columnlabel and the number 2 stands for monthnumber 2 (e.g. February)
When I try to get the same data by using the INDIRECT command there is a problem because of the quotation marks that are needed to define te columnlabel "month". With the INDIRECT command Quotation marks are used for building the text string
to define the path.
Therefore the command:
=GetPivotData("Sum of Deposits";INDIRECT("'C:\Data\User\Group\Company\2014\Invoicehistory\[Invoicing 2014-"&TEXT(CurrentWorksheet!$B$2;"00")&".xlsx]PivotTable'!$A$3;"month";2"))
is not possible.
I have tried to trick Excel bij typing "month" in cell B12 and referring to that cell using the CHOOSE command and also using the CONCATENATE command, but that was no succes.
Can you help me with this problem?

Hi Euromatrix,
Thaks for posting in MSDN forum.
This is forum for developers discusing developing issues using VBA to manipulate Excel application. Since the issue is more relative to end-user, I would like to move it to
Excel IT Pro Discussions forum.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thanks for your understanding.
Best regards
Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • What is the diffrence between OMB plus command and OMB command

    what is the diffrence between OMB plus command and OMB command?
    are they both TCL command?

    Hi Alena,
    Welcome to SDN.
    Check this
    EXIT in Loops and Modularization Units
    Basic form
    EXIT.
    Effect
    Within a loop structure:
    Terminates looop processing (DO, WHILE, LOOP, SELECT).
    Within subroutines and other modularization units (but not in a loop structure):
    Leaves the subroutine or modularization unit (FORM, MODULE, FUNCTION, TOP-OF-PAGE, END-OF-PAGE).
    Outside loop structures and modularization units (report processing):
    Terminates report processing and triggers list display.
    But not sure about
    atexit() .. ,may use in Object Oriented Programming.
    (C++)
    "At exit-command in module pool."
    Mohinder
    Edited by: Mohinder Singh Chauhan on Aug 1, 2008 8:06 AM

  • I just downloaded and instaled firefox 4. Now, everytime I institute a command I get a po[p-up from Java script that tells me to uninstal set. I cannot go on untin I press ok and then I am good for one more command and it starts with the pop-up again.

    I'm not even sure if this is an extension or plug-in and all I can tell you is what I have already stated. I can only make one command at a time and after each one I get a pop-up from Java script that says uninstal set. I must depress ok to move on, but only for one more command and it starts over again. This also happened when I tried to instal firefox 4 a couple months ago and I deleted the program and went back to an earlier version.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • What key(s) do i type to change language from english to other? i am writing s story in dual languages. i was told to click command and space bar together but it is not working.

    what key(s) do it type to change language from english to other? i am writing a story in dual languages. I was told to click command and space bar together but it is not working.

    Command Spacebar opens Spotlight as you have found out. If you want to change languages you need to say what app you are using to write the story in, I'm guessing you are using Pages or MS Word. If that's the case
    Pages: Open Inspector - Click the T tab - Click Language and change your language.
    MS Word: Tools Menu - Language - Choose your language.

  • How to put echo command and other command in same line in Terminal

    Hello everyone. I use GeekTool (v3.0.1) and was wondering if I could put an "echo" command and another command in a shell script such that the output would be 1 line only instead of 2 lines for the 2 commands. How do I do that?

    This is why I think iTunes, in its present form, is completely unsuited for cataloging eBooks. However you can do what you want to do with the existing tags. Since a picture is worth a thousand words, here's a screen cap for you to illustrate how:
    And the various other sorting options:
    Give all that a try and see how it works for you.

  • My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    My iphone 4S only start whit cable plug in and then show battery very low (with red line end) then try to turn on but show searching in operator name command and not connecting and no work properly and when I plug out it turn off!!! what should I do?

    I'm afraid you'll have to get the phone serviced, dropping the phone must have damaged additional parts inside the phone.
    But Apple will not service the phone anymore, opening the phone and replacing the battery should only be done by authorized personal, not by users.
    You'll have to look for a 3rd party repair shop and see if they can fix this, sorry.

  • How to find out the failed sql command and its data from DEFERROR

    Hi,
    has anybody a procedure or some other possibilities to read the content of column USER_DATA of the advanced replication view DEFERROR in order to find out the failed sql command and its column values?
    Thanks in advance.

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • HT2638 since updating iPhoto it has ceased to open.  i have tried to Hold down the Command and Option keys on the keyboard but it does not work.  iPhoto still does not open

    Since updating iPhoto it has ceased to open.  I have tried to Hold down the Command and Option keys on the keyboard which is the suggested solution to then open a suggested solution to rebuild the library,  but it does not work.  iPhoto still does not open.  can someone please help?
    thank you

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
        Home/Library/ Preferences folder.
    2 - delete iPhoto's cache folder(s):
    Home/Library/Containers/com.apple.iPhoto
    and, if there is one, the
    Home/Library/Caches/com.apple.iPhoto folder
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    Happy Holidays

  • Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. Does any one know how I can get it to recover?

    Hi I installed a new hard drive in my Mac mini osx lion an when I turn it on I get a flashing file with a question mark. I tried holding command and R keys when turning it on but the recovery fails to work. I can hold the option key at start up and choose my network, then Internet recovery shows up with an arrow pointing up. When I click on the arrow Internet recovery fails and all I get is a globe with a triangle on it with an exclamation mark on it, and under that it says
    apple.com/support
          -6002F
    Does any one know how I can fix this without a recovery disc? Thanks

    I just want to add to this, in case someone else searches for this error on Apple Support (google doesnt cover apple support.. how clever is that?)
    I had the same error. And i had a Computer that had worked, with a SSD drive and 16GB upgrade done by the owner himself.
    I tried swapping with a Mechinal Harddrive, no luck.
    Kept the Mechanical drive in, and tried with some other Ram, it worked..
    So for me this error and after reading the other responses can be boiled down to a Harddrive problem or Ram issue.
    It was Ram for me..

  • I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?

    I am having mac book air 2012model i had installed mavericks and use it, i long press command and power button at a same time and i saw the command prompt, from that i had formated the total hard disk. how to i want to install the OS again ?
    i tryed with download mavericks but finally its saying a error message like cant conect to istore like that its saying and every thing is clear like internet and other stuf i tryed with 3times no progress same error pls help.. i bought this lap for my bro with his apple id only we use it now he got a new mac book pro so he gave to me so i formated and use it i use my apple id is that problem come because of changing apple id ? pls eplain

    Firstly, what is the source of the 10.6.4 disc? Is it the original installation disc for your MacBook, or one 'borrowed' from another computer?
    It isn't the retail version, because that's 10.6.3.
    Assuming it's the correct disc (i.e. the one that shipped with your Mac), you need to boot from it again.
    OK the language page.
    From the installer screen, ignore the continue button, go to the menu bar and choose Disk Utility from the Utilities menu.
    In DU, select your internal drive in the sidebar (the top item with the makers name and serial no.).
    Run Repair Disk. If that comes up as disk OK, click the partition tab. Select the partiton from the drop-down above the graphic; 1 partiton is all you need.
    Go to the options button and ensure that the partition scheme is GUID and the file system to Mac OS Extended (Journalled). Name the partiton (usually Macintosh HD), click Apply.
    When the Macintosh HD volume appears below the drive name, quit DU and see if you can then install.
    If the screen after the language screen doesn't show the menu bar, it may be necessary to use another Mac to do the job with the MB in Firewire Target Disc Mode. If it won't boot in TDM, or the MB doesn't have FireWire then it's getting very difficult.

  • What's the difference between "tar" command and ufsdump?

    what's the difference between "tar" command and ufsdump?

    Conceptually they do much the same thing.
    Except ufsdump is only for ufs filesystems and since it is able to use deeper knowledge of the internals gains some performance.
    ufsdump is multithreaded for example.

  • I locked myself out of my whole macbook i forgot the password i tried command and s but its not working is there another way also i dont have the cd

    there a message saying to access this computer you need to enter your password i forgot the password is there another way to restarted it then command and s because i try thatband it doesnt work

    You didn't say what operating system you have. If OS X 10.6 or earlier, see this (you'll need your original OS X DVD that came with the system or a retail OS X DVD). If 10.7 or later, see this.

  • PI 7.4 Single Stack - OS Command and Java Mapping Trace

    Hi,
    Since ABAP stack is not avilable how to use the OS command and also want to know how to check the trace for java mapping since sxmb_moni is not avilable.
    Please send me some link for 7.4 or 7.31 single stack document.
    Thanks
    Jignesh shah

    Jo Jignesh,
    Please see the document below.
    Mapping Trace in SAP PI 7.31 Single Stack
    Regards,
    Jannus Botha

  • I am trying to sort my bookmarks A/Z. I go to organize book marks and click that command and it puts everything A/z but when I go back to my normal page and click bookmarks it is not A/Z. One I organize it how do I save it that way?

    I am trying to sort my bookmarks A/Z. I go to organize book marks and click that command and it puts everything A/z but when I go back to my normal page and click bookmarks it is not A/Z. One I organize it how do I save it that way?

    Sorting Bookmarks in the Library window (Bookmarks > Organize Bookmarks) is for temporary display. The Bookmarks are not permanently sorted.
    To permanently sort, open the Bookmarks Sidebar (Ctrl+B opens or closes the Bookmarks Sidebar ---- Cmd+B in OSX), right-click (Cmd+click in OSX) the "Bookmarks Menu" folder and choose "Sort by Name".
    See: [[Sorting Bookmarks]] '''''~~red:and~~''''' http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    For automatic sorting of Bookmarks see the add-on SortPlaces:
    Add-on: https://addons.mozilla.org/en-US/firefox/addon/9275
    More info about SortPlaces: http://www.andyhalford.com/sortplaces/index.html

  • Having trouble in running a unix command and getting the output

    Hi,
    I am trying to run a unix command from within the java code. I am not able to make it work. I am enclosing the code and the error message that I am getting. Any help is highly appreciated.
    import java.io.*;
    public class RunCommand {
        public static void main(String args[]) {
            String s = null;
            try {
                Process p = Runtime.getRuntime().exec("cat UNIX_ASCII_TEXT_FILE | A_UNIX_PROGRAM -d");
                BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
                BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
                // read the output from the command
                System.out.println("Here is the standard output of the command:\n");
                while ((s = stdInput.readLine()) != null) {
                    System.out.println(s);
                // read any errors from the attempted command
                System.out.println("Here is the standard error of the command (if any):\n");
                while ((s = stdError.readLine()) != null) {
                    System.out.println(s);
                System.exit(0);
            catch (IOException e) {
                System.out.println("exception happened - here's what I know: ");
                e.printStackTrace();
                System.exit(-1);
    }The error message that I am getting is
    Here is the standard output of the command:
    SLu|%%$$=
    Here is the standard error of the command (if any):
    cat: cannot open |
    cat: cannot open A_UNIX_PROGRAM
    cat: cannot open -dLooks like the cat command is working and not the pipe command and the command after the pipe. But when I run the UNIX command from the command prompt I get the expected result.

    You might read this article and see if its approach works.
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Maybe you are looking for

  • Java function with Dynamic config throws null pointer exception

    hi Experts,    I am using dynamic config using java function in my message mapping.   The source message has a field called "fname".   The value of "fname" is the input to my java UDF.   The java UDF code is:    public String getDynamicFile(String fn

  • Using combination of insert into and select to create a new record in the table

    Hello: I'm trying to write a stored procedure that receives a record locator parameter and then uses this parameter to locate the record and then copy this record into the table with a few columns changed. I'll use a sample to clarify my question a b

  • Pulse Width Measurement

    Hello Friends, I am new to Labview. And now I am working on a project where I have to measure the pulse width. I have attached a pulse waveform and would like to measure the pulse width of the first rising the falling edge and log it , rest of the si

  • Frozen Video Playback in Adobe Premiere Elements 8

    I have been using the trial version of Premiere Elements and have been thinking about buying it but I have had some problems with it.  When I go to play the video that I imported from my DV camera, the viewer plays a few frames and suddenly freezes. 

  • Premiere Elements slide show error mesage

    After preparing a slide show I went to "Share" and checked "Burn Video DVD/Blue ray. When Premiere Elements loaded and went to download my project file I received an error message as follows "This type of fie is not supported, or the codec is not ins