?
Solved

MS excel

Posted on 2011-02-20
12
Medium Priority
?
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 668 total points
ID: 34940710
I would do otherwise.

I would keep sentence numbers in column A, and sentences in column B.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 664 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 668 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

771 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