Vlookup and/or Index Help

hajiali

Well-known Member
Joined
Sep 8, 2018
Messages
626
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: [TABLE="width: 500"]
<tbody>[TR]
[TD]2[/TD]
[TD][/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]1[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD][/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]#N/A[/TD]
[TD]5[/TD]
[TD]13[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD][/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]

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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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