Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.setup
MTC MTC is offline
external usenet poster
 
Posts: 5
Default Shifting the contents of cells

Hi

I am a maths teacher and I want to be able to show how the decimal system
works. For example, take the number 123, I want each digit to be in its own
cell and then when I multiply be ten I want the contents of each cell to
shift left and add a zero., 123o, again with each digit in its own cell.

I know I will haved to write some code but I need some help to get going so
that I can read and write to a cell from a macro or something

Many thanks for any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.setup
external usenet poster
 
Posts: 2,646
Default Shifting the contents of cells

Hi MTC,

There is no need for any code! Fill in cells like below:
A1: 123 your example number
B1: create a validation list with values 1,10,100,1000
C1: insert formula =A1*B1
D1: insert formula
=IF(ISERROR(MID($C1,LEN($C1)-(9-COLUMN()),1)),"",MID($C1,LEN($C1)-(9-COLUMN()),1))
drag this formula to right until cell I1

Regards,
Stefi


€˛MTC€¯ ezt Ć*rta:

Hi

I am a maths teacher and I want to be able to show how the decimal system
works. For example, take the number 123, I want each digit to be in its own
cell and then when I multiply be ten I want the contents of each cell to
shift left and add a zero., 123o, again with each digit in its own cell.

I know I will haved to write some code but I need some help to get going so
that I can read and write to a cell from a macro or something

Many thanks for any suggestions.

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
Linking Groups of cells between workbooks vnacj-joe Excel Discussion (Misc queries) 4 June 14th 07 05:18 PM
Deleting cells and shifting "right" CDWhite Excel Discussion (Misc queries) 5 April 15th 06 02:50 AM
Insert contents of various cells in a column into one cell? TextCells Excel Discussion (Misc queries) 1 April 2nd 06 10:41 PM
Clear Contents - NonBold cells Steve Excel Discussion (Misc queries) 3 February 13th 05 11:36 PM
stop excel from shifting cells up when a query returns no data DrLostinExcel Excel Worksheet Functions 2 November 9th 04 05:44 PM


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

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

About Us

"It's about Microsoft Excel"