Various table options on one excel sheet

I am looking to create an excel document that contains a drop down menu for each month of the year, and when the desired month is selected in the drop down menu, a table will appear with the number of days in the month. As some months have different
amount of days some of the tables will be different (hence why I want the different various table options). The excel document will be for a timesheet were clients input the amount of hours they have worked in each month.
I have tried the 'Pivot Table' but I don't think this is what I am looking for.
Thanks

Hi,
>> I am looking to create an excel document that contains a drop down menu for each month of the year, and when the desired month is selected in the drop down menu, a table will appear with the number of days in the month
You can using Data Validation to create a drop down menu for users to select the month.
Data—Data Validation—
There is a sample code , which generate a table based on the dropdown box selection.
Sub  CreateTable()
MonthArray1 = Array("Jan", "Mar", "May", ...)
Dim MyRange As Range
Set MyRange = Range("A2")
Dim pos
Dim amount
Range("D4").Value = "Date"
Range("E4").Value = "Hours"
pos = Application.Match(MyRange.Value, MonthArray1, False)
If Not IsError(pos) Then
amount = 35
Else
 If MyRange.Value2 = "Feb" Then
    amount = 32
  Else
    amount = 34
  End If
End If
   For i = 5 To amount
   Range("D" & i).Value = 2015 & "-" & Range("A2").Value2 & "-" & (i - 4)
   Next I
 End Sub
