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
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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!
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,767
Messages
6,126,774
Members
449,336
Latest member
p17tootie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top