# Extract all entries from a list based on cell value

1. ## Extract all entries from a list based on cell value

Hi all,

I am trying to extract all entries of data from a report dependant on a alpha numeric reference

THE LIST
Column B has the reference, which constantly changing entries and amounts
Column H has the part reference number in it

CA2 has the desired alpha numeric number to report

In CC2 I would like this to show the first part numer
in CC3 the next one
in CC4 next one

upto 50 entries if they are in the "LIST"

hope this makes sense

I have tried the followi g formula which works ok, but it doesn't extract any duplicate entries

=INDEX(\$H\$2:\$H\$17, MATCH(0, IF(\$CA\$2=\$B\$2:\$B\$17, COUNTIF(\$CC\$1:\$CC1, \$H\$2:\$H\$17), ""), 0))

Many thanks for any help

2. ## Re: Extract all entries from a list based on cell value

If you are not using column CB, then you can put this formula in cell CB2:

=IF(H2=\$CA\$2,MAX(CB\$1:CB1)+1,"")

Copy this down to the bottom of your data (or beyond, to accommodate more data being added). Then you can use this formula in CC2:

=IFERROR(INDEX(\$H:\$H,MATCH(ROWS(\$1:1),CB:CB,0)),"")

then copy down as far as you need it.

Hope this helps.

Pete

3. ## Re: Extract all entries from a list based on cell value

Boom, that perfect many thanks

4. ## Re: Extract all entries from a list based on cell value

Hi Pete,

just found that if I use the same method for another set of data the formula carries on from the first set of data

Any way round this issue?

Thanks again

5. ## Re: Extract all entries from a list based on cell value

I'm not sure what you mean. It would help if you attached a sample Excel workbook.

To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

Pete

6. ## Re: Extract all entries from a list based on cell value

Sample file attached

Many thanks

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1