Index-Match that pulls all values from an excel

Teleporpoise

New Member
Joined
May 23, 2019
Messages
31
Hello Mr. Excel Friends,

I have an excel sheet that keeps track of the status of some items, broken into OK or NOK status. I need a log of all NOK parts in another sheet, I have tried an index match function and successfully pulled the first match row of data (as in, it found the first NOK row, and copied it into the other sheet). I cannot seem to make it find the values after that first row.

Can I do this via excel equations alone? Do I need VBA? If I need VBA, how would that code look like?

Thanks!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
See if this example helps


A
B
C
D
1
Item​
Status​
NOK List​
2
Item1​
OK​
Item2​
3
Item2​
NOK​
Item4​
4
Item3​
OK​
Item5​
5
Item4​
NOK​
Item7​
6
Item5​
NOK​
Item10​
7
Item6​
OK​
8
Item7​
NOK​
9
Item8​
OK​
10
Item9​
OK​
11
Item10​
NOK​
12

Formula in D2 copied down
=IFERROR(INDEX(A$2:A$11,AGGREGATE(15,6,(ROW(A$2:A$11)-ROW(A$2)+1)/(B$2:B$11="NOK"),ROWS(D$2:D2))),"")

M.
 
Upvote 0
Hi M,

Thank you for your response! I think I was unclear in my question though, because what I need is to copy the WHOLE row into another log book, as in another separate workbook. The items that are divided into OK and NOK have other data correlated with them such as date, name of person making decision, etc. Can that still be done?
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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