Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Advertisements:










Number Format: Change Decimal To Comma


Is there any way to change the decimal point from the usual period symbol (.) to a comma (,). The reason being, i have a structural design spreadsheet and the new terminology is just so, changed from 00.00 to 00,00 I have tried cell formatting but it just uses a comma (,) for numbers in their thousand and it wont do what i need.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Custom Format To Replace Decimal With Comma
I am having problems applying custom format to numbers that need to be formatted.
custom format use is 0",00". When I apply the custom format above to whole numbers, I achieve the results I want:

0.00
20.00
40.00

becomes

0,00
20,00
40,00

However, when I apply to numbers with decimal places

0.20.......

how I can change the custom format so that the period is replaced with a comma but the decimal values are preserved?

View Replies!   View Related
Change The Format So That There Are No Digits After The Decimal
If I enter 2.5 into a cell, and then change the format so that there are no digits after the decimal, the number changes to a 3.

2.4 correctly rounds to 2, but shouldn't 2.5 round to 2???

I thought that even numbers were supposed to round down, and odd numbers round up when there is a 5 right after the decimal.

View Replies!   View Related
Format Number Of Decimal Places To Show
Is there a way to format a cell based upon a condition? If the cell value is <1, I want to show two decimal places. If the cell is >1, I want to show zero decimal places. I tried to use the conditional formatting, but there is no option for this.

View Replies!   View Related
Change Decimal Number To Whole Number
I know the basics of excell, but haven't ever written any formulas or macros (if that's what I need?) that would perform the following opperations. Bare with me, it's a three step process.

1. I need any zero's to the right of the last number (1-9)
to be removed. (I think this can be done with the click of a button, somewhere?)

examples:
a. 173.17300 = 173.173
b. 231.11000 = 231.11
c. 53.00000 = 53.

2. I also need for the decimal to be moved to the right of the last number after the zeroes have been removed from the previous step. (This seems to be the most deficult step, but most important for me.)

examples:
a. 173.173 = 173173
b. 231.11 = 23111
c. 53. = 53

3. I then need to be able to cross reference those remaining numbers with a set of numbers I have.

examples:
Remaining Numbers / My List
a. 173173 / Not on list
b. 23111 / MATCH
c. 53 / Not on list

View Replies!   View Related
Cell Changes Decimal To Comma
I have a UserForm with different text boxes, everytime I put a number with decimals (ex 100.23) on a Textbox and I want that number to be shown on a excel cell, VBA changes the "dot" for a "comma" so excel understands it as an integer number 100,23 (10023).

View Replies!   View Related
Converting Comma To Decimal Point
I've just imported a file into a UK version of Excel from a German made datalogger. The decimal points (which should look like this 0.0) all appear as comas (0,0) with the result that Excel can't read them.

View Replies!   View Related
Force Decimal In Place Of Comma In TextBox
I have an UserForm, where I have several text boxes. One of these textboxes should be entered with decimals. I have been able to cope with the declarations, and set the variable as Variant. However, is it possible to prevent the user inserting "," instead of "."? Alternatively, automatically change "," to "."?

View Replies!   View Related
Convert Or Format Decimal To X Digits Without Decimal Point
I am trying to create a unique sample code by putting together the values of other cells that a user will input. It's all working well apart from the last part, where I am trying to include a decimal number. I want the decimal number to appear without the central "." and in a four digit format. e.g. 2.5 would appear as 0250, 14.25 would appear as 1425. This is the formlua I am using currently:

=IF(ISBLANK(B4),"",IF(LEFT(C4,1)="w",(B4&"-"&TEXT(F4,"YYMMDD")&C4&TEXT(G4,"HHMM")),(B4&"-"&TEXT(F4,"YYMMDD")&C4&LEFT(TEXT(H4,"00"),2)&RIGHT(TEXT(H4,"00"),2))))

