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.


2 posters

    Excel Automation

    avatar
    abhilashahlawat


    Posts : 4
    Points : 1905
    Join date : 2019-02-21

    Excel Automation Empty Excel Automation

    Post by abhilashahlawat Thu Feb 21, 2019 6:30 pm

    Hi all,

    Hope you all are doing great. This is my first post. Thank you all for creating and contributing to this forum. Really helpful.

    I am trying to automate a process which includes multiple excel sheets. Normalization of these excel sheets is required which includes various excel features mentioned below:

    1. Sorting
    2. Removing Duplicates
    3. Filtering - Normal and text filters
    4. VLOOKUP
    5. Highlighting Rows


    I am not able to use Excel features when I open an Excel sheet in Kapow. Could any of you help regarding the same? Thanks in advance!! Cheers!
    avatar
    Kuan


    Posts : 5
    Points : 2100
    Join date : 2018-08-13

    Excel Automation Empty Re: Excel Automation

    Post by Kuan Fri Feb 22, 2019 8:47 am

    Hi,


    Normally I will store my excel data into SQL database, then when query from database I am able to sort & filtering.

    This is the SQL filtering code. Here is the link.
    Code:
    SELECT column1, column2,
    FROM table_name
    WHERE condition;


    Sorting Codelink.
    Code:
    SELECT column1, column2,
    FROM table_name
    ORDER BY column1, column2, ... ASC|DESC;


    Duplicate Codelink.
    Code:
    SELECT DISTINCT column1, column2,
    FROM table_name;

    To insert formula, you can use the build in function Picture 1.
    If your formula consist of cell number that will constantly change, then assign a variable and use expression to write the formula (Picture 2)

    Picture 1
    Excel Automation 310


    For example:

    Within the formula "VLOOKUP(H1,CC,2,0)", the cell number is always changing.
    Code:
    VLOOKUP(H"+Test+",CC,2,0)

    Hence, the "Test" in this case is a Variant that replace the number.

    Picture 2
    Excel Automation 411

    I have yet to explore on the highlighting row. 
    However, hope the above explanation could help you.
    If you explore a better way share with us.

    Kind Regards,
    Kuan
    avatar
    abhilashahlawat


    Posts : 4
    Points : 1905
    Join date : 2019-02-21

    Excel Automation Empty Re: Excel Automation

    Post by abhilashahlawat Fri Feb 22, 2019 4:52 pm

    Thank You so much Kuan.

    Let me try this out and I would let you know if I find a different approach.

    Meanwhile, I was trying to work with Google sheets in order to use the excel features directly. I am facing below error:

    "This version of Google Chrome is no longer supported. Please upgrade to a supported browser Dismiss


    Please find the details below:


    • Google Chrome is up to date

               Version 72.0.3626.119 (Official Build) (64-bit)


    • Design Studio 10.3.0.0 166



    Thank you so much for your help.
    avatar
    abhilashahlawat


    Posts : 4
    Points : 1905
    Join date : 2019-02-21

    Excel Automation Empty Re: Excel Automation

    Post by abhilashahlawat Mon Feb 25, 2019 12:12 pm

    Hi Kuan,

    Thank You so much for the help. Could you please help me with suggestions to automate excel features directly in Kapow and not by using the database?

    I have not set up any database yet and was trying to create snippets for the excel actions:


    1. Sorting

    2. Removing Duplicates

    3. Filtering - Normal and text filters

    4. VLOOKUP

    5. Highlighting Rows




    Could you please help me with that?

    Sponsored content


    Excel Automation Empty Re: Excel Automation

    Post by Sponsored content


      Current date/time is Thu May 02, 2024 8:24 pm