Indexing Horizontally

krazyness

New Member
Good Evening,

I've been spending hours trying to achieve this and I believe I'm close but about to give up. Below is my data.

 1 3810​ V3 1/12/2016​ 21.4​ 0​ 0​ 137.8​ 137.8​ PIF BJ M AH 3/1/2019​ 2801​ 3810​ 3810​ 2801​ 2 3811​ V39 1/12/2016​ 117.56​ 0​ 0​ 0​ 0​ LGL BJ M AH 3/1/2019​ 2801​ 3811​ 3 3812​ V30 1/12/2016​ 155.31​ 0​ 0​ 0​ 0​ LGL BJ M AH 3/1/2019​ 2801​ 3812​ 4 3813​ V301 1/12/2016​ 217.27​ 217.27​ 0​ 0​ 0​ XRC BL J AH 3869​ 3813​ 3813​ 3869​

P is a Vlookup from an entirely different workbook. It finds:
Excel Formula:
``=IFERROR(VLOOKUP(B62,[300codes.xlsx]alrtj941!\$C:\$D,1,FALSE),"")``

Q is
Excel Formula:
``=IF(P62="", "", (VLOOKUP(P62,B:N,13,FALSE)))``

What I now need is to count the times that row Q exists in row N when P and Q are going to be blank because they didn't meet the Vlookup criteria.

Excel Formula:
``=INDEX(\$B\$2:\$B\$6, SMALL(IF(A\$2:\$A\$9="excel", ROW(\$A\$2:\$A\$6)-ROW(\$A\$2)+1), COLUMN(A1)))``

I Converted it to:

Excel Formula:
``=INDEX(O:O, SMALL(IF(N:N=Q62,ROW(N:N)-ROW(N:N)+1), COLUMN(N62)))``

and fail.

Any Help would be much appreciated.

Thanks!

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Replies
2
Views
228
Replies
2
Views
228
Replies
23
Views
2K
Replies
6
Views
877
Replies
3
Views
498

1,127,445
Messages
5,624,817
Members
416,056
Latest member
VARSHA V VASWANI

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.

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

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