Modify VLOOKUP

RodneyC

Active Member
Joined
Nov 4, 2021
Messages
278
Office Version
  1. 2016
Platform
  1. Windows
I have this formula in cell Q3: =VLOOKUP(R3,'Revenue Name'!$A$2:$B$700,2,0) It works.

I need to modify it so it's looking in a tab named Membership and is looking in column D $D2:$D700 for the value in R3

=VLOOKUP(R3,'Membership'!$D$2:$D$700,2,0) but this produces a #REF error. I believe the issue is with the "2" in this formula and have changed it to 13 (13 being the difference between D and Q) and get the same #REF. I've changed it to -13 and now get a #VALUE error.

Any direction would be appreciated.

Thanks in advance
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
What column do you need to return the value from?
 
Upvote 0
What column do you need to return the value from?
Column D I think I see part of the problem. The value in R3 would be found in column C of Membership I've modified the formula to say this: =VLOOKUP(R3,Membership!$C$2:$D$700,-13,0) and still get a #VALUE error
 
Upvote 0
So you want the formula to return the same value that is in R3?
 
Upvote 0
The problem is that in the formula that works you have data in cols A & B of which you're grabing data from the B column (where the 2 comes in). In the new formula you just have data in Column D so 2 should be changed to 1.
 
Upvote 0
In the new formula you just have data in Column D so 2 should be changed to 1.
That assumes the OP wants to return the same value as is being looked-up, which seems pretty pointless. ;)
 
Upvote 0
Here's what I am trying to do... I want to start with looking at the value in R3. From there I want to look for that value in Membership D2:D700. If it finds it, display the value in Membership C2:C700
 
Upvote 0
Ok, how about
Excel Formula:
=INDEX(Membership!$C$2:$C$700,MATCH(R3,Membership!$D$2:$D$700,0))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,062
Messages
6,122,923
Members
449,094
Latest member
teemeren

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