Return value if there is an #N/A error

mattbnorris

New Member
Joined
Sep 17, 2019
Messages
13
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
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

mattbnorris

New Member
Joined
Sep 17, 2019
Messages
13
'Lookup list'PastedVLOOKUPNew (formula needed)
#245#245#245#233
#267#233#N/A#288
#244#267#267
#235#244#244
#266#288#N/A
#235#235
#266#266

<tbody>
</tbody>
Apologies, should have done a table to start.
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
43,476
Office Version
365
Platform
Windows
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
 

Forum statistics

Threads
1,089,483
Messages
5,408,526
Members
403,212
Latest member
Rvbicon

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top