Excel number formatting is wrong - excel

I have a lot of numbers and in Excel these numbers are displayed in a wrong way. Excel adds a lot of dots in between the numbers.
In the program NUMBERS it is display correctly. I need to manipulate this data in Excel. Can anyone help me how to set the numbers in Excel correctly?
Incorrect dots in between the numbers in Excel:
Correct way the numbers are presented in NUMBERS:

You need to check your options, more exactly the "advanced" ones, as indicated in the following screenshot, apparently both boxes have the same separator value for decimals and for the thousands (sorry for the Dutch, that's just the language of my Excel installation):

Use Find and Replace function to replace all . with blank.
Then change format Number with Use 1000 Separator property marked true.

Related

How to stop excel from changing hex number?

I have to enter hex values in a column in excel worksheet.
Now whenever I write the number 01E0, it changes it to 1.00E+00.
How do I stop this from happening?
Excel provides formatting and recognizes your input as a number and tries to display it correctly as a number, containing the Euler number.
In your case, the simplest approach would be to tell Excel to stop doing this, by formatting the column/field/row as text. How to do this is explained here.
Try this if you want the value to be stored as text-
'01E0

Excel Custom Formatting and/or Formula

I have a list of numbers for a client like below:
8481.80.9005
8481.80.9005
8413309090
8413309090
The first two numbers exhibit the correct formatting, per the client. Is there a formula and/or custom formatting that I can use to make all numbers uniformly the correct format?
Note - all numbers are 10 digits with periods after the fourth and sixth digits.
I know I'm going to be shot down on this one, but couldn't see why you can't do
0000\.00\.0000
in custom formatting
The problem with a custom format is that Excel will read the number as a whole number and any attempt at putting in the ., if your local settings are set to the . being the decimal separator, is that it will try to put it at the end.
So we need to first make it a string with some other separator and then do a substitute.
The following formula does that:
=SUBSTITUTE(TEXT(A1,"0000-00-0000"),"-",".")

Adding additional numerical values into already made column

Major noob here. This is my dilemma:
I created a spreadsheet on excel and input my data in a column. Then I was informed that I need to add two zeros (00) to the front of each value. Is there a way of doing this on excel w/o me double clicking each row and manually adding the 00's before the original value?
in order to add two leading zeros to numbers of unknown length, the only viable option I can think of is to turn the number into a string.
="00"&A1
There may be a way with the format text function to measure the length of your number then format with two leading zeros but that is currently beyond me.
The other option is to go into the custom cell format and change the display to
000000
Where the number of 0s is two longer than the number of digits in your number. If your numbers are inconsistent in length you would need to do this for each cell. It would keep the number as a number though.
Thanks for your replies. #Forward Ed your idea gave me a diff idea. I just added the 00's to the column before and then used another column + the CONCATENATE function.
Also for fellow cavemen like myself, you can use notepad to do it the ghetto way and copy then re-paste back to excel -.-
Im such an idiot lol. Thank you

Get Excel to display full values

I have an Excel spreadsheet with a range of values which are numbers that go to up 20 decimal places, unpivoted from another sheet using the trick from here.
The trouble is the cells are only displaying 10 digits so, for example, even though the value is 5.46827166811115 it is showing as 5.468271668.
I've tried setting the format to text but it still wants to treat it as a number, the number of decimal places varies so I can't use a fixed #.### format. The only way I can get it to show is to format the cells as text and to just select and then click in the entry box for each and every cell!
It then shows a warning that the number in the cell is formatted as text or preceded by an apostrophe but at least it's showing the full value.
I did find a VBA script that just did something stupidly simple like cell.Value = cell.Value for the selection which seemed to work but I can't find it anymore and I can't reproduce that now.
Surely there's an easier way to do this? It wouldn't matter so much but when I import this data through SSIS into a VARCHAR(MAX) it's getting the truncated values!
Pre-pend a single apostrophe ' to the data. In many cases, this is more effective than setting the cell format to text.
You could format the cell as text and the do an .AutoFit so the cell expands to show all the cell content, like this:
Columns("A:A").EntireColumn.AutoFit
that will expand the A:A cell so all its content is visible.
try formatting with #.000 instead of #.###, but if your problem is that Excel is dropping precision on you, you could try multiplying the value by 10^20, then dividing by 10^20 on the SQL side.
found more info:
here
looks like Excel is limited to 15 digits of precision, multiplying by 10^20 doesn't increase the precision, so you can treat it like text or split the remaining digits into another column and combine them back with SSIS or SQL.
Have you added the IMEX=1 to your connection string? That keeps SSIS from trying to figure out the data from the first few rows.
Also, what about using a decimal datatype instead of varchar(max)

Storing numbers are text Excel 2007

When numbers are stored as text in Excel you see this little guy http://imgur.com/zXdwD
in the upper-left hand corner. when you click on it it gives you the option of converting the text representation of a number to a number upon which math can be done. also, when stored as text numbers appear on the left side of the cell opposed to the right one. I have an array of numbers which are stored as text, but they don't offer that little green thing to convert them to numbers. It may sound trivial but I'm using the Vlookup function to reference a large column of numbers to a code name, but it's not being recognized. And the only thing I can think of is that it's somehow being read differently (the codes are most defintely in the lookup table, and ctrl+f will find them). I want to know if anyone has an idea about what's happening.
Thanks.
The smart tag is a little finicky at times. There's a couple of things you can do.
If you're using code, you can multiply the cells in the range by 1, this will convert them to a number.
Alternatively you can convert the number you're matching to a string and then vlookup. Something similar to:
=VLOOKUP(TEXT(A1,"#"),B1:D10,2,false)
Note TEXT(A1,"#") would round to no decimal places, you may have to adjust the formatting.
The format of some of the cells in the lookup table maybe formatted as text. If there are a lot of them you can create a macro that corrects them. I had the same issue in this SO question although it was the opposite problem.
Another way to correct them would be to copy all the cells in the lookup table in that column and in an adjacent blank column edit>paste special>values>add which makes each of them numeric. Then copy them and paste those back over the originating cells.
A quick trick to convert all numbers formatted as text back to umber format is to copy the data into the "Notepad" application. Then select and copy the data from "Notepad back into your spread sheet and everything will be converted to number format.

Resources