UIPath can read the numbers in “G2”, But can’t read “F2”.
How can I solve this?
test1.xlsx (8.7 KB)
Without diving deep into code - it’s not solveable. Merged cells are an Excel trick - it internally redirects calls to the parent cell.
So in your example from actual file perspective only columns A, D and G have values. B-C and E-F only have a redirect clause that Excel uses to display them differently and give an “inherited” (from lack of a better word) value.
Then I have to find another approach.
anyway ,thanks for your help!
Then I have to find another approach.
as @andrzej.kniola said
it internally redirects calls to the parent cell.
Merged cells in excel are read by their first cell address. You should be able to pick up merged cell D2:F2 as D2
Regards…!!
Aksh
zsdrcdsq:
Then I have to find another approach.
as @andrzej.kniola said
andrzej.kniola:
it internally redirects calls to the parent cell.
Merged cells in excel are read by their first cell address. You should be able to pick up merged cell D2:F2 as D2
Regards…!!
Aksh
It worked !
Thanks~
Hi @zsdrcdsq,
This will be useful …
Hi Friends, I have included some new activities that merge and unmerge the cells Name Space : [image] Merge Cells - Merge the cells inside the excel file. Properties : [image] Sample File : MergeCells.zip (24.9 KB) UnMerge Cells- Unmerge the cells inside the excel file. Properties: [image] Sample : UnMergeCells.zip (24.8 KB) Let me know if you have any errors. I would be happy to get more suggestions Regards Balamurugan.S
Regards
Balamurugan.S
Hello Team
Please let me know if there is any solution to solve the merged cell issue in excel
Hello @yogeswaraj,
Welcome to UiPath Community. Here you have the activity to do the merge cell.
Hi Friends, I have included some new activities that merge and unmerge the cells Name Space : [image] Merge Cells - Merge the cells inside the excel file. Properties : [image] Sample File : MergeCells.zip (24.9 KB) UnMerge Cells- Unmerge the cells inside the excel file. Properties: [image] Sample : UnMergeCells.zip (24.8 KB) Let me know if you have any errors. I would be happy to get more suggestions Regards Balamurugan.S
you can get the package from here.
https://go.uipath.com/component/balareva-xl-activities
Regards
Balamurugan.S
Thanks Bala … But my doubt is how to read the merged cell data ( here in the excel the country wise data is grouped ). If I use read range excel activity it is reading the source cell data not the merged cell data. Please find the snapshot for your reference.
Hi @yogeswaraj,
I have tested your example. Actually the merge should have the value only in one cell . Not with all merged cells.
Here I have shown your example while it is in un-merged.
So you have to fill the empty column,.
Regards
Balamurugan.S
if there a way to identify if the excel has any merged cell?
Hi @ANSHUL,
Check this one !
Hi All, I have developed a new activity called " Is Merged Cell". It returns the true or false. [image] Thank you Balamurugan.S
Regards
Balamurugan.S
ignore my post, coz I mixed up with Excel package…Then I realised you are referring to EasyExcel