Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to identify text (compare) in one sheet, then move it another


Hi!

I have a problem I hope someone here can help me with. I have tw
sheets in my excel file.

Sheet 1: A table of contents. All in the A column (e.g. "1.2.4 This an
that")
E.g.
1 Introduction
1.1 Purpose
2
3
3.1
3.1.1

Sheet 2: The entire document. An ID# in A and then the text in B.

What I want to do is to match all the ID's in sheet two to the ToC i
sheet one. I.e. I "simply" want each ID# for each heading in th
document to show up in sheet one. I also want all ID's under eac
heading to be inserted under each heading in the ToC.

It is all a requirement doc listing for all the requirements. Basicall
what I want to do is to list all the eq ID's in sheet two under with th
corresponding heading in sheet one

--
mag741
-----------------------------------------------------------------------
mag7417's Profile: http://www.excelforum.com/member.php...fo&userid=2841
View this thread: http://www.excelforum.com/showthread.php?threadid=49332

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default How to identify text (compare) in one sheet, then move it another


use word not excel.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


mag7417 wrote :


Hi!

I have a problem I hope someone here can help me with. I have two
sheets in my excel file.

Sheet 1: A table of contents. All in the A column (e.g. "1.2.4 This
and that")
E.g.
1 Introduction
1.1 Purpose
2
3
3.1
3.1.1

Sheet 2: The entire document. An ID# in A and then the text in B.

What I want to do is to match all the ID's in sheet two to the ToC in
sheet one. I.e. I "simply" want each ID# for each heading in the
document to show up in sheet one. I also want all ID's under each
heading to be inserted under each heading in the ToC.

It is all a requirement doc listing for all the requirements.
Basically what I want to do is to list all the eq ID's in sheet two
under with the corresponding heading in sheet one.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to identify text (compare) in one sheet, then move it another


You suggest I use word for what I want to do? Well, I wish I could but
am working with excel and to tell you the truth I don't understand you
comment. How could I accomplish what I want to do then?

Sincerely,

M

--
mag741
-----------------------------------------------------------------------
mag7417's Profile: http://www.excelforum.com/member.php...fo&userid=2841
View this thread: http://www.excelforum.com/showthread.php?threadid=49332

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default How to identify text (compare) in one sheet, then move it another


I use Excel for practically anything.
but for what you want to do MsWord seems a better tool.

it can autonumber your paragraphs, create an outline etc.

If you want to do that in Excel you've got to write a macro
like:

Sub CreateOutline()
Dim rngText As Range
Dim rngSumm As Range
Dim rngCell As Range
Dim lRow&

With Worksheets(1)
Set rngSumm = Intersect(.UsedRange, .Columns(1))
End With

With Worksheets(2)
Set rngText = Intersect(.UsedRange, .Columns(1))
End With

rngSumm.Clear
Set rngSumm = rngSumm.Cells(1)
For Each rngCell In rngText.Cells
If Len(rngCell) Then
lRow = lRow + 1
With rngSumm(lRow, 1)
.Hyperlinks.Add Anchor:=.Cells(1), _
Address:="", _
SubAddress:="'" & rngCell.Worksheet.Name & _
"'!" & rngCell.Address(), _
TextToDisplay:=rngCell.Text
End With
End If
Next

End Sub


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


mag7417 wrote :


You suggest I use word for what I want to do? Well, I wish I could
but I am working with excel and to tell you the truth I don't
understand your comment. How could I accomplish what I want to do
then?

Sincerely,

M.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to identify text (compare) in one sheet, then move it another


I just want to say that I appreciate the help. The thing is that I nee
to do it in excel. Not a lot of fun, but it still needs to be done.
will try to look at what you sent me. I think perhaps there may be som
errors in what you sent me but I am sure

--
mag741
-----------------------------------------------------------------------
mag7417's Profile: http://www.excelforum.com/member.php...fo&userid=2841
View this thread: http://www.excelforum.com/showthread.php?threadid=49332



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
need to compare two lists and identify cells with same numbers in Bockhamptoner Excel Discussion (Misc queries) 8 September 11th 08 11:34 AM
Compare two worksheets and identify common entries MarkT Excel Discussion (Misc queries) 3 November 8th 07 01:09 AM
HOW DO I COMPARE TWO SHEETS AND IDENTIFY WHICH CELLS DIFFER STEVE THE PARTS GUY Excel Discussion (Misc queries) 1 March 2nd 06 07:13 PM
compare two spreadsheets and identify records that have any change brenped Excel Discussion (Misc queries) 2 May 6th 05 02:09 PM
Compare and identify new data Dave Baffled Excel Programming 2 November 25th 03 06:14 PM


All times are GMT +1. The time now is 10:28 AM.

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"