VLOOKUP UP PROBLEM

Una_321

New Member
Joined
Nov 11, 2020
Messages
9
Office Version
  1. 2011
Platform
  1. MacOS
Hello!

I have 2 spreadsheets, in the first there is a list of projects with associated IDs, in the second there is a list of contracts associated to the project IDs. There can only ever be one project line yet there can be several contract lines for one project.

I used VLOOKUP to include all info for all lines (both project and contract) into one spreadsheet in order to carry out data quality controls. This works well for cases where there are contracts associated to a project, however when there is no contract line associated to a project, the project line does not appear because the result of the vlookup is looking for project id from project level in the project id at contract level.

I assume VLOOKUP won't work in this case, can anyone suggest another formula or way around this?

Thanks in advance for your help!
 

Some videos you may like

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,872
Office Version
  1. 365
Platform
  1. Windows
The obvious way to solve the problem would be to add a "dummy" contract for each project when project is created
Then filter out the ones that are not required
 

Una_321

New Member
Joined
Nov 11, 2020
Messages
9
Office Version
  1. 2011
Platform
  1. MacOS
The obvious way to solve the problem would be to add a "dummy" contract for each project when project is created
Then filter out the ones that are not required
Thanks! I did essentially this.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,188
Messages
5,570,755
Members
412,340
Latest member
nikitesh95
Top