Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Four digit numbers need to be split up


=mid is not working because I have a decimal point between the numbers.


here's a better example:

Cell AO11 = 13.00
I want:
AJ11 = 1
AK11 = 3
AM11 = 0
AN11 = 0

My problem is to 0 is coming up as a blank cell instead of showing th
zero. Is there any way to show the zero

--
hyyft
-----------------------------------------------------------------------
hyyfte's Profile: http://www.excelforum.com/member.php...fo&userid=1318
View this thread: http://www.excelforum.com/showthread.php?threadid=26547

  #2   Report Post  
Posted to microsoft.public.excel.programming
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Four digit numbers need to be split up

here's a better example:
"better"? think it's a whole new question <g

Cell AO11 = 13.00
I want:
AJ11 = 1
AK11 = 3
AM11 = 0
AN11 = 0


Put in

AJ11: =MID($AO$11*100,1,1)+0
AK11: =MID($AO$11*100,2,1)+0
AM11: =MID($AO$11*100,3,1)+0
AN11: =MID($AO$11*100,4,1)+0

---
If you want to "fill down" just below the target cell,
as per your original post,

Put in AO12:

=IF(LEN($AO$11*100)=ROW(A1),MID($AO$11*100,ROW(A1 ),1)+0,"")

Copy AO12 down until blanks "" appear,
signalling exhaustion of digits (to max 2 d.p.) in the target cell: AO11

--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik <atyahoo<dotcom
---
"hyyfte" wrote in message
...

=mid is not working because I have a decimal point between the numbers.


here's a better example:

Cell AO11 = 13.00
I want:
AJ11 = 1
AK11 = 3
AM11 = 0
AN11 = 0

My problem is to 0 is coming up as a blank cell instead of showing the
zero. Is there any way to show the zero?


--
hyyfte
------------------------------------------------------------------------
hyyfte's Profile:

http://www.excelforum.com/member.php...o&userid=13187
View this thread: http://www.excelforum.com/showthread...hreadid=265470



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Four digit numbers need to be split up

hyyfte,

First, convert your the number in your cell (AO11 = 13.00) to text by using
the following formula: =TEXT(AO11,"##.00")

Then, use the MID function to extract every digit.

Good Luck!

JoCa

"hyyfte" wrote:


=mid is not working because I have a decimal point between the numbers.


here's a better example:

Cell AO11 = 13.00
I want:
AJ11 = 1
AK11 = 3
AM11 = 0
AN11 = 0

My problem is to 0 is coming up as a blank cell instead of showing the
zero. Is there any way to show the zero?


--
hyyfte
------------------------------------------------------------------------
hyyfte's Profile: http://www.excelforum.com/member.php...o&userid=13187
View this thread: http://www.excelforum.com/showthread...hreadid=265470


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Four digit numbers need to be split up

On Fri, 1 Oct 2004 10:34:14 -0500, hyyfte
wrote:


=mid is not working because I have a decimal point between the numbers.


here's a better example:

Cell AO11 = 13.00
I want:
AJ11 = 1
AK11 = 3
AM11 = 0
AN11 = 0

My problem is to 0 is coming up as a blank cell instead of showing the
zero. Is there any way to show the zero?


These should work for both of your examples, and others I could think of with
similar formats:

=LEFT(SUBSTITUTE(TEXT(AO11,"0.0000"),".",""),1)
=MID(SUBSTITUTE(TEXT(AO11,"0.0000"),".",""),2,1)
=MID(SUBSTITUTE(TEXT(AO11,"0.0000"),".",""),3,1)
=MID(SUBSTITUTE(TEXT(AO11,"0.0000"),".",""),4,1)



--ron
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
entering 16 digit numbers - last digit turns to zero dreamer New Users to Excel 4 May 9th 09 01:04 AM
Split 5 digit number into 5 cells Forum Freak Excel Discussion (Misc queries) 9 February 29th 08 09:59 AM
Need to split a 17 digit number into 17 cells by paste function. JIMBO Excel Discussion (Misc queries) 2 October 11th 07 04:29 AM
16 DIGIT NUMBERS IN CELL WITHOUT LAST DIGIT BEING A ZERO jnkell Excel Worksheet Functions 2 December 18th 04 07:13 PM
Four digit numbers need to be split up hyyfte[_22_] Excel Programming 2 October 1st 04 03:39 PM


All times are GMT +1. The time now is 12:22 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"