And I'm not sure whether you are looking for a VBA solution, if not, we will suggest you posting this question in Microsoft Community Office forum
Hope this will help you .
Best Regards
Lan
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

  • Saving the table content into one excel sheet

    Hello,
    I have got following problem:
    I'm measuring data with a DAQ card. I'm interested in the min and max value of the measured data. Therefore I'm using the Amplitude and Level measurent function. Its no problem to display the results in the graphical interface. What causes me trouble is to save the content of the displayed table into some kind of file. Anybody know a solution?
    Thanks!

    The problem is that I use the descriped min/max function. If I write it to a text file I get a lot of additional information every second.
    Following example shows what is written to the measurement file:
    Channels 6      
    Samples 1 1 1 1 1 1 
    Date 2010/03/05 2010/03/05 2010/03/05 2010/03/05 2010/03/05 2010/03/05 
    Time 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 14:26:48.9938435554504394532 
    Y_Unit_Label Volts Volts Ampere Ampere Ampere Volts 
    X_Dimension Time Time Time Time Time Time 
    X0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 0.0000000000000000E+0 
    Delta_X 0.001000 0.001000 0.001000 0.001000 0.001000 0.001000 
    ***End_of_Header***       
    X_Value U_1 (Positive Peak) U_2 (Positive Peak) I_3(Positive Peak) I_1 (Positive Peak) I_2 (Positive Peak) U_3(Positive Peak) Comment
    0.000000 3.461911 3.189588 0.115779 2.103480 0.739258 1.206654
    This kind of information is not displayed if I visualize it in a table. The table only shows me the time and the corresponding min/max values. These values are updated every second.
    I tried to write it to a spreadsheet,  this approach was also not successful since a new spreadsheet was opened/generated every second respectively every time a new min/max value was aquired.
    I would like to safe the data fro, the table to a file without the additionál information showed above in the example.
    Thanks!

  • How can I download to one excel sheet from more than two table?

    Hi.
    as you know
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DATAPROVIDER_T1' >
    this script can make download excel sheet which is same cotents of table or chart in web template.
    but if template has more than two tables how can we get excel sheet from tables?
    <SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER_1='DATAPROVIDER_T1' DATA_PROVIDER_2='DATAPROVIDER_T2'>
    I hope this gonna work but result was fail same as I expected.
    is there any way put two tables download one excel sheet?

    Welcome to SDN.
    Post this in Business Explorer forum for quicker resposne.
    SAP Business Explorer (SAP BEx)
    Regards
    Raja

  • Export Multiple tables into a single Excel Sheet

    We have a use case where we need to export multiple tables into an excel sheet. The exportCollectionActionListener only allows one table (which is provided in the exportedId attribute) to be exported into Excel. So is there a method provided by adf to export more that one table into excel ?

    dvohra,
    I need to export multiple tables into a single excel sheet. These links only show how to export a single table to an excel sheet.
    I have tried out this : http://iadvise.blogspot.com/2007/04/export-adf-table-to-excel.html. But i am not getting the popup to save the file. So i can't find out where the file got created.

  • How to put the data from one excel sheet in another excel sheet

    hi ,
    I want put the data from one excel sheet in another excel sheet in seq. order Eg: I have one excel sheet in which i have 3 col. Name , Sno. , Email along with data .I want to put data from this sheet to another excel sheet in the following orders of col. Sno,Name, Email .
    While loading data in another sheet , i have to perform validation like char field should n't contain numeric values and vice versa .
    Let me know on this soon ..
    regards
    Prashant

    Well, you can issue separate queries with the ordering you need from each tab in the spreadhseet. You can open an ODBC connection from a VBA macro, select a sheet, run a query, select another sheet and run another query. As for the validation, you can do this in Oracle via stored procedures or again in VBA code.

  • How to Export Table Data to a excel sheet using OPENROWSET

    Hi Team,
    I would like to Export table data to a excel sheet by using "OPENROWSET" command in SQL Server but I am getting the
    below error message
    Column name or number of supplied values does not match table definition.
    Please help me on how to export the table data to an excel sheet by using "OPENROWSET" in SQL Server

    I know this is old so I assume you've fixed this. However, for anyone else looking at this forum, I'd recommend using a union or a table join.
    Select a.1, a.2, a.3 from a <where clause>
    union
    Select b.1, b.2, b.3 from b <where clause>
    or
    use a type of join.
    If both table selects return the same number of columns but different data just reference them as a variable like fred, and Ted
    Select fred.1, fred.2, fred.3 from (Select a.1, a.2, a.3 from a) fred
    union
    Select Ted.1, Ted.2, Ted.3 from (Select b.1, b.2, b.3 from b) Ted
    or again some type of join of these two sets
    Select * from
    (Select a.1, a.2, a.3 from a) a
    INNER JOIN (Select b.1, b.2, b.3 from b) b ON b.1 = a.1
    This would give you 6 columns of data a1-3, and b1-3
    We don't know from your description what format your spreadsheet is in. These just give you the idea. Think of the sub-selects as a Table. It's just named "fred". Once your select holds all the data you need, then export the data to the spreadsheet. Use
    the horsepower of the database before trying to do a multple update of the same spreadsheet.
    Does this give you enough to fix what you were trying to do?   

  • Exporting table data to MS-Excel Sheet(enhanced Web Dynpro Binary Cache)

    Hi experts,
    I am trying to implement the functionality of downloading the contents of a webdynpro screen to excel sheet. In order to implement the functionality of excel download i used the following blog.
    [/people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache ]
    In this blog they have used javaexcel api to implement the excel functionality. I face some problems
    while implementing it.
    i) The use of "Label label = new Label(0, 2, "A label record");
    sheet.addCell(label); " is not supported. It says that a constructor for label with
    (int, int, str) parameter is not available.
    ii) Then i implemented it with "Label label = new Label("A label record"); " Then i deployed it. I got a runtime exception saying that " java.lang.ClassNotFoundException: jxl.format.CellFormat ".
    This cellFormat is an interface available in the jar. I am using jexcelapi_2_6_9_1.4 version. Do i have to
    download some other versions.
    Please help. Thanks in advance.
    Regards
    Ramanan

    Hi,
    Please check the following steps while creating External Library DC:
    1) creating an Extneral library DC
    2) import the JARs to the libraries folder of the External Library DC project
    3) Right-click on each of the JARs imported to the project and add them to the public part.
    This DC is now ready to be used as a build-time reference that will allow CBS to build the "main" Web Dynpro application that will use the external libraries. Next, we have to create a new Web Dynpro DC to hold the class files here are the steps:
    1) Create a new Web Dynpro DC
    2) Create a new public part, selecting the "Can be packaged into other build results" option
    3) Rename the JARs as Zip files and extrct the full content (folders and class files) to your root folder
    4) Import the folders and files to the src/packages folder
    5) Expand the public part node that was created and select the "Entities" node, right-click it and choose Edit
    6) In the Entity Type list select the "Folder" option then in the selected entities tree pick each of the folders that you imported in step 5 (above)
    7) Now do a DC build and a DC deploy of the project
    Then check-in, activate, and release any activities you have associated with creating these two projects. In the DC perspective, refresh the Active DCs and Inactive DCs to ensure that both new DCs appear in the Active list. Now we have to setup the references to these DCs in our main Web Dynpro application. To do this, follow these steps:
    1) Open the Web Dynpro perspective and right click the Used DCs node then choose "Add Used DC.."
    2) Pick the public part of the External Library DC that we created (first) and set it to have a Build Time dependency
    3) Again, right click the Used DCs node and choose "Add Used DC.." then choose the public part of the Web Dynpro DC that we created and give it a Run Time dependecy (weak) and click finish.
    4) Now, due to what I think is a bug. You must right click on the Web Dynpro "used DC" that you just added in the previous step, and set the run time dependency again (it seems to revert to the default values for some reason)
    5) Now do a DC build and a DC deploy on the "main" web dynpro application.
    6) Check-in, activate, and release any activities associated with adding these references and then others on your team may use the classes in the external libraries within the Web Dynpro project.
    Regards.
    Rajat

  • Downloading table control data in excel sheet

    Hi experts,
    I have written a module pool pgm which fetches the data from a table and filled in a table control. Now my requirement is to download this (table control data) in an excel sheet like we download the ALV report data in an excel sheet.
    Can the same downloading option be provided in module pool pgm also?
    Pls tell me how it is possible to download the table control data in an excel sheet in module pool?
    Regards,
    Shanthi

    Hi Shanthi,
    As you can display data in Table Control means data is available in Internal Table
    Give Download Button
    case ok_code.
    when 'DOWN'.
          CALL FUNCTION 'F4_FILENAME'
            IMPORTING
              file_name = path1.
          CALL FUNCTION 'GUI_DOWNLOAD' " Go through FM Documentatin for more Info
            EXPORTING
              filename              = path1
              filetype              = 'ASC'
              write_field_separator = 'X'
            TABLES
              data_tab              = ist_final
              fieldnames            = ist_fc_download " You can provide the Column Heading
            EXCEPTIONS
              OTHERS                = 22.
    endcase.
    Cheerz
    Ram
    Edited by: Rob Burbank on Mar 20, 2010 5:04 PM

  • How to show a table data into an excel sheet

    Hi
    I have  a requiremet of generate an excel sheet with the data that is there in the table...
    I have an inputfiled ..if i enter data and clicks search the data related to it is displayed in table.here i want to generate an excel sheet with the data that is there in the table
    Regards
    Padma

    Hi Rekha,
    i have a dout in  Exporting Table Data Using On-Demand Streams - SAP NW 7.0 which is the subdivision (B) .
    In this he created Excel node with Resource--type(Resource)
                                                      ResourceOnDemandStreamCal--type(com.sap.tc.webdynpro.programmodel.api.IWDInputStream)
    1)i went to LocalDictonaries and in that com.sap.ide.webdynpro.UiElements--In that i dont have Resource
    2)i typed com.sap.tc.webdynpro.programmodel.api.IWDInputStream in native type
    but nothing is comm
    how to get these types
    Regars
    Padma

  • Can I convert many XMLs into one Excel Sheet?

    Hi:
    I get 20-30 XMLs daily from client and I want them all converted and merged in single excel sheet through AppleScript. Can any one help?
    Thank you.

    Hi:
    I get 20-30 XMLs daily from client and I want them all converted and merged in single excel sheet through AppleScript. Can any one help?
    Thank you.

  • Exporting ADF Table Headers to an EXCEL sheet

    Hello,
    We have an adf table (Jdev10.1.3g). We need to export the Headers of the table to an excel sheet. I have hold on the headers and can put it in an array/arrayList. Basically, I need help with how to browse to the file where user wants to store the table headers._ I think once we can browse to the file location, we can use the POI HSSF API as we have for the task below. Any code examples are welcome.
    We are already SUCCESSFULLY uploading the contents of the excel sheet (using <af:inputFile> tag) and writing the contents to adf table. Lucas Jellema's article and code example was very helpful.
    Thanks,

    Hi,
    this thread is duplicate of this.... Exporting ADF table Headers to Excel
    Please be patience untill the reply comes.... dont duplicate the thread its meaningless
    Regards,
    Suganth.G

  • Collating PDFs with similar table structure into one excel / text file

    Hi, I'm using Adobe Acrobat X v10.1.1.  I have multiple PDFs which aswell as containing pictures, contain the same table of data in each one.  This is in the same format in each one and I want to extract each table's data and collate into one text file(This is a small table of data, 3 x 3).  I explored the option of exporting FDF data and then using a 3rd party tool to convert all into an excel file, however, the forms option in my tools menu won't expand.  I am possible making this more difficult for myself than is necessary.  Has anyone attempted something similar before and what would recommendations of approach be?
    Thanks for any help.
    Al.

    use logical database SDF, nodes ska1 and  skc1c
    A.

  • Please see this post : Export to more than one excel sheet.

    Hello Marvel team,
    I have already post this question, but no answer :
    I am looking to do something related to the export of data to an excel file and I am asking if one of you has do something like the following :
    I need, on a click on a button export some data to more than one sheet in the same excel file.
    I looked to what askTom propose, with the sylk format:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:728625409049
    and this can resolve my problem in part, with sylk I can have what I want but only in one sheet and for me it's very important that I can export to more than one sheet in the same excel file.
    Thanks for any help!
    Jina.

    XML may be what you need.
    <?xml version="1.0"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
    <WindowHeight>8580</WindowHeight>
    <WindowWidth>15180</WindowWidth>
    <WindowTopX>120</WindowTopX>
    <WindowTopY>45</WindowTopY>
    <ProtectStructure>False</ProtectStructure>
    <ProtectWindows>False</ProtectWindows>
    </ExcelWorkbook>
    <Styles>
    <Style ss:ID="Default" ss:Name="Normal">
    <Alignment ss:Vertical="Bottom"/>
    <Borders/>
    <Font/>
    <Interior/>
    <NumberFormat/>
    <Protection/>
    </Style>
    </Styles>
    <Worksheet ss:Name="sheet1">
    <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="3" x:FullColumns="1"
    x:FullRows="1">
    <Row>
    <Cell><Data ss:Type="String">This is on sheet 1</Data></Cell>
    </Row>
    <Row>
    <Cell><Data ss:Type="String">sheet1</Data></Cell>
    <Cell><Data ss:Type="String">col 2</Data></Cell>
    </Row>
    <Row>
    <Cell><Data ss:Type="String">row3</Data></Cell>
    <Cell><Data ss:Type="String">3,2</Data></Cell>
    </Row>
    </Table>
    <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
    <Selected/>
    <Panes>
    <Pane>
    <Number>3</Number>
    <ActiveRow>19</ActiveRow>
    <ActiveCol>8</ActiveCol>
    </Pane>
    </Panes>
    <ProtectObjects>False</ProtectObjects>
    <ProtectScenarios>False</ProtectScenarios>
    </WorksheetOptions>
    </Worksheet>
    <Worksheet ss:Name="Sheet2">
    <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="3" x:FullColumns="1"
    x:FullRows="1">
    <Row>
    <Cell><Data ss:Type="String">This is on sheet 2</Data></Cell>
    </Row>
    <Row>
    <Cell><Data ss:Type="String">sheet2</Data></Cell>
    <Cell><Data ss:Type="String">row2</Data></Cell>
    </Row>
    <Row>
    <Cell><Data ss:Type="String">col1</Data></Cell>
    <Cell><Data ss:Type="String">col2row3</Data></Cell>
    </Row>
    </Table>
    <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
    <Panes>
    <Pane>
    <Number>3</Number>
    <ActiveRow>3</ActiveRow>
    <ActiveCol>1</ActiveCol>
    </Pane>
    </Panes>
    <ProtectObjects>False</ProtectObjects>
    <ProtectScenarios>False</ProtectScenarios>
    </WorksheetOptions>
    </Worksheet>
    </Workbook>

  • Export to mora than one excel sheet.

    Hello Marvel team,
    I am looking to do something related to the export of data to an excel file and I am asking if one of you has do something like the following :
    I need, on a click on a button export some data to more than one sheet in the same excel file.
    I looked to what askTom propose, with the sylk format:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:728625409049
    and this can resolve my problem in part, with sylk I can have what I want but only in one sheet and for me it's very important that I can export to more than one sheet in the same excel file.
    Thanks for any help!
    Jina.

    Using POI, you can create a native Excel Workbook with more than one Worksheet.
    For a first step using POI follow the steps posted under:
    "Export to Microsoft Excel from PLSQL Procedure"
    Re: Export to Microsoft Excel from PLSQL Procedure
    The following examples creates an excel with more than one sheet (and does a little bit of formating).
    Load this as described above to your 10g Database and build a pl/sql wrapper function around it:
    -- bof --
    import java.io.*;
    import org.apache.poi.hssf.usermodel.*;
    import org.apache.poi.hssf.util.*;
    public class HelloExcel {
    public static void main(String[] args) {
    HelloExcel d = new HelloExcel();
    d.write(null);
    public static String write(String text) {
    String result = "successful";
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet1 = wb.createSheet("first sheet");
    HSSFSheet sheet2 = wb.createSheet("second sheet");
    // style
    HSSFCellStyle style = wb.createCellStyle();
    style.setFillForegroundColor(HSSFColor.LIME.index);
    style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
    HSSFFont font = wb.createFont();
    font.setColor(HSSFColor.RED.index);
    style.setFont(font);
    HSSFRow row = null;
    HSSFCell cell = null;
    // Create a row and put some cells in it. Rows are 0 based.
    row = sheet1.createRow((short)0);
    // Create a cell and put a value in it.
    cell = row.createCell((short)0);
    cell.setCellValue(1);
    cell.setCellStyle(style);
    // Or do it on one line.
    row.createCell((short)1).setCellValue(1.1);
    row.createCell((short)2).setCellValue("This is a string 1");
    row.createCell((short)3).setCellValue(true);
    // Create a row and put some cells in it. Rows are 0 based.
    row = sheet2.createRow((short)0);
    // Create a cell and put a value in it.
    cell = row.createCell((short)0);
    cell.setCellValue(1);
    // Or do it on one line.
    row.createCell((short)1).setCellValue(1.2);
    row.createCell((short)2).setCellValue("This is a string 2");
    row.createCell((short)3).setCellValue(false);
    // Write the output to a file
    try {
    FileOutputStream fileOut = new FileOutputStream("c:\\temp\\HelloExcel.xls");
    wb.write(fileOut);
    fileOut.close();
    } catch(Exception ex) {
    result = ex.getMessage();
    return result;
    -- eof --
    hope that helps,
    Willi

  • Exporting table data to MS-Excel Sheet 2000

    Dear All,
    I just wanted to export my webdynpro table data to MS-XL 2000 version.
    I know how to do it in XL-2003.
    pl help.
    Thanks & Regards
    Manoj Sahoo

    Hi Manoj,
    Go through this link to export the data to MS-Excel, it also provides you the sample application and PDF.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/1208c2cd-0401-0010-4ab6-f4736074acc6</a>
    Regards,
    Jhansi

Maybe you are looking for

  • In vendor line item not showing withholding tax amount and withholding base

    Hi Gurus,           When i am using T,code FBL1n for details clear item,in line item doesn't showing withholding tax amount and withholding base amount for some vendors when i am using FB03 there showing tax amount and base amount,in option is there.

  • Too many files in root directory. How to split them up?

    Hi, I made my site http://isuckatgolf.net in Dreamwever cs3. Having no idea what I was doing when I started 5 years ago all images and pages have been uploaded directly to the root folder/directory. My host GoDaddy.com just sent me a notice that I'm

  • Asha 201 - Disconnect from internet

    I have searched other threads but cannot find an answer.  I have no applications running but the internet is running.  How do I disconnect from the Internet?  If this is directly related to WhatsApp, then how do I switch it off.  Their webside is not

  • Backing up the Calendar Server

    Do I need to use anything except uniarch to backup Calendar Server? <P> Because some of the Calendar Server information resides on the Directory Server, it is important to backup the Directory Server at the same time that you backup the Calendar Serv

  • Hardware Inventory - Installed Executable (SMS_InstalledExcutable)

    I am curious to know which .exe files ccm client will record and report to mp then they will be available in database. In my case,we have about 1000 ccm clients which were enable HI for Installed Excutable class and I create a collection which purpos