VLOOKUP but not exactly

Infine

Board Regular
Joined
Oct 16, 2019
Messages
93
Office Version
  1. 365
Platform
  1. Windows
Hello,

I want to do a VLOOKUP on my master, then look for it in Sheet1 and if it finds it I want it to look at the columns next to it and then tell me if it is empty = "No data", if it has a value = "There is something here".
So I am not interested in the first VLOOKUP, but necessary to be able to locate the columns next to it. And I am not interested in VLOOKUP it, I just want to return another value such as "There is something here" or as stated below.

VBA Code:
=IF(ISNA(VLOOKUP(A196;'Sheet1'!$P$6:$U$1048576;6;FALSE));"No rebate";"Rebate in %")

So this is my current code but I noticed the issue is that it is looking up the first column. I am more interesting in the "6" but to go there I need to do VLOOKUP.

Anyone knows what to use for code instead? Or is the code above correct? If I VLOOKUP it return "0" if it is empty, which is why it not working properly? I want it to return "No rebate" if it is empty basically.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
That is the build version, The version of Office will be something like 2019, 2021 or 365
 
Upvote 0
That's the one, please update your profile to show that.

How about
Excel Formula:
=let(v;VLOOKUP(A196;'Sheet1'!$P$6:$U$1048576;6;FALSE);IF(ISNA(v);"Not found";IF(v="";"No rebate";"Rebate in %")))
 
Upvote 0
Solution
That's the one, please update your profile to show that.

How about
Excel Formula:
=let(v;VLOOKUP(A196;'Sheet1'!$P$6:$U$1048576;6;FALSE);IF(ISNA(v);"Not found";IF(v="";"No rebate";"Rebate in %")))
Thanks! It looks like it works! Learned something new as well!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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