Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Number doesn't want to be a number

Excel Experts,

To populate a spreadsheet, I imported a number of fields, incluing Shares
and Position, from a program call Monarch which reads the file of a printed
report and converts it into fields.

The field for Shares is a number and it imported fine.

The field for Position in the report consists of a number, with an "L" or an
"S" at the end, to indicate Long or Short. e.g 1500L, 2000S.

I copied the Morarch table into a spreadsheet, and then stripped off the "L
or the "S" from the Position fields. then I formatted the Position cells as
"Number".

However, the cells from the Position field are still weird. The main
problem is that when I incorporate them in an IF statements, and ask IF
Position = Shares, I get a no, even if the amounts are equal.

I've set the cell format to Number, I've tried Copying and Pasting as
Values, using the Trim function, etc. Nothing seems to work.

The only thing that works is highlighting the cell, pressing the F2 key, and
then <Enter. That seems to reset it somehow!

Any ideas.

Thanks,
Alan


--
achidsey
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Number doesn't want to be a number

Put the number 1 in an un-used cell. Then Copy the cell and Paste Special on
top of the stubborn cells with the multiply button checked. This should
convert the bunch of them into true numbers.

Good Luck
--
Gary''s Student


"achidsey" wrote:

Excel Experts,

To populate a spreadsheet, I imported a number of fields, incluing Shares
and Position, from a program call Monarch which reads the file of a printed
report and converts it into fields.

The field for Shares is a number and it imported fine.

The field for Position in the report consists of a number, with an "L" or an
"S" at the end, to indicate Long or Short. e.g 1500L, 2000S.

I copied the Morarch table into a spreadsheet, and then stripped off the "L
or the "S" from the Position fields. then I formatted the Position cells as
"Number".

However, the cells from the Position field are still weird. The main
problem is that when I incorporate them in an IF statements, and ask IF
Position = Shares, I get a no, even if the amounts are equal.

I've set the cell format to Number, I've tried Copying and Pasting as
Values, using the Trim function, etc. Nothing seems to work.

The only thing that works is highlighting the cell, pressing the F2 key, and
then <Enter. That seems to reset it somehow!

Any ideas.

Thanks,
Alan


--
achidsey

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Number doesn't want to be a number

Cool solution. better than what I was going to finally do which was to add 1
and subtract 1,then copy as values. Thanks
--
achidsey


"Gary''s Student" wrote:

Put the number 1 in an un-used cell. Then Copy the cell and Paste Special on
top of the stubborn cells with the multiply button checked. This should
convert the bunch of them into true numbers.

Good Luck
--
Gary''s Student


"achidsey" wrote:

Excel Experts,

To populate a spreadsheet, I imported a number of fields, incluing Shares
and Position, from a program call Monarch which reads the file of a printed
report and converts it into fields.

The field for Shares is a number and it imported fine.

The field for Position in the report consists of a number, with an "L" or an
"S" at the end, to indicate Long or Short. e.g 1500L, 2000S.

I copied the Morarch table into a spreadsheet, and then stripped off the "L
or the "S" from the Position fields. then I formatted the Position cells as
"Number".

However, the cells from the Position field are still weird. The main
problem is that when I incorporate them in an IF statements, and ask IF
Position = Shares, I get a no, even if the amounts are equal.

I've set the cell format to Number, I've tried Copying and Pasting as
Values, using the Trim function, etc. Nothing seems to work.

The only thing that works is highlighting the cell, pressing the F2 key, and
then <Enter. That seems to reset it somehow!

Any ideas.

Thanks,
Alan


--
achidsey

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Number doesn't want to be a number

Your welcome
--
Gary''s Student


"achidsey" wrote:

Cool solution. better than what I was going to finally do which was to add 1
and subtract 1,then copy as values. Thanks
--
achidsey


"Gary''s Student" wrote:

Put the number 1 in an un-used cell. Then Copy the cell and Paste Special on
top of the stubborn cells with the multiply button checked. This should
convert the bunch of them into true numbers.

Good Luck
--
Gary''s Student


"achidsey" wrote:

Excel Experts,

To populate a spreadsheet, I imported a number of fields, incluing Shares
and Position, from a program call Monarch which reads the file of a printed
report and converts it into fields.

The field for Shares is a number and it imported fine.

The field for Position in the report consists of a number, with an "L" or an
"S" at the end, to indicate Long or Short. e.g 1500L, 2000S.

I copied the Morarch table into a spreadsheet, and then stripped off the "L
or the "S" from the Position fields. then I formatted the Position cells as
"Number".

However, the cells from the Position field are still weird. The main
problem is that when I incorporate them in an IF statements, and ask IF
Position = Shares, I get a no, even if the amounts are equal.

I've set the cell format to Number, I've tried Copying and Pasting as
Values, using the Trim function, etc. Nothing seems to work.

The only thing that works is highlighting the cell, pressing the F2 key, and
then <Enter. That seems to reset it somehow!

Any ideas.

Thanks,
Alan


--
achidsey

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Number doesn't want to be a number

Another option is to just copy a blank cell and choose add.

You'll have a couple less steps to do and may even notice a difference when you
have a blank cell in the range to convert.



Gary''s Student wrote:

Put the number 1 in an un-used cell. Then Copy the cell and Paste Special on
top of the stubborn cells with the multiply button checked. This should
convert the bunch of them into true numbers.

Good Luck
--
Gary''s Student

"achidsey" wrote:

Excel Experts,

To populate a spreadsheet, I imported a number of fields, incluing Shares
and Position, from a program call Monarch which reads the file of a printed
report and converts it into fields.

The field for Shares is a number and it imported fine.

The field for Position in the report consists of a number, with an "L" or an
"S" at the end, to indicate Long or Short. e.g 1500L, 2000S.

I copied the Morarch table into a spreadsheet, and then stripped off the "L
or the "S" from the Position fields. then I formatted the Position cells as
"Number".

However, the cells from the Position field are still weird. The main
problem is that when I incorporate them in an IF statements, and ask IF
Position = Shares, I get a no, even if the amounts are equal.

I've set the cell format to Number, I've tried Copying and Pasting as
Values, using the Trim function, etc. Nothing seems to work.

The only thing that works is highlighting the cell, pressing the F2 key, and
then <Enter. That seems to reset it somehow!

Any ideas.

Thanks,
Alan


--
achidsey


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumif number is greater than a number but less than another number lulu151 Excel Discussion (Misc queries) 2 May 7th 10 07:12 PM
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? jbclem Excel Discussion (Misc queries) 2 August 13th 09 01:57 AM
How to calculate number of occurencies of a specific number number Stefan Excel Discussion (Misc queries) 4 September 8th 08 08:33 AM
Formula to change scientific number to regular number or text Compare Values Excel Discussion (Misc queries) 2 August 23rd 07 06:10 PM
Rounding a number to a multiple quantity that adds to a fixed total number wjlo Excel Worksheet Functions 1 November 9th 04 04:43 PM


All times are GMT +1. The time now is 07:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"