IF with Vlookup

JDS2021

New Member
Joined
Sep 10, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello everyone, I will really use some help from all you experts in MS Excel..........

I have two tabs
Tab A: Name, Status (Blank), C, D
Tab B: Name, Status, C, D, E
I would like to do a lookup for a TabA:Name in TabB: Name and if matches return value of TabB:Status field in TabA:Status field

I tried something like this but not working:

=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:B,11,FALSE),"No Match")
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to the Board!

For one thing, the range you are looking up is only one column wide (see part of formula highlighted in red), but you are trying to tell Excel to return the 11th column of that range (see blue highlighted part).
Rich (BB code):
=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:B,11,FALSE),"No Match")
You cannot return the 11th column of a 1 column range.
 
Upvote 0
Hello, thanks a lot for the quick response. I actually have multiple columns in TabB (around 40+) and I was looking to add value from Column 11 from TabB to TabB if the value for B column matches in both tabs
 
Upvote 0
Arguments 2 and 3 of the VLOOKUP function depend on each other.
Argument 3 tells it which column from the columns listed in argument 2 to return.
"B:B" is only one column. So you cannot return the 11th column of "B:B".
It would need to be at least "B:L", i.e.
Rich (BB code):
=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:L,11,FALSE),"No Match")
 
Upvote 0
Solution
Welcome to the Board!

For one thing, the range you are looking up is only one column wide (see part of formula highlighted in red), but you are trying to tell Excel to return the 11th column of that range (see blue highlighted part).
Rich (BB code):
=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:B,11,FALSE),"No Match")
You cannot return the 11th column of a 1 column range.
Welcome to the Board!

For one thing, the range you are looking up is only one column wide (see part of formula highlighted in red), but you are trying to tell Excel to return the 11th column of that range (see blue highlighted part).
Rich (BB code):
=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:B,11,FALSE),"No Match")
You cannot return the 11th column of a 1 column range.
 
Upvote 0
Arguments 2 and 3 of the VLOOKUP function depend on each other.
Argument 3 tells it which column from the columns listed in argument 2 to return.
"B:B" is only one column. So you cannot return the 11th column of "B:B".
It would need to be at least "B:L", i.e.
Rich (BB code):
=IFERROR(VLOOKUP($B2,'New Dom9 Inventory Dump'!B:L,11,FALSE),"No Match")
Perfect, thanks a lot for saying my day. I replaced B with column J and getting proper replacement values.

Once again thanks for quick response and all your help. Have a nice weekend!!!

Regards

J
 
Upvote 0
You are welcome.
Glad I was able to help!
:)
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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