Help!!!

ag22

New Member
Joined
Aug 1, 2006
Messages
3
Hi,

Once again, I need your expertise. The sheet 1 contains the data. On the the sheet 2, I need to fill up the information on Project column. For example, Christan = Project A, Donna = Project A and Project B. What would be the formula to do this action? Thanks again.

Sheet 1
Project A Project B
Donna Shiela
Neil Sharon
Christian Ogie
Mel Neil
Larry Donna
Shiela Jose
Jerry Rhian


Sheet 2
Name Project
Christian
Donna
Jerry
Jose
Larry
Mel
Neil
Ogie
Rhian
Sharon
Shiela
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,372
Assumptions...

Sheet1!A2:B8 contains the source data

Sheet2!A2:A12 contains the llist of names

Formula..

Sheet2!B2, copied down and over to Column C:

=IF(COLUMNS($B2:B2)<=COUNTIF(Sheet1!$A$2:$B$8,$A2),INDEX(Sheet1!$A$1:$B$1,SMALL(IF(Sheet1!$A$2:$B$8=$A2,COLUMN(Sheet1!$A$2:$B$8)-COLUMN(Sheet1!$A$2)+1),COLUMNS($B2:B2))),"")

Note that the formula needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,870
Hi ag22

Another solution

In Sheet2!B2

Code:
=SUBSTITUTE(IF(ISNUMBER(MATCH(A2,Sheet1!A:A,0)),"Project A","")&IF(ISNUMBER(MATCH(A2,Sheet1!B:B,0)),"Project B",""),"APr","A and Pr")
Copy down

Hope this helps
Book1
ABCD
1ProjectAProjectB
2DonnaShiela
3NeilSharon
4ChristianOgie
5MelNeil
6LarryDonna
7ShielaJose
8JerryRhian
9
Sheet1
Book1
ABCD
1NameProject
2ChristianProjectA
3DonnaProjectAandProjectB
4JerryProjectA
5JoseProjectB
6LarryProjectA
7MelProjectA
8NeilProjectAandProjectB
9OgieProjectB
10RhianProjectB
11SharonProjectB
12ShielaProjectAandProjectB
13
14
Sheet2
 

Watch MrExcel Video

Forum statistics

Threads
1,113,849
Messages
5,544,647
Members
410,627
Latest member
georgealice
Top