A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

data gets rounded up !!!



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2007, 05:40 PM posted to microsoft.public.excel.misc
Dr Alok Modi MD
external usenet poster
 
Posts: 38
Default data gets rounded up !!!

I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit card. In
this there is one column where I enter the credit card number. This cell I
have given a general format, text format and a number format. But my tragedy
is that the last digit gets automatically rounded up. I don't understand
this. What do I do ?

Thanks

Dr Alok Modi MD
  #2  
Old May 13th, 2007, 05:47 PM posted to microsoft.public.excel.misc
Roger Govier
external usenet poster
 
Posts: 2,602
Default data gets rounded up !!!

Hi

A number can only have 15 digits in Excel.
Precede the entry with a single quote to force it to be text, or
pre-format the cells as text BEFORE entering the CC number.

--
Regards

Roger Govier


"Dr Alok Modi MD" wrote in
message ...
I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit
card. In
this there is one column where I enter the credit card number. This
cell I
have given a general format, text format and a number format. But my
tragedy
is that the last digit gets automatically rounded up. I don't
understand
this. What do I do ?

Thanks

Dr Alok Modi MD



  #3  
Old May 13th, 2007, 05:48 PM posted to microsoft.public.excel.misc
AKphidelt
external usenet poster
 
Posts: 591
Default data gets rounded up !!!

Try creating a custom number format... if it's always 12 digit credit card
numbers try

####-####-####-####

or if you don't want the dashes just type # 12 times...

############


"Dr Alok Modi MD" wrote:

I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit card. In
this there is one column where I enter the credit card number. This cell I
have given a general format, text format and a number format. But my tragedy
is that the last digit gets automatically rounded up. I don't understand
this. What do I do ?

Thanks

Dr Alok Modi MD

  #4  
Old May 13th, 2007, 05:51 PM posted to microsoft.public.excel.misc
Teethless mama
external usenet poster
 
Posts: 3,722
Default data gets rounded up !!!

Pre-format cells as Text, or precede with aspostrophe.


"Dr Alok Modi MD" wrote:

I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit card. In
this there is one column where I enter the credit card number. This cell I
have given a general format, text format and a number format. But my tragedy
is that the last digit gets automatically rounded up. I don't understand
this. What do I do ?

Thanks

Dr Alok Modi MD

  #5  
Old May 13th, 2007, 06:09 PM posted to microsoft.public.excel.misc
AKphidelt
external usenet poster
 
Posts: 591
Default data gets rounded up !!!

whoops, i forgot 4 * 4 = 16... should still work though

"AKphidelt" wrote:

Try creating a custom number format... if it's always 12 digit credit card
numbers try

####-####-####-####

or if you don't want the dashes just type # 12 times...

############


"Dr Alok Modi MD" wrote:

I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit card. In
this there is one column where I enter the credit card number. This cell I
have given a general format, text format and a number format. But my tragedy
is that the last digit gets automatically rounded up. I don't understand
this. What do I do ?

Thanks

Dr Alok Modi MD

  #6  
Old May 13th, 2007, 11:52 PM posted to microsoft.public.excel.misc
David McRitchie
external usenet poster
 
Posts: 606
Default data gets rounded up !!!

No sixteen digits is one more digit than 15, and
15 is the maximum in digits if Excel. You cannot
use a number format, and will have to enter
the identification as a text entry as previously
stated.


"AKphidelt" wrote in message ...
whoops, i forgot 4 * 4 = 16... should still work though

"AKphidelt" wrote:

Try creating a custom number format... if it's always 12 digit credit card
numbers try

####-####-####-####

or if you don't want the dashes just type # 12 times...

############


"Dr Alok Modi MD" wrote:

I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit card. In
this there is one column where I enter the credit card number. This cell I
have given a general format, text format and a number format. But my tragedy
is that the last digit gets automatically rounded up. I don't understand
this. What do I do ?

Thanks

Dr Alok Modi MD



  #7  
