Using Vlookup, If statements??

Dprobasco

New Member
Joined
Oct 15, 2023
Messages
12
Office Version
  1. 365
Platform
  1. MacOS
I have a spreadsheet with different worksheets in it.

Using two worksheets (Sheet 1 and Sheet 2). Sheet 1 has a list of names with unique ID numbers, and the service name(s) they can provide. You will see a person and their unique ID number can and does provide more than one service but the person and ID number are shown only once for each service they can perform.

Sheet 2 has a list of names and unique ID numbers of the people listed in sheet 1 but each name and ID number are listed once.

What I am trying to do is have Excel take each unique ID number in sheet 1, find that unique number in sheet two and every time it finds that unique number, place the associated service name in the proper column in sheet 2.

As an example, for Dennis A, when it finds the ID number on row 3, it will take the service name next to that ID number(in this case Fundraising) and place a Yes in the Fundraising column (Column J), then move to row 4 and do a similar action by placing a yes in the Transportation column (column k)

Any ideas?

Dale

Sample Excel.jpg
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hello, would this work for you (in G3):

Excel Formula:
=DROP(REDUCE("",F3:F5,LAMBDA(x,y,VSTACK(x,IF(ISTEXT(XLOOKUP(y&G1:L1,A3:A13&C3:C13,C3:C13)),"Yes","")))),1)
 
Upvote 0
Try this formula on Sheet2

Dante Amor
ABCDEFGH
1
2NameIDChorFriHomemakerFundraisingTran VolTel
3Den AE421   YesYes 
4Pau BE425  YesYes Yes
5
Sheet2
Cell Formulas
RangeFormula
C3:H4C3=IF(SUMPRODUCT((Sheet1!$A$1:$A$100=$B3)*(Sheet1!$C$1:$C$100=C$2)),"Yes","")
 
Upvote 0
Solution
Try this formula on Sheet2

Dante Amor
ABCDEFGH
1
2NameIDChorFriHomemakerFundraisingTran VolTel
3Den AE421   YesYes 
4Pau BE425  YesYes Yes
5
Sheet2
Cell Formulas
RangeFormula
C3:H4C3=IF(SUMPRODUCT((Sheet1!$A$1:$A$100=$B3)*(Sheet1!$C$1:$C$100=C$2)),"Yes","")
Try this formula on Sheet2

Dante Amor
ABCDEFGH
1
2NameIDChorFriHomemakerFundraisingTran VolTel
3Den AE421   YesYes 
4Pau BE425  YesYes Yes
5
Sheet2
Cell Formulas
RangeFormula
C3:H4C3=IF(SUMPRODUCT((Sheet1!$A$1:$A$100=$B3)*(Sheet1!$C$1:$C$100=C$2)),"Yes","")
[/RANGE
Cell Formulas
RangeFormula

Try this formula on Sheet2

Dante Amor
ABCDEFGH
1
2NameIDChorFriHomemakerFundraisingTran VolTel
3Den AE421   YesYes 
4Pau BE425  YesYes Yes
5
Sheet2
Cell Formulas
RangeFormula
C3:H4C3=IF(SUMPRODUCT((Sheet1!$A$1:$A$100=$B3)*(Sheet1!$C$1:$C$100=C$2)),"Yes","")
sorry for the delay in responding to your ideas.

Since I am more of a novice
Try this formula on Sheet2

Dante Amor
ABCDEFGH
1
2NameIDChorFriHomemakerFundraisingTran VolTel
3Den AE421   YesYes 
4Pau BE425  YesYes Yes
5
Sheet2
Cell Formulas
RangeFormula
C3:H4C3=IF(SUMPRODUCT((Sheet1!$A$1:$A$100=$B3)*(Sheet1!$C$1:$C$100=C$2)),"Yes","")
sorry for the delay in responding to your ideas.

Since I am more of a novice, I decided to use the If sumproduct solution.

It worked great. Had never used that before.

I will likely try the other solution just to gain more knowledge.

So grateful for your ideas and MrExcel. What a resource.

Dale
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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