Use a Vlookup only when a separate column contains a certain text.

chewybar1986

New Member
Joined
Jul 29, 2024
Messages
5
Office Version
  1. Prefer Not To Say
Platform
  1. Windows
Hi All,

I'm trying to create a vlookup that only searches through rows where a separate column (not part of the vlookup formula) contains the word "CHG-529C" and the vlookup only uses those rows that contain that particular word.

So Column A is where CHG-529C will be which is completely separate from the vlookup. so I was thinking maybe some sort of IF function might work.

=IF($A:$A="chg-529c",(VLOOKUP(B2,$C:$N,12,FALSE)))

But this doesn't seem to work... It seems the problem is the fact I'm looking through a whole column and not just a singular Cell.... Any ideas??

Thanks in advance
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello, could you please answer these two questions: a) what do you mean by "contains": "is equal" or "contains"? b) what version of Excel are you using?
 
Upvote 0
Would this work then:

Excel Formula:
=INDEX(N:N,MATCH(1,(A:A="CHG-529C")*(C:C=B2),0),0)
 
Upvote 0
Solution
Unfortunately no, it just gives me an #N/A

Just to try and make it clearer i'm trying to get the correct Design status and the vlookup doesnt work because its looking at through column B to M and say the cell its trying to match is 2ASH00199-0002 it will give me the first match it finds so the formula will give me an answer as "Working" but i want the vlookup to only search through the rows that Column A have as CHG-529C.

So in this example the end goal would be to get the formula to turn up if the search was (2ASH00199-0001 is Released FML) (2ASH00199-0002 is Released FML) (2ASH00199-0003 is Released FML)

Change RequestPackage NumberNomenclatureChange Order #Type Version & Start UnitLotMethod of EmbodimentPart TypeInternal Design
Freeze Date
Target Release DateInternal SOP Need DateCustomer Need DateDesign Status
CR-032432-PO-NEW2ASH00199-0001Heat ShieldCO-032432-0232CVV5-CHG1774Assy
45159​
45173​
45187​
45199​
Working
CHG-529C2ASH00199-0001Heat ShieldCO-041087-0016Aft-CHG7035AftAtt + PM (or other Drawing Face Change)Assy
45835​
45849​
45863​
45877​
Released FML
CHG-529B2ASH00199-0001Heat ShieldCO-032432-0232AFT-CHG8864CVACB + 242 CATIAAssy
45364​
45378​
45394​
45408​
Planning
CR-032432-PO-NEW2ASH00199-0002Heat ShieldCO-032432-0232CVV5-CHG1774Assy
45159​
45173​
45187​
45199​
Working
CHG-529C2ASH00199-0002Heat ShieldCO-041087-0016Aft-CHG7035AftAtt + PM (or other Drawing Face Change)Assy
45835​
45849​
45863​
45877​
Released FML
CHG-529B2ASH00199-0002Heat ShieldCO-032432-0232AFT-CHG8864CVACB + 242 CATIAAssy
45364​
45378​
45394​
45408​
Planning
CR-032432-PO-NEW2ASH00199-0003Heat ShieldCO-032432-0232CVV5-CHG1774Assy
45159​
45173​
45187​
45199​
Working
CHG-529C2ASH00199-0003Heat ShieldCO-041087-0016Aft-CHG7035AftAtt + PM (or other Drawing Face Change)Assy
45835​
45849​
45863​
45877​
Released FML
CHG-529B2ASH00199-0003Heat ShieldCO-032432-0232AFT-CHG8864CVACB + 242 CATIAAssy
45364​
45378​
45394​
45408​
Planning
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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