How can I indirectly reference a worksheet?

I'd like to extract data automatically from spreadsheets that I obtain on a daily basis.
I'm pasting each spreadsheet into a new sheet with a summary sheet as sheet one so that I'll have one summary sheet for each month with thirty or so other daily sheets.
I've created a successful formula for doing this and now I want to be able to drag the formula across in the summary so that I don't need to alter it each day.
How do I do this?
Ideally, I'd like to extract the data from each daily spreadsheet without the need to copy and paste or even open it!
Is this possible with numbers?
Kind regards

As quinn suggests, if by daily "spreadsheet" you mean a separate document each day, then you will need a script. More details are needed on what your sheets look like before one can be suggested.
If you save the daily data in a separate sheet in the same document, then the INDIRECT function can help.  Here is a simple example of Table 1 in Sheet 1, which retrieves values from cell A2 in tables on Sheet 2 and Sheet 3.  For this example, I entered 2 in cell A2 of Table 1 on Sheet 2, and 3 in cell A2 of Table 1 on Sheet 3.  Once you've got the INDIRECT formula working, you can just copy it down the column, and specify in columns C and D the sheets and tables containing the source data.
Result
Formula Used in column A
Sheet reference
Table reference
2
=Sheet 2::Table 1::A2
Sheet 2
Table 1
2
=INDIRECT(C3&"::"&D3&"::A2")
Sheet 2
Table 1
3
=INDIRECT(C4&"::"&D4&"::A2")
Sheet 3
Table 1
SG

