LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Listing Projects based on Manager Name

You can try out the below macro. If you are new to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()

Sub SortandInsert()

Dim lngLastRow As Long, lngRow As Long
lngLastRow = Cells(Rows.Count, "A").End(xlUp).Row

Range("A1").Resize(lngLastRow, 2).Sort _
Key1:=Range("A1"), Order1:=xlAscending, _
Key2:=Range("B1"), Order2:=xlAscending, _
Orientation:=xlTopToBottom

For lngRow = lngLastRow To 2 Step -1
If Range("A" & lngRow) < Range("A" & lngRow - 1) Then _
Rows(lngRow).Insert
Next

End Sub


If this post helps click Yes
---------------
Jacob Skaria


"Pritesh" wrote:

No I can't do that, the data keeps changing, its in thousands of rows having
multiple records which keeps repeating.
--
Regards,
Pritesh


"Mike H" wrote:

Hi,

The simplest way is to filter the data on column A to display manager 1 and
the assigned projects.

Mike

"Pritesh" wrote:

I have huge data containing running project details, wherein I need to
list-out Names of Projects under various Managers. So a manager can have 1 or
2 or 10 projects under him.

Pls suggest me solution/formula based on below output requirement.

Example Input:

A B
1 Mngr1 Proj1
2 Mngr2 Proj3
3 Mngr1 Proj2
4 Mngr1 Proj5
5 Mngr2 Proj4


Example- Reqd Output:

A B
1 Mngr1 Proj1
2 Mngr1 Proj2
3 Mngr1 Proj5
4
5 Mngr2 Proj3
6 Mngr2 Proj4
7


Regards,
Pritesh

 
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
help with projects Mike Excel Discussion (Misc queries) 0 February 10th 07 10:51 AM
Create a row listing based on a lookup value JBush Excel Worksheet Functions 4 January 10th 07 02:33 AM
Listing data based on a referneced criteria Mick Excel Worksheet Functions 9 December 17th 06 01:28 PM
Scheduling Projects Skip2Maloo Excel Discussion (Misc queries) 1 July 27th 06 08:44 PM
listing values to choose from based on value in another cell MT Excel Discussion (Misc queries) 1 September 12th 05 01:37 PM


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