Old May 14th, 2007, 02:16 AM posted to microsoft.public.excel.misc
Dr Alok Modi MD
external usenet poster
 
Posts: 38
Default data gets rounded up !!!



"Roger Govier" wrote:

Hi

A number can only have 15 digits in Excel.
Precede the entry with a single quote to force it to be text, or
pre-format the cells as text BEFORE entering the CC number.

--
Regards

Roger Govier


"Dr Alok Modi MD" wrote in
message ...
I have devised a workbook where I enter the credit card details of the
transactions received at my hospital for people who pay by credit
card. In
this there is one column where I enter the credit card number. This
cell I
have given a general format, text format and a number format. But my
tragedy
is that the last digit gets automatically rounded up. I don't
understand
this. What do I do ?

Thanks

Dr Alok Modi MD



Thanks all of you, I did custom format as you have mentioned, I did text format, nothing works. Don't laugh at me when I say that text format does not work, Can I upload the file so you guys can see for yourself ?


Thanks
Dr Alok Modi MD
  #8  
Old May 14th, 2007, 07:48 AM posted to microsoft.public.excel.misc
Roger Govier
external usenet poster
 
Posts: 2,602
Default data gets rounded up !!!

Hi

Applying a format after you have entered data, will not change the data
in the cell. You would need to re-enter the values.

If you format a cell as Text, then enter 01234567890123456 it will take
all 16 digits and will retain leading zeros.

--
Regards

Roger Govier


"Dr Alok Modi MD" wrote in
message news


"Roger Govier" wrote:

Hi

A number can only have 15 digits in Excel.
Precede the entry with a single quote to force it to be text, or
pre-format the cells as text BEFORE entering the CC number.

--
Regards

Roger Govier


"Dr Alok Modi MD" wrote in
message ...
I have devised a workbook where I enter the credit card details of
the
transactions received at my hospital for people who pay by credit
card. In
this there is one column where I enter the credit card number. This
cell I
have given a general format, text format and a number format. But
my
tragedy
is that the last digit gets automatically rounded up. I don't
understand
this. What do I do ?

Thanks

Dr Alok Modi MD



Thanks all of you, I did custom format as you have mentioned, I did
text format, nothing works. Don't laugh at me when I say that text
format does not work, Can I upload the file so you guys can see for
yourself ?


Thanks
Dr Alok Modi MD



  #9  
Old May 15th, 2007, 03:28 AM posted to microsoft.public.excel.misc
Dr Alok Modi MD
external usenet poster
 
Posts: 38
Default data gets rounded up !!!



Thanks but I have done all that. See for eg if I were to enter a credit card
number 1234 1234 1234 1234 it gets entered as 1234 1234 1234 1230. Even if
the credit card number were 1234 1234 1234 1237 it would still get entered as
1234 1234 1234 1230. Excel rounds the last digit as zero no matter if the
last digit of the credit card number that you enter is less than five or
greater than five. Please help me as my work has come to a standstill and I
can't work this problem out . I am sure this is a useful question as this
problem would be common to many other users of excel.


Dr Alok Modi MD
  #10  
Old May 15th, 2007, 05:18 AM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default data gets rounded up !!!

Not if you enter the number preceded by an apostrophe which Excel reads as
anything following is text

'1234 1234 1234 1234

Or pre-format the cell(s) as Text.


Gord Dibben MS Excel MVP

On Mon, 14 May 2007 19:28:39 -0700, Dr Alok Modi MD
wrote:



Thanks but I have done all that. See for eg if I were to enter a credit card
number 1234 1234 1234 1234 it gets entered as 1234 1234 1234 1230. Even if
the credit card number were 1234 1234 1234 1237 it would still get entered as
1234 1234 1234 1230. Excel rounds the last digit as zero no matter if the
last digit of the credit card number that you enter is less than five or
greater than five. Please help me as my work has come to a standstill and I
can't work this problem out . I am sure this is a useful question as this
problem would be common to many other users of excel.


Dr Alok Modi MD


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.