Page 1 of 1

Duplicate group formatting in Excel

Posted: 28 Apr 2022 13:20
by CCarmichael
Hi,
I'm not sure whether this has been asked before but, I have been doing some work looking for duplicates across my companies’ servers and I was wondering whether there is any way that the groups can be prevented to being formatted as dates and times within excel when pasting from the clipboard. I have also attached an example screenshot showing the format that excel imports the data from the clipboard as a time rather than a plain unformatted number.

Is this due to a colon “:” being put next to the group number in the search results in Xyplorer (screenshot attached), if so, is there any way to remove this?

Thanks very much.

Re: Duplicate group formatting in Excel

Posted: 28 Apr 2022 13:45
by highend
Excel autoformats it so use a script:

Code: Select all

    #111; // File | To Clipboard | All List Rows
    copytext regexreplace(<clp>, "^(\d+):", "$1");

Re: Duplicate group formatting in Excel

Posted: 28 Apr 2022 15:01
by CCarmichael
highend wrote: ↑28 Apr 2022 13:45 Excel autoformats it so use a script:

Code: Select all

    #111; // File | To Clipboard | All List Rows
    copytext regexreplace(<clp>, "^(\d+):", "$1");
Highend,

Thanks for this, would it be possible for some guidance on how to use the script?

Thanks again.

Re: Duplicate group formatting in Excel

Posted: 28 Apr 2022 15:10
by highend
And afterwards: CTRL+v in Excel...
Animation.gif

Re: Duplicate group formatting in Excel

Posted: 28 Apr 2022 15:23
by CCarmichael
Thanks very much

Re: Duplicate group formatting in Excel

Posted: 28 Apr 2022 16:07
by admin
FYI, if you just need the script rarely and a special button would be overkill, you can just paste this line into the address bar and press enter:
#111; copytext regexreplace(<clp>, "^(\d+):", "$1");