VBA/Function to search criteria and return list of value in another sheet.

floragray

New Member
Joined
Jul 22, 2013
Messages
19
Hi All,

Could you please help me with the following(not sure if vba is needed or a regular function would do it):

I have a table like this(with exponentially more data) and on a separate sheet i want to set up a search functionality where in if i enter a specific account number in a cell(for eg A1) excel does a lookup in this table for that number, and for that row, all the headers(rules) of "NOK" values, are listed one below the other.

A/c NoRule 1Rule 2Rule 3Rule 4Rule 5Rule 6Rule 7
123NOKNOKNOKNOKNOKNOKNOK
124NOKNOKNOKNOKNOKNOK
125NOKNOKNOKNOK
126NOKNOKNOKNOKNOKNOK
127
128NOKNOKNOKNOKNOKNOK
129NOKNOKNOKNOKNOK
130
131NOKNOKNOKNOK
132NOKNOKNOKNOKNOKNOKNOK
133NOKNOKNOKNOKNOKNOK
134NOKNOKNOKNOKNOKNOK

<tbody>
</tbody>


Example:

A/c Number(Configurable)Rules NOK
131Rule 3
Rule 4
Rule 5
Rule 7

<colgroup><col><col></colgroup><tbody>
</tbody>




I am a new excel user and would really appreciate the help.

Thanks a ton!
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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