VLOOKUP issue

rck

New Member
Joined
Nov 17, 2011
Messages
33
Excel 2000
ABCDEF
1RD_NOOLD_DISTRICTNEW_DISTRICT
2LVA3006=VLOOKUP(A2,$E$2:$F$129,2,FALSE)=B2LVB1004
3LVA3016=VLOOKUP(A3,$E$2:$F$129,2,FALSE)LVB1014
4LVB1005=VLOOKUP(A4,$E$2:$F$129,2,FALSE)LVB2024
5LVB1015=VLOOKUP(A5,$E$2:$F$129,2,FALSE)LVB2034
6LVB2006=VLOOKUP(A6,$E$2:$F$129,2,FALSE)LVB2044
7LVB2016=VLOOKUP(A7,$E$2:$F$129,2,FALSE)LVB2054

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
All RDs

Excel 2000
ABCDEF
1RD_NOOLD_DISTRICTNEW_DISTRICT
2LVA3006#N/ALVB1004
3LVA3016#N/ALVB1014
4LVB10054LVB2024
5LVB10154LVB2034
6LVB2006#N/ALVB2044
7LVB2016#N/ALVB2054
All RDs




I would like to keep the value in B2 if it does not change based of the VLOOKUP formula. IF A2 does not match E2, then keep the existing value in B2. If it does match, then change the value in B2 to the value in F2.

The VLOOKUP formula in C3 works for changing the value, but inserts #N/A if it doesn't find a match.

Thanks in advance!
 
Last edited:

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Code:
=<code>if(isna(vlookup(</code>[COLOR=#333333][FONT=Verdana][/FONT][/COLOR][CENTER][COLOR=#333333][FONT=Verdana]A2,$E$2:$F$129,2,FALSE)),b2,[/FONT][/COLOR][COLOR=#333333][FONT=Verdana]A2,$E$2:$F$129,2,FALSE))[/FONT][/COLOR][/CENTER]
try this <code>

</code>
 
Upvote 0
Maybe try:

=IF(COUNTIF($E$2:$E$129,A2),IF(VLOOKUP(A2,$E$2:$F$129,2,FALSE)=B2,B2,VLOOKUP(A2,$E$2:$F$129,2,FALSE)),B2)
 
  • Like
Reactions: rck
Upvote 0
Solution
Does this formula do what you want?

=IFERROR(INDEX(F$2:F$129,MATCH(A2,E$2:E$129,0)),B2)
 
Upvote 0
Maybe this:

Code:
=IF(ISERROR(1/(VLOOKUP(A2,$E$2:$F$129,2,0)<>B2)),B2,VLOOKUP(A2,$E$2:$F$129,2,0))

Markmzz
 
Upvote 0
Does this formula do what you want?

=IFERROR(INDEX(F$2:F$129,MATCH(A2,E$2:E$129,0)),B2)

I just realized your are using XL2000. I do not have that version available, so I cannot test these, but I think one of these should should work for you. Try this one first...

=IF(COUNTIF(E$2:E$129,A2),INDEX(F$2:F$129,MATCH(A2,E$2:E$129,0)),B2)

and if it doesn't work, then try this one...

=IF(ISERROR(MATCH(A2,E$2:E$129,0)),B2,INDEX(F$2:F$129,MATCH(A2,E$2:E$129,0)))
 
Upvote 0
A small modification in the formula:

Code:
=IF(ISERROR(VLOOKUP(A2,$E$2:$F$129,2,0)),B2,VLOOKUP(A2,$E$2:$F$129,2,0))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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