How to write value corresponding to any specific column name where all column has One header
-
Use excel process scope activity - Find/Replace Value activity to find the desired column. This Find/Replace Value activity will give you the B column cell address.
-
Use this regex to get the row number from the address string we got from step 1
strRowNumber = System.Text.RegularExpressions.Regex.Matches(strCellAddress, "\d+")(0).Value
- Now Use Write Cell activity and pass this
"E"+strRowNumberin the property - Where to write and in What to write property, give your value to be written
can you please provide xaml
Hi @HELZMOTH_BJ
Try this,
Use Read Range to load the data into a DataTable, then use For Each Row to loop through the rows. Check the value in the first column (e.g., “Input Details”) with an If activity and update the corresponding value in the second column using Assign. Finally, use Write Range to save the changes back to Excel.
Or will provide workflow later.
Hi @HELZMOTH_BJ
You can also use this method
Read the excel from 2nd row using range property and then make the changes to the required column and write back to the excel
If i have to add a value to 3rd column:
Input and output:
Hope this helps!
Please do mark it as a solution if it helps!
Happy learning ![]()
Share that input file, I will try to help
INPUT.xlsx (10.1 KB)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.






