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:

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Watch MrExcel Video

Forum statistics

Threads
1,122,224
Messages
5,594,915
Members
413,952
Latest member
JGer

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
Top