However, where the value of H4 is 2.5, I am getting a result of 0303 (I've put this part in bold). I have attached a small spreadsheet to aid understanding.

View Replies!   View Related
Paste Two Decimal Number In Excel Without Extra Decimal Places Appearing
I have a vba macro that takes data from one workbook and pastes it into another workbook. In doing this I have declared a few variables of type single (I only need two decimal precision). However, when I copy the values from the cells on the source workbook and paste them into the target workbook, the numbers end up having 12 decimal places. Ultimately, this extra precision causes my totals to be off by .01 or more after a while. I have tried rounding the number as I pull it off the source workbook into the variable, but that didn't matter. How do I solve this problem? Code for pulling data from source workbook:...

View Replies!   View Related
Calculate Decimal Portion Of Decimal Number`
I need a formula to multiply only the decimal number in a cell and not the integer. For example: the number in the cell is 57.3615. I want to multiply .3615 only.

View Replies!   View Related
Cannot Change Cells Number Format
I cannot change the number format in a single sheet of my spreadsheet. I can go to format cells and select colour etc but it will not change the number format.

Another issue on the same sheet is that linked cells i.e cell b3 formula "=A3" displays "=A3" not the actual value in A3. Again, i cannot change the number format of this cell and yes, auto calc is on.

Whilst not wanting to offer a partial explaination (per the rules) just before this happened i was pressing a combitation of Shift+Control+` - not sure if that is relevant.

I want to get the sheet back to its 'normal' working order.

View Replies!   View Related
Change Number Format To Date
I have a variable "strDate" that has date in it as numbers ie. 04 2006... I need to change it into mmm-yyyy format eg. Apr 2006

View Replies!   View Related
Change Number Format Based On Another Cell?
I have used this forum periodically and it has saved my bacon on numerous occasions so I know someone can help with this!

I created a workbook for staff planning and it's becoming a behemoth!

I'm wanting a range of cells within a row to change the number format to "[hh]:mm" based on a value in the 2nd column of that row. I have played about with a few things and can't seem to get it to work. What I have so far is this:

View Replies!   View Related
Change From Serial Number To Normal Format
I have been trying to type a date in a column in MS excel. But excel always reads it as a serial number.

How Can I get it to display the date as it is in date format. I have the next column formatted/ formulated to display the day of the date in the previous column.

View Replies!   View Related
Conditionally Change Number Format Based On Another Cell's Value
Format the number in Column AL to '[hh]:mm' when Column C's value is ="P/T", otherwise format to 'General'

Column C's value is referenced from another sheet in the same workbook via a VLOOKUP function.

Column AL's value is based on an IF formula which goes like this:
=IF($C4="F/T",SUM($AJ4)+($AK4/2),SUM($D4:$AH4))

Basically the above formula asks if Column C's value is F/T then count (because if F/T then the corresponding values in that row are whole numbers). If not, then SUM (because if P/T the corresponding values in that row are set to [hh]:mm format).

I have another sheet in the same workbook which has code (quoted below) which does something similar but I don't understand it enough to get it doing what I want for the sheet in question.

View Replies!   View Related
Convert Cells With Percentage Format To 'same' Decimal In A Column With Mixed Format
I have a column of cells with values - 0.2%, 0.32%, 0.22, 0.5 etc. The cells with % symbol are in ' Percentage, 2 decimal' format while the plain numbers are in 'General' format i.e. column contains cells in either of these formats. I need a macro where I can specify the column and it will select the cells with the % format, convert it to 'General' and multiply the result by 100 eg. 0.2% converted to 'General' becomes 0.002. When multiplied by 100, result is 0.2 i.e. is displayed without the % symbol.

View Replies!   View Related
Using VBA Macro To Format A Column Into Comma Style
I have a macro that creates an email based on the contents of each column in the worksheet. The macro works great, but I would like to format a column (A) which contains numbers into the Comma Style, prior to sending out the email.

Is there a VBA code that will format a given column (A) into a certain style (Currency, Comma, Percentage, etc) ?

View Replies!   View Related
Variable Decimal Format
Cell C9: 1.25773
Cell C10: 20.0
Cell C11: 2.25%
Cell C15: =C9+((C10*C11)/10000)

C9 is a user entered value, currently formated general
C10 is a user entered value, currently formated decimal with one decimal
C11 is a user entered percentage, currently formated percent with two decimals
C15 is a formula calculation, currently formated general

I've tried formating cells to general (and/or) text and the values appear to be correct but still don't show what I want.

The most popular entries for C9 will be:
123.12
123.123
1.1234
1.12345
Any of the above could have one or more trailing zeros.

I would like C15 to show the same amount of decimal places that the user enters in C9. If user enters one, two, three, four, five, etc...decimal places in C9 then show the same amount of decimal places in C15 after the calculation is done and include any trailing 0's that are needed to match the number of decimals in C9.

I've tried different If statements with custom format to try to get the format of C9 transfered to C15 but haven't come across the right way to do this.

View Replies!   View Related
Automatic Decimal Format Control
I need to control the amount of decimals allowed by the entry of another column same row so I do not have to format the cells everytime to get the correct decimal places. I need all my data in one table so I can do pivot tables.

View Replies!   View Related
Currency Format With 4 Decimal Places
I have a problem with the currency format with 4 decimal places.

Sub go()
Range("C5") = Range("C5") + Range("C4")
End Sub
as you can see it adds the conecnt of "R4" to what is in "R5"

If works fine when the calls are formatted as number with 4 decimal places.
example if R4 is 0.1111 and R5 is 0.2222 after running the macro R5 becomes 0.3333

But if the cells are formatted as currency and 4 decimal places the then excel returns $0.3300

View Replies!   View Related
Using The Accounting Format With No Decimal Places
I am using Excel 2003. I am attempting to use the Accounting format with numbers that should not have any decimal places (although what is entered might have a decimal place). The numbers line up fine on the right, however, the dollar signs on the left are not lining up. It looks something like:

View Replies!   View Related
Decimal Format With No Trailing Zeros
I need to never have a trailing zero be displayed but still have decimals displayed (we can use up to 3 digits for the example) Here's a list of test cases

Value______Display
1.234567___1.235
1.234______1.234
1.23_______1.23
1.230______1.23
1.2________1.2
1.200______1.2
1.0________1
1.000______1
1.020______1.02
1.0002_____1
0__________0
0.001______0.001
0.0001_____0

The only time I want to see a 0 is when the answer is 0 (or rounded to 0) or when 0 is required in the middle. This is for patient safety if you are curious. 2.0 when printed out or written by hand can be mistakenly read as "20" in the heat of things, thus 2.0 should be written/printed as "2" (no decimal on the end) not as "2." even, just "2"

View Replies!   View Related
Format To Bring Decimal Point Forward
Is there anyway to be able to bring decimal point forward without affecting the numbers using any formatting, which will still be there even after refreshing the query.

For example, 0.0531 to 53.1

View Replies!   View Related
Format All Percentage Cells To X Decimal Places
I would like to do the following: * Format numeric cells (cells with a percent sign) to zero decimal places. I have a set of macros that I am combining to clean up a data set and these are two of many (removing blank lines, duplicates, blue/bold, etc.)

View Replies!   View Related
Number Add To Comma Separated Data In Cell
Cell(i,1)have 3 Numbers

Each Number Not Allowed Greater Than 10

Each Number In Cell(i,1) Will Be Added 1 In Cell(i,3) And Cell(i+1,3)....

How Can I Seperate Numbers And Make Three Variables To Run Macro
A
1,3,10
2,5,9
C
2,3,10
1,4,10
3,5,9
2,6,9
2,5,10

View Replies!   View Related
Find Number In A Cell With More Than 2 Numbers Separated By Comma
When the entry in a cell is of the format e.g 3,4 is there any way to find the value 3 or 4 in that cell?

Attempts like:

Cells(i, 1).Value = variable (e.g variable=3)

or

Set cell_found = Cells.Range("A1:A10").Find(variable, lookat:=xlWhole)

do not find the cell with the 3 (or 4). The above work fine when 3 or 4 are alone in the cell. Is there anyway to find these values in the cell?

View Replies!   View Related
Format Result Of Date Difference To 2 Decimal Places
I use datediff to calculate the difference between 2 dates in Months.

Result = Datediff("M", Date1,Date2)

I need the result to be formatted to 2 decimal places ie 23.52 (months)

Not neccessary to use datediff if this doesnt work.

Please note I have cross posted this HERE because I couldnt get connected to ozgrid for some reason, I will montior both sites for a solution and post back results. Apologies for the inconvenience.

View Replies!   View Related
Change Default Decimal Points For Numbers
I've got a wierd simple problem in Excel 2003. I have a laptop and a desktop machine, and I'm an accountant who uses the fixed decimal feature as a default, with it set to 2 decimal places.

On the desktop machine, if I input "23." into a cell and then hit enter, the value left in the cell is "23.00" However, on the laptop, when I do the same thing, I get "0.23" In essence, it ignores the fact that I entered a decimal point.

If I enter "23.0" in a sheet on the laptop, it puts "23.00" in the cell.

I thought maybe it was some sort of hardware thing, like the KB was messed up, but then I used remote desktop to try to see what would happen if I enter numbers into the other computer using the laptop, and into the laptop using the desktop. The laptop when connected to the desktop performed normally, just like the desktop machine. The desktop, when connected remotely to the laptop behved like the laptop machine. In other words, I believe this test takes Hardware out of the picture.

Which leaves some strange obsure setting in excel someplace tht is causing this behavior, and I can't seem to find it.

Does anyone here know why these two installs treat the data entry so differently? It's driving me nuts.

View Replies!   View Related
Show 1000 Number Typed As 1,000 (comma Separator)
HOw do we hard code excel to show when number typed as with the 1000 separator.
For Eg: 1,000

View Replies!   View Related
Clear Cell If Number Matches Comma Seperated Numbers
I found code on this site after searching a long time that has worked well in a larger macro I'm writing for use in Excel 2003 usage. However, I'm stumped on how to achieve the following on the attached sample: find and remove the number in A2 from the list in E2 then count the individual numbers seperated by commas in E2 and post the results in G2 Repeat the same sequence for C2, D2 and F2

View Replies!   View Related
Round Off Decimal Number To Whole Number
i want to do something that should be relatively simple, and yet it is not... has me stumped. what i'm doing: taking a range of numbers... from 1-19, 20-39, and so on, and using a vlookup function to pin a rating for said value off a reference table. heres a example of what i'm doing:
A | B
1 1
2 1
3 1
4 1
5 1
... ...
19 1
20 2
... ...
40 3...................

View Replies!   View Related
Whole Number As Decimal
I would like to enter whole numbers but have them convert to decimal. I have searched and found a solution, but it only references to one column and I need to reference other columns as well. I tried to edit but Iím not very knowledgeable with code. Here is an example of what I am looking for, columns E31:E52, F31:F52, L31:L52, M31:M52, N31:N52. Could someone provide a code to acquire these results?

View Replies!   View Related
Userform Date Format Reverting Back To Us Format On Change Event
I have created a userform but I am having extensive problems with the date formats.

My system is set to UK and short date is set to: DD/MM/YYYY

When I used code to add the values in the userform to the spreadsheet, any that contained a date format would revert to the US format.

So I finally figured out to use DateValue to format it correctly for example: ...

View Replies!   View Related
Change Cell Format Based On Existing Currency Format
I would like to have a single button that changes a range of cells from the USD to EURO to perhaps CAD symbol. Can this operation be performed, such that if I start in dollars, and I click the button once, it shifts by range to EURO (not formulas...just symbol)...and then if I click the same button again, it goes to CAD, and then back to USD with a third click?

View Replies!   View Related
Convert Number To Decimal
I need a formula to take the numbers listed in cells D4:D50

If below 1,000,000 than just keep that number value

EXAMPLE DATA

If the Ten Thousands place is 5 or below leave the same if it is higher round up. (use this concept for ALL PLACE VALUES

1,500,000 to 1.5 million (if the rest are zeros)

4,000,000 to 4 million

1,564,535 than to 1.57 million

1,545,535 than to 1.54 million

1,555,000 than to 1.55 million

Same concept for the rest as the Millions (move the rounded place up as needed)

So for Billions it would be 10 Millions place (to round form) I think lol

1,000,000,000 to 1 Billion

1,500,000,000 to 1.5 Billion

1,560,000,000 to 1.57 Billion

1,578,000,000 to 1.58 Billion

1,700,000,000 to 1.7 Billion

I would like this to continue all the way up to place value 999 QUADILLION! (if possible) if the value can go bigger that would be great!

View Replies!   View Related
Decimal Place In Number
I am trying to figure out how to insert a decimal into a number. For ex: 1234 to become 12.34. I tried creating custom or special formatting but I cannot figure it out.

View Replies!   View Related
Change A Date In Text Format Into Regular Format
I have an excel sheet full of dates in text format and want to convert them into regular format. For instance, one of the dates listed is in text as "60801". I'd like it to show in regular date format of mm/dd/yyyy, so that 60801 becomes 8/1/2006.


View Replies!   View Related
Number Of Decimal Months Between 2 Dates
I'm using the Calendar Control to determine 2 dates. 1 Starting Date and 1 Ending Date. I'm trying to determine the total number of months between those two dates down to 2 Decimal Places. I also need to get the total number of weeks and days but those are much easier and I've been able to work those out by the following:

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes" ........

View Replies!   View Related
Covert Decimal Number To Minutes
I would like to convert a number to minutes. For example .48 or 48 as a formula result to 48 minutes. The reason for doing this is I will add the result to a time.

Forumula result = 48 -> convert to {48 minutes + 12:00 = 12:48}

I've tried using just formating but no luck.

View Replies!   View Related
Check If The Number Have Two Decimal Point
a1 -> 2.333.33 "i want this to return as 2,333.33"

a2 -> 33.33 "i want this to retun 33.33"

a3 -> 45.555.55 "i want this to return 45,555.55"

i already asked this question and someone gave me this code -> substitute(a1,".","",1) which return to 2333.33 but the problem is for the a2 if i use the code it will return as "3333" which read as "3,333".

Is there any way that we can determine if the values have two decimal point before it will run the command?

View Replies!   View Related
Seperate Decimal & Whole Number
How do I seperate 1.2 and 1.02 miutes from the same column into Minutes and Seconds Correctly.

How do I get the first to seperate as (1) Min (20) Secs and the next to
seperate to (1) Min (2) Secs

I have 200,000 line of data in one column with times from .o1 mins to 1498.40 mins that I am doing this to. I need to convert it all back to seconds.

View Replies!   View Related
Round Up/Down Based On Decimal Number
I receive a list of numbers that are rounded to three decimal places. I need to round them to two decimals - here's the catch - if the third decimal is a 9, it needs to go up, otherwise, 1-8 need to round down.

Example
3.678 goes to 3.67
3.679 goes to 3.68

If the third decimal is <=8, it needs to go down.

View Replies!   View Related
Return Decimal Portion Of Number
trunc gives just the numbers before the decimal point. how do i get the numbers after the point. original number minus trunc seems messy!

View Replies!   View Related
Removing Decimal Points From A Number
Is there some kind of function that will remove decimal points from a number? What I'm looking for is:

1231.5 = 12315
123.15 = 12315
12.315 = 12315
1.2315 = 12315

View Replies!   View Related
Make Any Number Begin With Decimal Point
I have a column that has values ranging anywhere from 1 to 999,999 and I need a way in vba to take whatever value is in the specified cell and place a decimal point at the far left. Example:

change 175526.34 to .17552634
change 376.1 to .3761
change 22987.254 to .22978254

when the code is run I need the selected number to begin with the decimal point.
See, the tricky part is that the length of the number varies and I cant just divide by X to shift so many places to the left..

View Replies!   View Related
Convert Decimal Alphanumeric Text To Whole Number
i wanna convert the decimal number to a round number...like 2.0L to 2L.

View Replies!   View Related
Add Decimal Point To Existing Number
I need to add a decimal point to a column of numbers. For example, where it says 126 needs to be changed to 1.26, 3035 changed to 30.35, 13593 to 135.93 and so on. Can this be done automatically or with a formula?

View Replies!   View Related
Rounding Number In Formula To Remove Decimal
My formula is not rounding properly. Cells I4, J4 and K4 all filter from the results of cell I3 divided by 3. (e.g. 10/3 = 3.333) I was able to remove the decimals in cells I1:K3, but the between formulas (I4:K4) keeps adding the decimal back, therefore this results in errors to my chart.

View Replies!   View Related
Subtract Decimal Number From Current Date
Need to find out exact date. if I insert 32.5 (32 years 5 months ) in particular cell. my output shld be 10 june 1974 or 10/06/1974. I want to find back date...

View Replies!   View Related
Date Format: Change Format To Mm/dd/yyyy
I have txtboxes in which I write date in format dd/mm/yyyy but if I want to put date in cell correctly from this textbox in need to declare event on exit -change format to mm/dd/yyyy and then it puts date in desired format which is dd/mm/yyyy and my regional settings are English(uk)

Is there a way to put any date format in textbox and in cell there will always be format dd/mm/yyyy or at least if date is entered in format dd/mm/yyyy that also in cell the same format is putted

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved