hi ,
i have an excel data is already there what i need to do is need to add A in first column if there is data in row
sample excel
how to work on this
hi ,
i have an excel data is already there what i need to do is need to add A in first column if there is data in row
sample excel
how to work on this
You can do it in various way :
Good luck
Below are the Steps to Follow :
1.Take Excel Application scope and Give the path of Excel
2. Read Range : Sheet Name as DATA and Range as “” (blank) - This will read the complete sheet and you will get a DataTable as Output say : dtData
3. Take a For each of DataTable
4. INside the foreach - row :
5.Take an IF and write your check . e.g : to check if Name column has value we write String.IsNullOrEmpty( row(“NAME”)) - Any condition - Here I am checking if Name Column is null or Empty:
6. Now for the true and False branch - you can specify what you have to do … lets says … you want to assign value to ACTION
7. we take an assign activty and write row(“ACTION”)=“NewVAlue”.
–
Mukesh
Hi ,
write row activity is not there i have used excel application
and write range
but its typing A only in A2 how i get it to other rows
okay , so inside the for each loop - you have to keep a counter.
–
Mukesh
Please verify the scope of Vcount Variable .
It should NOT be the Excel application scope … Increase the Scope of the variable to complete xaml file.
Also , the “A”+vcount.toString Should come in the Cell position where you have written A2.refer the below screenshot
–
Mukesh
IT WORKED it was mine mistake
@mukeshkala hi
if i 80 to 90 column names and i need to check for the same then how we need to do
For 80 Columns - This Approach can work provided the time constraint.
Also , we can think of using Orchestrator Queues.
Another approach could be First Getting all the Records in DataTable and then Inside DataTable only - we apply filter and update the column in DataTable Itself. Once completed - Paste the Datatable at the end in Excel.
–
Mukesh
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.