Vlookup and/or Index Help

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
623
Office Version
  1. 2016
Platform
  1. Windows
Hey everyone in Column A I have some random numbers and in Column C I have The missing numbers From Column A. Ex:
21
35
47
68
910
#N/A111
14
12
#N/A513
1815

<tbody>
</tbody>

Using SMALL(IF(COUNTIF($A$1:$A$130,ROW($1:$130))=0,ROW($1:$130),""),ROW(A1)) IN COLUMN C1 and dragdown

What I need done in Column B is if anywhere column A=ISNA than B to pull the value in C using the above ex. B6=1 and B8=5. Also if the value of A3 goes from 4 to #N/A than column C does give me 1,4,57,8 etc using the formula above so therefore the value of B3=1, B6=4, and B8=5

I think this needs an if with index formula or vlookup but I don't know how to put it together. any help and/or ideas would be greatly appreciated
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,

Would this work for you:


Book1
ABC
12 1
234
3#N/A15
467
598
6#N/A410
71411
8#N/A512
91813
Sheet525
Cell Formulas
RangeFormula
B1=IF(ISNA(A1),INDEX(C$1:C$9,COUNTIF(A$1:A1,#N/A)),"")


Change/adjust cell references/range as needed. Formula copied down.
 
Last edited:
Upvote 0
JTAKW This works great I really appreciate it
 
Last edited:
Upvote 0
Hmmm. no, my formula will Count Real #N/A errors.

EDIT: See your edit above.

You're welcome.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

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