Solved

MS excel

Posted on 2011-02-20
12
227 Views
Last Modified: 2012-05-11
is there a way to create a numbered list in a cell?  so if i'm at cell a1 and i start typing, come to the end of my sentence and hit enter, my first sentence would be numbered 1 and when i hit enter the next sentence would be 2
0
Comment
Question by:JeffBeall
12 Comments
 
LVL 42

Expert Comment

by:dlmille
ID: 34939920
Yes. An easy way is to type in column a - and put a formula in column b, starting at B1

[B1]=row() & ": " & A1

and copy that formula down.

I can give you more sophisticated stuff, but let me know if this works ok for you.

Dave
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34939943
See attached with a macro.  Be sure to clear if you edit a line above.

The code puts the row number followed by a ":" in front of what was typed.

See below and attached...

it checks for any changes in the first column...

NumberSentenceAuto-r1.xlsm

Dave
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Cells(1, 1).EntireColumn) Is Nothing Then
        Application.EnableEvents = False
        Target.Value = Target.Row & " : " & Target.Value
        Application.EnableEvents = True
    End If
    
End Sub

Open in new window

0
 
LVL 3

Accepted Solution

by:
Mantvydas earned 167 total points
ID: 34940710
I would do otherwise.

I would keep sentence numbers in column A, and sentences in column B.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 42

Expert Comment

by:dlmille
ID: 34940713
So, what are you saying.  Do what otherwise?
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34940731
Ah - type in column B and have column a formula?  Then set

[A1] = row() & ": " & B1

or try out the macro I posted.

Enjoy!

Dave

0
 
LVL 42

Assisted Solution

by:dlmille
dlmille earned 166 total points
ID: 34940795
ok - let me try again... here's the revised macro for sentence numbers in column A...

Dave
NumberSentenceAuto-r2.xlsm
0
 
LVL 45

Assisted Solution

by:patrickab
patrickab earned 167 total points
ID: 34941945
JeffBeall,

If you want to keep the list all in one cell then at the end of every line and when you want a new line within that cell use ALT+ENTER. That will insert a new line within the cell. When you have finished editing that cell just press ENTER.

Patrick
0
 
LVL 45

Expert Comment

by:patrickab
ID: 34941959
ps. Note: 1900 wasn't a Leap Year
0
 
LVL 45

Expert Comment

by:patrickab
ID: 34941962
Oops - Apologies - please ignore that comment it's in the wrong thread.
0
 
LVL 1

Author Closing Comment

by:JeffBeall
ID: 34943652
thanks for the help.
0
 
LVL 45

Expert Comment

by:patrickab
ID: 34943673
JeffBeall - Thanks for the points - Patrick
0
 
LVL 42

Expert Comment

by:dlmille
ID: 34945605
I'm not sure I understand the point distribution, but what the hey...

Dave
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question