Return value if there is an #N/A error

mattbnorris

New Member
Joined
Sep 17, 2019
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Okay so I have a list of numbers that will be pasted next to an already placed VLOOKUP function, this VLOOKUP will lookup the numbers pasted in another list. This means the VLOOKUP returns a list of all the numbers that already exist in the 'lookup list' and then #N/A if a new number is there. I want a formula that returns those new numbers... for example

'Lookup list' Pasted VLOOKUP New (formula I'm looking for)
#245 #245 #245 #233
#267 #233 #N/A #288
#244 #267 #267
#235 #244 #244
#266 #288 #N/A
#235 #235
#266 #266

Thanks,
Matt
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
[TABLE="width: 500"]
<tbody>[TR]
[TD]'Lookup list'[/TD]
[TD]Pasted[/TD]
[TD]VLOOKUP[/TD]
[TD]New (formula needed)[/TD]
[/TR]
[TR]
[TD]#245[/TD]
[TD]#245[/TD]
[TD]#245[/TD]
[TD]#233[/TD]
[/TR]
[TR]
[TD]#267[/TD]
[TD]#233[/TD]
[TD]#N/A[/TD]
[TD]#288[/TD]
[/TR]
[TR]
[TD]#244[/TD]
[TD]#267[/TD]
[TD]#267[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]#235[/TD]
[TD]#244[/TD]
[TD]#244[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]#266[/TD]
[TD]#288[/TD]
[TD]#N/A[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]#235[/TD]
[TD]#235[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]#266[/TD]
[TD]#266[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Apologies, should have done a table to start.
 
Upvote 0
Try this, copied down.

Excel Workbook
ABCD
1
2#245#245#245#233
3#267#233#N/A#288
4#244#267#267
5#235#244#244
6#266#288#N/A
7#235#235
8#266#266
9
new numbers
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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