Vlook up to return text unless the cell contains a certain phrase in which case I want it to look and return another cell?

Noswen869

New Member
Joined
Jul 18, 2023
Messages
14
Office Version
  1. 2021
Platform
  1. Windows
Hello!

I'm hoping there is a formula which allows me to effectively use a vlookup to return whatever text is in a certain cell BUT if that cell contains the phrase "skip" or "skip 2" I want the vlookup to look at a different cell instead (unless that too contains "skip"/"skip 2" etc)

Is this possible? Any help would be much appreciated
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Without this last phrase "(unless that too contains "skip"/"skip 2" etc)" it could be done with IF function, like =IF(originalvlookup<>"skip";originalvlookup;taking_care_of_skip_situation)
But if that can be recursive (next one could be skip 2 and than skip and next skip 3)... probaly VBA (possibly UDF written in VBA) shall be used.

If allow VBA use, sample data layout and expected results would make programming much easier.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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