Vlookup Help and if then statement?

rentonhighlands

Board Regular
Joined
Jul 31, 2014
Messages
110
Hello:
I want to write a vlookup statement but I also need to combine it with a if then statement I believe.

This is what I have
COL C has a list of codes. I am Vlookup against these codes.
Using the codes listed in COL C I am going to pull data from COL V (port)
Using the codes listed in COL C I am going to pull data from COL W (access)

The rules I want to follow are
Pull date from COL V and W
If COL V is blank then provide data from col T
If COL W is blank then provide data from col U
If COL V has a value and COL T is Orange then provide data from COL T
If COL W has a value and COL U is Orange then provide data from COL U

What are some formulas I can write to make this work?

Thanks
 

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"
"is Orange" as in the fill color? Can't do that from any formula function. If that is a conditional format, you'll have to perform the same calculation that the conditional formatting uses.
 
Upvote 0
sorry I can not share my sheet. The orange colors are hand colored cells by another person. Would something like this work? Can I nest a function inside VLOOKUP that says if COL T is greater or less then Col V then use the value from COL T? And to add If the value in COL U is greater or less then COL W then use value in COL U.
 
Upvote 0
You might use a "helper column" to provide the correct value between T & V. Then have your VLOOKUP just return that value.
While there is a lack of elegance in the solution, it is sometimes easier to follow, especially if that will be shared or inherited by someone else later.
 
Upvote 0

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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