Dev2
(Dev2)
June 11, 2022, 9:28am
1
Hi All,
I am tryin to read the sub header dynamically in excel , depending on the current and previse month.
how i can get the value of May - mark , May - subject , Jan - mark and Jan mark.
.
dynamically, in each month i need to get the data.
Thank you.
1 Like
Hey @Dev2
It’s possible
But how is that dynamic part in your case ?
Thanks
#nK
Hello @Dev2
Are you using this template only for the automation purpose or you are sharing to someone else as well?
If its a static template for automation, will it be possible to keep column names as “January Mark”,“January Subject”," February Mark" etc…
Then you can easily do that.
Dev2
(Dev2)
June 11, 2022, 4:36pm
4
Hi @Nithinkrishna
i need to get the data for the current month,
Dev2
(Dev2)
June 11, 2022, 4:37pm
5
Hi @Rahul_Unnikrishnan
yes, i am sharing this template .
is there another way to do that ?
@Dev2 Refer to the below post. I think the approach mentioned in the post can help to solve your requirement.
@Palaniyappan
1.How i do only write the rows and under lets say, header 2 into the data table and ignore header 1?
2.Skipping a few columns as well ( only columns A,B,G,D for example, filtering by the header of the columns instead of the letters as it differs from excel to excel )
1 Like
Dev2
(Dev2)
June 11, 2022, 7:03pm
7
i was checked that but i am not able to solve it but i will check that again, Thank you.
Okay got it, so you wanna get the data for the current month.
So kindly try this,
Find the current month in number format as below.
int_ExcelColumnIndex = Now.Month + Now.Month - 1
Find the Excel Address
str_ExcelRange = Chr(int_ExcelColumnIndex).ToString + ":" + Chr(int_ExcelColumnIndex + 1).ToString
Pass the above range calculated into the Excel Read Range - Range property.
Hope this helps.
Thanks
#nK
Dev2
(Dev2)
June 13, 2022, 8:24am
9
Thank you @Nithinkrishna
Pass the above range calculated into the Excel Read Range - Range property.
can you please clarification this point.
1 Like
Hey @Dev2
You have Read Range Activity for workbook or Excel right - In that there is a Range field where you can provide the range to read in which you need to pass the above dynamically calculated variable.
Hope that helps.
Thanks
#nK
1 Like