Copying Data to Excel - Numbers has Paragraph Returns

I have an issue with copying data from my Sales order page to Excel.

We have been doing this for years but only recently (Maybe around 3 months-ish that we keep noticing Paragraph Returns (At least we think it might be a Return) on two columns of numbers (quantity and unit price) when pasting onto Excel Sheets.

There is a symbol in front of the numbers, an arrow up which turn right. The spreadsheet now no longer recognise these as numbers even though it’s showing fine and therefore formulas cannot be used.

We have tried using the Excel replace function with no luck and can only manually delete the return by pressing delete 3x times before the numbers. Which gets very difficult with large amount of data.

I am using the Cloud version of Manager 21.10.19 on Google Chrome Version 94.0.4606.61 (Official Build) (x86_64) with Macbook Air 2020 and Microsoft Excel for Mac version 16.53. I have tried pasting on Google sheet as well as on Microsoft Excel on Windows as well. They all return the same result.

Attached are images of the original sales order page and the result on Excel under qty and original price it’s showing this symbol and columns beside of the right using these referenc numbers are not recognising them as numbers.

Please let me know if this issue can be fixed or if you need more information.

Thank you,
Lyvia


You are copying from a rendering of HTML code, and from a custom theme display on top of that. This is a not a feature of the program. You cannot expect that to go well. What you describe (you don’t actually illustrate it) sounds like formatting characters. Notice that these are the only columns in your spreadsheet that are not left-justified. So this is a result of how you have pasted into your spreadsheet and/or your spreadsheet cell formatting. Manager cannot resolve this issue.

Thanks Tut. I’ve tried pasting in different ways (as values, as keeping source formatting) to different and new spreadsheet but it’s all resulting the same way. So I’m not sure how to change the format.

It’s not left justified when I pasted it unless I go in and press back space 3x times on each cell. So there seems to be 3x extra space in front of each numbers which is not recognised even when I try to use the replace function to replace “space” with “blank”.

Is there a way to copy this data to a spread sheet not from HTML code? What can I change in the custom theme display?

There is no “copy to clipboard” feature for the Sales Order unfortunately.

Thanks for your help.

Your spread sheet program is reading those items in as text not numbers

  • The cell shows a quote preceding the text to illustrate this
  • Text is left justified, numbers right justified

Options

  • construct a cell formula to calculate a number value from the text in that field. Look at Value() or NumberValue(), see General Ledger Transactions Report - #12 by Patch
  • Use a table reading add-on for your spread sheet program to better extract the numbers
  • check / ensure number format consistency in Manger and your spread sheet program

I think the html code now has coding to ensure that numeric data is correctly aligned when using ltr and rtl languages.

This affects the copy/paste into the spreadsheet from html pages such as Sales Order

Thank you very much! I will try these. I’ve been trying all sorts of things and it wasn’t working.

Hi Patch,

I have tried Value() or NumberValue() and as well as =VALUE(TRIM(CLEAN()))
as well as this one from the discussion you linked =NUMBERVALUE(RIGHT(AE4,LEN(AE4)-SEARCH(“$”,AE4,1)),“.”,“,”)

They didn’t work. But I will do more research based on what you have pointed out in converting text to numbers.

Thank you.

Yes I think this sounds like what I’m having issues with. I will do more research on google, I’m not well versed on coding. Thank you for pointing this out.

That’s weird!

Try this then. Paste the whole table in Word first and then paste the Word table into Excel. Maybe that will solve it.

in each case you of course need a cell reference. For example to calculate the number value of a text string in cell F2 use

=VALUE(F2)

or

=VALUE(TRIM(CLEAN(F2)))

then copy the formula to other cells in the column

any soultion for this
Please advice with solution to me

That depends on what you are really trying to do. In other words, why are you copying from the display of a sales order presented in a custom theme? By doing that, you have gone to the end of a fairly long chain rather than to the source of the data. This is something like copying a picture of the data instead of the data itself.

From your first screen shot, it looks like you are trying to update prices. That might be easier to accomplish using Batch Update.

The first thing I would try is pasting the data into a text editor and showing the hidden characters.

This is an example using Sublime Text, but there are plenty of other text editors that will do the same thing. Here all the grey dashes represent tab spaces and the grey dots represent normal spaces, so I can see I don’t have any other unwanted hidden characters messing up the formatting.

I frequently use this method to copy from purchase invoices for calculating my pricing in a spreadsheet. I use the text editor as an intermediate step to clean up the formatting, using regular expressions in find-and-replace operations to add and remove tab spaces and move data around so that when I paste into the spreadsheet all the columns are set up according to how I use them there.

I Found soultion ASAP Utilities solve the all problems

Hi Patch,

Yes I did this sorry I forgot to mention the cell numbers.
I added the appropriate cell number to the formula but it was still coming up with #value! error.

Hi Tut,

Thanks, we use a floating price based on the gold price of the day. I also need to show the base price, the added surcharge on top and then the final unit price for the customers. So we cannot batch update all our inventory everyday and we have over 9000 items in our inventory.

Thank you Graham I just downloaded and tried this. I replaced /t with blank which worked but I’m not sure how to then copy and paste from sublime to Excel without losing the column formats and messing up the data.

Or is there a way to paste into Sublime with columns intact? and keep selections only on certain columns for the find and replace functions?

Sorry I don’t know enough about Sublime or coding to use this efficiently but willing to learn.

Any tips is much appreciated!

I think I have to find out what this symbol means on Excel to be able to clean up the cell more effectively.

I’ve tried substituting with CHAR 9 10 13 160 and none of them is the right one.

I’ve tried replacing ^t on Word and all the other available characters as well.

Thank you. Would you be able to demonstrate? I have a Mac and it says it’s not available for Mac.

A couple of general points first:

  1. Mac OS comes with its own text editor. I haven’t used Mac OS in several years, so I can’t remember what it’s called or what functionality it has. But for the basic operations you should be able to use that instead of downloading new software like Sublime Text.
  2. Tabs are commonly used as column separators. When pasting data into a spreadsheet program like Excel, it usually converts tab spaces into column breaks. So don’t remove or replace the tabs unless there are some that are creating columns you don’t want. You may have extra options when pasting into Excel. In some programs, for example, you can choose Paste Special, and you might be given options to specify what character you would like to use as your column separator. But in this case you shouldn’t need to do that.

What I would do is the following:

  1. Copy your data from Manager.
  2. Open a text editor like Sublime Text or whatever comes with Mac OS. Paste your data here. Text editors do not store text attributes like font, colour, size, alignment, etc, so just by doing this step you might be getting rid of unwanted formatting.
  3. Select all the text and copy it.
  4. Paste it into Excel.
  5. If this hasn’t worked, I would go back to the text editor and look more closely at the data where you have problems. Show hidden characters. In Sublime Text you can do this by selecting all the text. In other programs you might have a menu item like View > Show hidden characters.
  6. If you can see anything other than tabs and spaces between your words and numbers, you may need to strip those out. You should be able to do this with a Find-Replace operation. Regular Expressions (RegEx) enable you to do some quite complex searches and replacements, but if it’s just a single problematic character that you need to remove then they shouldn’t be required.

If you try the above and it still isn’t working then post a screenshot of what you see in your text editor with the hidden characters visible.

1 Like