# Help!!!

#### ag22

##### New Member
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying
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!

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

Replies
2
Views
501
Replies
1
Views
174
Replies
7
Views
256
Replies
1
Views
385
Replies
2
Views
522

1,219,997
Messages
6,151,366
Members
451,023
Latest member
dwalc

### 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.

### Which adblocker are you using?

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

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