Similar Messages

  • How can i make reference field mandatory in MIRO?

    Hi Experts,
    How can i make reference field mandatory in MIRO screen.
    Reference field is not available in field status group.
    I have checkedthe reference number in RE document types in OBA7 .
    But still without entering anything in reference field in MIRO,the document is getting save.
    Any other solution??
    Regards,
    Sumeya offrin

    Hi
    Strange....what you did should work.
    Was an accounting document created for this MIRO? Was it RE type?
    Ofer

  • How can I create a new worksheet every time that one cell it´s filled

    I was looking in the references formulas and I find the formula "Direcction".
    My goal it´s to create a new worksheet everytime that some cells are filled.
    So I need one formula that alows me to put this reference and open automaticaly a new worksheet and this new table inside of this worksheet.
    It is clair the question?
    Someone can help me wiht that?

    Hi Wayne, Not really, the smaller table it´s not really important, I was trying to do the new sheet with it in that case.
    What I want is to use the dates in the row with the items markeds to create a new worksheet.
    I made an example donw here.
    I have the first table, than from it, I want to do 4 new tables
    I mean, everytime that I finish with one column I want to have a new table (in a new work sheet) with that items markeds.
    Do you think that script it´s possible to solve this?
    How can I do it?

  • How can I select the existing worksheet while using OLE2 to open the template workboo

    Source:
    application:=ole2.create_obj('Excel.Application');
    workbooks:=ole2.get_obj_property(application,'Workbooks');
    args := ole2.create_arglist;
    ole2.add_arg(args, 'c:\RptTemplate.xlt');
    workbook:=ole2.invoke_obj(workbooks,'Open',args);
    ole2.destroy_arglist(args);
    worksheets:=ole2.get_obj_property(application,'Worksheets');
    args := ole2.create_arglist;
    ole2.add_arg(args, 'Sheet1');      
    worksheet     :=ole2.invoke_obj(worksheets,'Select',args);
    ole2.destroy_arglist(args);
    Problem:
    1. While executing the above code, error -305500 occurs after executing "worksheet := ole2.invoke_obj(worksheets','Select',args)". How can I select the sheet i wanted in the template ??
    2. As I refer to the forms on-line document, it stated that the ole2 programmers documentation can provide all object types and methods that can be used with the OLE2. Does any link can provided to download the specified documentation ??

    The error is probably that your Worksheets variable is actually empty. Looking at your code I think the problem is that you try and get the value of the worksheets collection from the application then you should try and get it from the Workbooks object.

  • How can I delete references to downloads in the past

    When I want to save a download under a different name and type the first letter, Firefox shows me all the previous downloads starting with the same letter. How can I delete those references to downloads in the past as I don't like the idea that others may find out everything I've downloaded. Privacy issue!

    The Apple instructions state:
    Edit a mailbox.
    While viewing a list of messages, tap Edit. Select certain messages or tap Mark All, then:
    Tap Mark to Flag, Mark as Read or Move to Junk
    Tap Move to move selected messages into a mailbox
    Tap Trash to move them to the trash
    If you make a mistake, shake iPhone immediately to undo.
    Unfortunately, the MOVE and the Trash buttons never activate ... is there a fix for this or is this an oversight?

  • How can I save references to a file?

    Hi,
    I just ran into a really tricky problem where I'm trying to write objects to a file. The problem is like :
    class A
    B b1;
    B b2;
    The two B objects may be references to the same object, they don't have to be. How can I write this structure to a file? I want to be able to recreate it exactly, with references to objects kept intact. If the two B objects were referencing the same object I still want them to reference the same object after reading in from a file.
    Naturally, the above example is an oversimplified one. My problem is actually much more complex involving superclasses, subclasses, bla bla bla, but this is the fundamental thing I can't do.
    If anyone has any ideas whatsoever please share them. I'm really desperate, filehandling is key to my project and my teacher couldn't help me.
    Thank you to anyone that replies.

    Is there a way to do it without Serializable?
    Strictly speaking I'm allowed to use Serializable,
    I'm supposed to write out the ints and floats myself,
    but if all else fails maybe I can plead to the
    teacher. =)Then basically the teacher wants you to replicate what serialization already does.
    Presumably what you are writing is very simple.
    Say you have the following...
               class Data
                     int i;
                     String s;
               class Holder
                     Data d1;
                     Data d2;
    The first task is write out a Data. So you figure out how to write an int and how to write a String. This could look something like this in the file(all text, each item on a different line)
              int:i: 47
              string:s: test
      Next you need to identify a reference. Notice that a reference is a type, just as int and String is.
    A reference is a pointer. And you need some way to point.
    So one way is to add another element to each class which is a unique id. Thus when you write a Data out it would look like the following...
              id::  1
              int:i: 47
              string:s: test
      And then when you write out Holder it would look like this...
              id:: 3
              ref:d1:  1
              ref:d2:  2
      So your entire file for the code sample given would look like this...
              id::  1
              int:i: 47
              string:s: test
              id::  2
              int:i: 53
              string:s: test other
              id:: 3
              ref:d1:  1
              ref:d2:  2
       Keep in mind that you must write the referenced objects first. Thus Holder must always come after Data.

  • How can I dynamically reference a sheet based upon the contents of a cell

    I'm using Numbers to store specifications for various products. Each sheet stores specifications in a standard manner (i.e. same table and cell names) and the sheet is named according to the name of the product.
    On another sheet I've got a dropdown list containing the names of the product tabs. I'd like to dynamically pull data for a particular product when it's sheet is selected in the dropdown list by using the dropdown cell in a reference like:
    =B1::STC::A4, where B1 is the dropdown list and STC::A4 is the product specification table and cell reference.
    When I use this, the B1 reference fails.
    Any suggestions would be greatly appreciated.
    Thanks.

    Amos,
    you will have to use the indirect function to convert the string you are creating into a valid reference.
    Note:  The Sheet names, Table names and cell references must all match exacty.
    If the sheets are named "B1", "C1" and "D1" and the popup menu is in the cell A1 and contains the strings:
    B1
    C1
    D1
    The table name is "STC"
    then you can create a valid reference like this:
    = indirect(A1&"::STC::A4")
    if the table name were also dynamic and were stored in cell A2 you could create the reference like this:
    = indirect(A1&"::"&A2&"::A4")

  • How can I insert reference to cell on a different sheet in Numbers beta?

    In Excel or Numbers for iPad, I start typing in a cell, switch to another sheet and click a cell or range, hit enter, and I'm back on the original sheet with the cell reference inserted.  I saw documentation that it works the same way in Numbers Beta on Mac, but it doesn't.  When I leave the sheet, I'm not editing the cell anymore.
    Very frustrating.   This function is often necessary, and long formulas are tedious on iPad.  So far the most reliable method is to export back to Excel, make the change, and re-export to iCloud.

    I struggled with this same issue until this week.  You have to actually type references in cell.  And spacing is the key to making it work.  Make sure to put a space before and after each double colon.
    =SheetName :: B3
    =08 20 14 :: B3
    I you are linking to a different table in a sheet, you have to include the table name also.
    =08 20 14 :: No Shows :: D5

  • Extension API 1.5.1: How can i open a SQL Worksheet ?

    Hi,
    i try to build a simple Table API generator. Everything is finish. The only thing i need is open the generated sql script inside a SQL Worksheet for preview. I try following code:
    RaptorDBAddin.getSqlOpener().openNewEditor("select sysdate from dual;", getDBObject().getConnectionName());
    But i get following compile error:
    Error(32,9): class oracle.ide.db.model.SqlNode not found  in class de.team.sqldev.generator.GenerateAction
    My extension.xml looks like:
    <extension id="team.sqldevgenerator" version="1.0" esdk-version="1.0"
    rsbundle-class="team.sqldevgenerator.Res"
    xmlns="http://jcp.org/jsr/198/extension-manifest">
    <name>team.sqldeveloper.generator</name>
    <dependencies>
    *<import>oracle.ide</import>*
    *<import>oracle.sqldeveloper</import>*
    *<import>oracle.javacore</import>*
    </dependencies>
    <hooks>
    <feature-hook>
    <description>This Extension provide generation of database objects based on table definition such like sequence, trigger, table-api-package</description>
    </feature-hook>
    <jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
    <addins>
    <addin>de.team.sqldev.generator.GeneratorAddin</addin>
    </addins>
    </jdeveloper-hook>
    <sqldev-navigator-hook xmlns="http://xmlns.oracle.com/sqldeveloper/sqldev-navigator">
    <descriptor>/de/team/sqldev/generator/table.xml</descriptor>
    </sqldev-navigator-hook>
    </hooks>
    </extension>

    If the WMVs don't contain DRM, use a product such as VLC.
    If the WMVs do contain DRM, no Mac OS X software will open or convert them.
    (120714)

  • How can i select Reference to employee as DataType

    Hi! All,
      i am new in CAF World and trying to run the sample example available on SDN help.I created model Entity Service and trying to create attributes for Services.In one of the attribute(Keeper) of one Service(Travel), Data Type is of Service Type(ReferencetoEmployee,Employee is one Entity Service) but i am not getting any option while creating an attribute of select this kind of DataType.
    can you Help me?
    regards,
    Mithileshwar

    Hi! Maria,
      The link is -- <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/8d77556536267fe10000000a1553f7/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/43/8d77556536267fe10000000a1553f7/frameset.htm</a>

  • How can I load an Excel File to a pipe-delimited .csv File

    In SSIS I am attempting to process a .xls File and I have a C# script that is reading the .xls File. My issue is this...I have some fields that have an embedded comma in them. Those fields are designated by a double quote though ". I have included my
    C# Script. I'm just not sure if I have to indicate to it that there is a field delimeter. The " double-quote is only utilized when there is indeed an embedded comma...like "Company Name, Inc"...or "Main St., Apt. 101"
    How can I read this .xls worksheet and account for the double-quotes and the embedded comma and produce a pipe-delimeted file?
    public void Main()
    // TODO: Add your code here
    // Create NEW .CSV Files for each .XLS File in the Directory as .CSV Stubs to store the records that will be re-formatted
    // in this Script.
    try
    string StringExcelPath = (Dts.Variables["User::FilePath"].Value.ToString());
    string StringExcelFileName = (Dts.Variables["User::FileName"].Value.ToString());
    string StringFileNameExtension = Path.GetExtension(StringExcelFileName);
    if (StringFileNameExtension != ".xls")
    return;
    string StringCSVFileName = (Dts.Variables["User::FileName"].Value.ToString());
    StringCSVFileName = Path.GetFileNameWithoutExtension(StringCSVFileName);
    StringCSVFileName = (Dts.Variables["User::FilePath"].Value.ToString()) + StringCSVFileName + ".csv";
    string StringExcelWorksheetName = (Dts.Variables["User::ExcelWorksheetName"].Value.ToString());
    string StringColumnDelimeter = "|";
    int IntHeaderRowsToSkip = 0;
    //FileStream stream = File.Open(StringFullyQualifiedPathFileName, FileMode.Open, FileAccess.Read);
    //// Reading from a binary Excel file ('97-2003 format; *.xls)
    //IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);
    //// Reading from a OpenXml Excel file (2007 format; *.xlsx)
    //IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
    //// DataSet - The result of each spreadsheet will be created in the result.Tables
    //DataSet result = excelReader.AsDataSet();
    //// Free resources (IExcelDataReader is IDisposable)
    //excelReader.Close();
    if (ConvertExcelToCSV(StringExcelFileName, StringCSVFileName, StringExcelWorksheetName, StringColumnDelimeter, IntHeaderRowsToSkip) == true)
    Dts.TaskResult = (int)ScriptResults.Success;
    else
    Dts.TaskResult = (int)ScriptResults.Failure;
    catch (Exception)
    Dts.TaskResult = (int)ScriptResults.Failure;
    public static bool ConvertExcelToCSV(string sourceExcelPathAndName, string targetCSVPathAndName, string excelSheetName, string columnDelimeter, int headerRowsToSkip)
    try
    Microsoft.Office.Interop.Excel.Application ExcelApp = new Microsoft.Office.Interop.Excel.Application();
    Excel.Workbook ExcelWorkBook = ExcelApp.Workbooks.Open(
    sourceExcelPathAndName, // Filename
    0, // UpdateLinks ===> http://msdn.microsoft.com/en-us/library/office/ff194819(v=office.15).aspx
    true, // ReadOnly
    5, // Format ===> http://msdn.microsoft.com/en-us/library/office/ff194819(v=office.15).aspx
    "", // Password
    "", // WriteResPassword
    true, // IgnoreReadOnlyRecommended
    Excel.XlPlatform.xlWindows, // Origin
    "", // Delimeter
    true, // Editable
    false, // Notify
    0, // Converter
    false, // AddToMru
    false, // Local
    false // CorruptLoad
    // Gets the List of ALL Excel Worksheets within the Excel Spreadsheet
    Excel.Sheets ExcelWorkSheets = ExcelWorkBook.Worksheets;
    // Retrieves the Data from the EXACT Excel Worksheet that you want to process from
    Excel.Worksheet ExcelWorksheetToProcess = ExcelWorkSheets.get_Item(excelSheetName);
    // Gets the Range of Data from the EXACT Excel Worksheet that you want to process from
    Excel.Range ExcelWorksheetRange = ExcelWorksheetToProcess.UsedRange;
    // Sets the Cursor/Pointer at the Top Row of the Excel Worksheet
    Excel.Range ExcelRangeCurrentRow;
    // Deletes the Header Row and however many rows as specified in headerRowsToSkip
    for (int ExcelRowCount = 0; ExcelRowCount < headerRowsToSkip; ExcelRowCount++)
    ExcelRangeCurrentRow = ExcelWorksheetRange.get_Range("A1", Type.Missing).EntireRow;
    ExcelRangeCurrentRow.Delete(XlDeleteShiftDirection.xlShiftUp);
    // Replace ENTER, "\n", with a Space " "
    //ExcelWorksheetRange.Replace("\n", " ", Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // Replace comma "," with the indicated Column Delimeter variable, columnDelimeter
    ExcelWorksheetRange.Replace(",", columnDelimeter, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    // Saves Data File as .csv Format
    ExcelWorkBook.SaveAs(
    targetCSVPathAndName, // Filename (See http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook.saveas.aspx)
    XlFileFormat.xlCSVMSDOS, // FileFormat
    Type.Missing, // Password
    Type.Missing, // WriteResPassword
    Type.Missing, // ReadOnlyRecommended
    Type.Missing, // CreateBackup
    Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive, // AccessMode
    Type.Missing, // ConflictResolution
    Type.Missing, // AddToMru
    Type.Missing, // TextCodepage
    Type.Missing, // TextVisualLayout
    false // Local
    ExcelWorkBook.Close(false, Type.Missing, Type.Missing);
    ExcelApp.Quit();
    GC.WaitForPendingFinalizers();
    GC.Collect();
    System.Runtime.InteropServices.Marshal.FinalReleaseComObject(ExcelWorkSheets);
    System.Runtime.InteropServices.Marshal.FinalReleaseComObject(ExcelWorkBook);
    System.Runtime.InteropServices.Marshal.FinalReleaseComObject(ExcelApp);
    return true;
    catch (Exception exc)
    Console.WriteLine(exc.ToString());
    Console.ReadLine();
    return true;
    #region ScriptResults declaration
    /// <summary>
    /// This enum provides a convenient shorthand within the scope of this class for setting the
    /// result of the script.
    /// This code was generated automatically.
    /// </summary>
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion

    I would prefer doing this using a standard data flow task component in SSIS. I will choose an Excel source and a flat file destination for this.
    See how you can handle the inconsistent/embedded delimiters within files inside SSIS data flow
    http://visakhm.blogspot.in/2014/06/ssis-tips-handling-embedded-text.html
    http://visakhm.blogspot.in/2014/07/ssis-tips-handling-inconsistent-text.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can I call a JSP Page in other Workspace?

    I have two workspaces:
    1. Workspace1: where is my application
    2. Workspace2: where is JSP files generated by BI Beans .
    How can I make reference in a JSP page in Workspace1 to a JSP page in workspace2? this is to include the JSP pages generated by BI Beans to my appliction.
    Thanks in advance.

              Thanks Deepak but I think you don´t understand me.
              I would like the include works like a normal include. I have a jsp in my application
              and , when the client requests this jsp, in the jsp should be added the result
              of the other jsp ejecution that belong to other application in the same domain.
              Is this possible?
              Thank you very much.
              Deepak Vohra <[email protected]> wrote:
              > A Jsp from a different application is included with a relative url to
              >th=
              >e Jsp.
              ><%@ include file=3D"relative url" %>
              >
              >A Jsp could be included with request parameter.
              > <jsp:include page=3D'<%=3D request.getParameter("incFile") %>' />
              >
              >javilla wrote:
              >
              >> Hi,
              >>
              >> I'd like know if it=B4s possible to include jsp or servlet from differe=
              >nt applications.
              >
              

  • How can I get command values from a VI executed by reference ? NEWBIE

    Hi,
    I'm running a sub-vi in a "Secondary Front Face" (excuse for the
    translation if not correct, I'm working on a French version). In order
    to run this VI, I pass a reference. All is working fine but I don't
    know how can I get the values entered by the user in this VI ?
    Actually I run a main VI wich contains a "Secondary Front Face" (this
    SFF is contained in a tabbed pane). In my diagramm, I pass a reference
    to another VI (by the name of the file *.vi). If my user enter a word
    in a text field, I would like to be able to get it in my main app.
    Thanks for your help.

    Hello,
    You might take a look at the following tutorial for more information about calling a VI by reference. It's got some great visuals and examples.
    Tutorial: Calling a VI by Reference
    You might also consider just calling the secondary VI as a simple subVI, if you can spare the memory space when loading the main application, as this is the easiest way to input and output VI values.
    I hope this helps! Please let me know if I can be of any further assistance.
    Liz F
    National Instruments

  • You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You changed the order of the menu for "Open in a new window" or "Open in new Tab", How can I change it back? Or how can I omit any reference to tabs? I do not use them at all.

    You can use the Menu Editor add-on to rearrange or remove menu items - https://addons.mozilla.org/firefox/addon/menu-editor

  • How can I reference more than one jar file

    hi, In an applet, I use
    Archive = "foo.jar" to reference this jar file.
    But how can I reference more than one file?
    Thanks.

    Suggestion: spend a few minutes reading the tutorials.
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html
    You can specify multiple archive files by separating them with commas:
    <APPLET CODE="myapplet.class" ARCHIVE="file1, file2"     WIDTH=anInt HEIGHT=anInt>
    </APPLET>

Maybe you are looking for