KAPOW

Would you like to react to this message? Create an account in a few clicks or log in to continue.
KAPOW

Welcome to the Kapow forum. Here you can get help, use your skills to help others and enjoy hanging out in the company of other Kapow Robot Developers.


3 posters

    Excel Kapow

    avatar
    thiri


    Posts : 1
    Points : 2766
    Join date : 2016-10-05

    Excel Kapow Empty Excel Kapow

    Post by thiri Wed Oct 05, 2016 2:25 pm

    I want to do a robot that can extract and loop data from excel file which i created.
    I do not understand how will do.Please help me.
    Shyam Kumar
    Shyam Kumar
    Ranks


    Posts : 113
    Points : 4144
    Join date : 2013-07-05
    Location : Kerala, India

    Excel Kapow Empty Re: Excel Kapow

    Post by Shyam Kumar Fri Oct 07, 2016 3:37 pm

    Hi,

    In kapow lots of functions we can do in excel, you are asking only to loop and extract each data.

    Here i am share this working process

    Select one 'Load File' Action step, then browse the excel file or give the location path of that file (eg: /root/Desktop/Excel_file.xls)

    After that you can select loop action based on your needs. If you need to loop each sheets you can use 'Loop in Excel' Action step ('Loop Sheets')

    If you need to loop each rows you can use 'Loop in Excel' Action step ('Loop Rows), then you can extract each row data.

    Excel Kapow Excel10

    The Loop in Excel action loops through different elements of a spreadsheet. An element in this context could be a sheet, a column, a row or a cell and is identified by the step's Range Finder. In each iteration, the appropriate element is marked as a named range.


    The Loop in Excel action can be configured using the following
    properties,
    Loop Over:
    This determines what kind of element the action will loop over. There are 4 possibilities for this:
    Sheets
    The action will loop over sheets in the spreadsheet document. No range finder is needed for this choice.
    Columns
    The action will loop over the columns in the range found by the range finder.
    Rows
    The action will loop over the rows in the range found by the range finder.
    Cells
    The action will loop over the cells in the range found by the range finder.
    First Index
    The number of the first element to include in the loop. The number can be specified to count either forward from the first element, or backward from the last element.
    Last Index
    The number of the last element to include in the loop. The number can be specified to count either forward from the first element, or backward from the last element.
    Increment
    Make the loop skip elements. For example, if an increment of 2 is specified, the loop will skip every second element.
    Loop Backwards
    Select that the loop should loop through the matching elements in reverse order. Please note that the loop will go through exactly the same elements as if it were looping forward just in reversed order. This means that the First Index is referring to first element in the selection of elements to loop over and not the first element visited when looping (actually it will be the last when looping backwards).
    Range Name
    Has two options, Auto or Named.

    Auto gives the range a name which is number. The first Auto-numbered range will have number 1, the next number 2 etc. Note that the number may change if additional Auto-numbered ranges are inserted before this step (on the same page).
    Named gives the range a fixed and explicitly stated name, which has several advantages:

    • It is easier to remember what the named range identifies if it has a well-chosen name

    • An explicitly named range is not affected if another named range is inserted before it

    • If you use the same name again in Set Named Range, the name will simply be made to refer to the new range (useful for stateful in-page looping)

    Shyam Kumar
    Shyam Kumar
    Ranks


    Posts : 113
    Points : 4144
    Join date : 2013-07-05
    Location : Kerala, India

    Excel Kapow Empty Re: Excel Kapow

    Post by Shyam Kumar Fri Jan 20, 2017 3:51 pm

    How to Extract Content from Excel


    Design Studio has three steps for extracting content from a spreadsheet:

    • The Extract Cell step is used to extract text content from the found range.
    • The Extract Sheet name step is used to extract the sheet name of the sheet of the found range.
    • The Extract As HTML step is used to extract the found range of a spreadsheet as an HTML page containing a table with the cells of the range into a variable.

    For the Extract Cell and Extract As HTML steps you can specify what to extract from the cells. This is controlled by the value of the Extract This option. The choice here is the same as the View Modes for the Spreadsheet View. The possible options are:
    Formatted Values:
    The extracted values are what you see in Excel, e.g. the values of dates and numbers are extracted formatted, which means that numbers may be with less decimals than the actual values of the cells.
    Plain Values:
    The extracted values are the actual values that Excel would show if the values of the cells were not formatted, e.g. numbers would not have rounding of decimals.
    Formulas:
    If a cell contains a formula then this is extracted or otherwise the same value as for the Plain Values option is extracted.

    If you create the steps by right clicking in the Spreadsheet View then the value of the Extract This is set to the value of the selected View Mode. That is, if you have set the View Mode to Formulas and then right click in the page view and select Extract > Extract Text from the popup menu (into a text variable) then the Extract This option of the Extract Cell action step is set to Formulas.
    Often you need to reformat (or normalize) the extracted content, and the Extract Cell action allow you to do this by configuring a list of data converters.
    avatar
    Bobi


    Posts : 29
    Points : 2100
    Join date : 2018-10-01

    Excel Kapow Empty Re: Excel Kapow

    Post by Bobi Tue May 14, 2019 6:23 pm

    Shyam Kumar wrote:

    How to Extract Content from Excel



    Design Studio has three steps for extracting content from a spreadsheet:

    • The Extract Cell step is used to extract text content from the found range.
    • The Extract Sheet name step is used to extract the sheet name of the sheet of the found range.
    • The Extract As HTML step is used to extract the found range of a spreadsheet as an HTML page containing a table with the cells of the range into a variable.

    For the Extract Cell and Extract As HTML steps you can specify what to extract from the cells. This is controlled by the value of the Extract This option. The choice here is the same as the View Modes for the Spreadsheet View. The possible options are:
    Formatted Values:
    The extracted values are what you see in Excel, e.g. the values of dates and numbers are extracted formatted, which means that numbers may be with less decimals than the actual values of the cells.
    Plain Values:
    The extracted values are the actual values that Excel would show if the values of the cells were not formatted, e.g. numbers would not have rounding of decimals.
    Formulas:
    If a cell contains a formula then this is extracted or otherwise the same value as for the Plain Values option is extracted.

    If you create the steps by right clicking in the Spreadsheet View then the value of the Extract This is set to the value of the selected View Mode. That is, if you have set the View Mode to Formulas and then right click in the page view and select Extract > Extract Text from the popup menu (into a text variable) then the Extract This option of the Extract Cell action step is set to Formulas.
    Often you need to reformat (or normalize) the extracted content, and the Extract Cell action allow you to do this by configuring a list of data converters.

    I have a loop that goes through each sheet. How can I get the name of the sheet on which the loop is located?

    Sponsored content


    Excel Kapow Empty Re: Excel Kapow

    Post by Sponsored content


      Current date/time is Mon Apr 29, 2024 4:03 pm