• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

Searching for data based on a set list in select rows.

Column A is the line number - left most digit.
Column B contains a list of part numbers
Column D contains a list of part numbers to be matched up to those numbers in column B
When those numbers in D match up with numbers in B, that cell in D turns green.

Would it be possible to ask "enter line number" so the search and comparing  only looks at those line numbers (rows)

Thanks for any suggestions.

Column A :
1.1
1.1.1
1.1.2
1.1.3
3.1
3.1.1
3.1.2
3.1.3

Column B
List of part numbers

Column D
477-003
477-004
477-005
477-006
0
dgd1212
Asked:
dgd1212
  • 5
  • 3
1 Solution
 
gowflowCommented:
your question is not clear. You are missing items of Col B.


When those numbers in D match up with numbers in B, that cell in D turns green.

this is done in this workbook but for sure wit the data you supplied as there are no values in Col B then there are now no Green Cells.
This is done thru Conditional formatting you select Col D as a whole and choose Manage Rules and click on Add New Rule and from the list choose the last one Use Formula to Determine which cell to format and put this in the formula
=AND(D1=B1,B1<>"",D1<>"")
Press on Format and choose Fill and choose the Green that you want.
press ok till you close Conditional formatting.

Then you mention:


Would it be possible to ask "enter line number" so the search and comparing  only looks at those line numbers (rows)

What Search are you talking about ??  for sure we can do that but it is not clear what you want.

Please clarify.
gowflow
CondFormat.xlsx
0
 
dgd1212Author Commented:
Column A is the line number. (The item has various parts hence the item has many line X's)

Column B is all the part numbers that make up the part for a line item.

Column D are the part numbers I am looking to compare against all the part numbers for a line item. in this example it is the first item, Line 1

Column D contains part numbers for a particular device that could be on any line of an order.

When each part number of B is compared to D, if they match then that number in D is highlighted.

I hope that helps

Thank you

A              Column B                Column D
1.1              8573088-001            
1.1.1      8573088-013            
1.1.2      8571499-024            8571499-003
1.1.3      8573088-002            8571499-004
1.1.4      8572989-001            8571499-006
1.1.5      8573088-007            8571499-007
1.1.6      8572396-048            8571499-008
1.1.7      8573088-003            8571499-009
1.1.8      8572396-004            8571499-012
1.1.9      8573088-006            8571499-013
1.1.10      8571499-003            8571499-014
1.1.11      8571499-018            8571499-015
1.1.12      8571499-020            8571499-016
1.1.13      8571499-012            8571499-017
1.1.14      8571499-015            8571499-018
1.1.15      8571499-057            8571499-019
1.1.16      8571499-013            8571499-020
1.1.17      8571499-014            8571499-023
1.1.18      8573088-004            8571499-024
1.1.19      8572396-033            8571499-025
                                          8571499-026
                                          8571499-027
                                          8571499-057
0
 
gowflowCommented:
yes and no

I do not understand Col A
what Col A has to do with comparing an item of B and D ???

gowflow
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
gowflowCommented:
Any news to explain better or answer my questions in previous comment ?
gowflow
0
 
dgd1212Author Commented:
Remove column A.  As mentioned each cell of D compares itself to every cell in B. When true, that cell in D is highlighted. Thanks
0
 
gowflowCommented:
ok got it !!!

Is that what you want ?
1) Select Column D (the entire Column)
2) Press on Conditional Formating
3) Manage Rules
4) Create New Rule
5) last item by Formula
6) Paste the below formula in the formula bar
=AND(MATCH(D1,$B:$B,0)<>0,B1<>"",D1<>"")
7) Choose under the button format a color (I choose in the attached file Green)
8) Press OK and Make sure the Range is D:D
9) Exit Conditional formatting.

The result is that if any of the occurrence exist at least once in Col B then the occurrence in col D is highlighted.

Hope this is what you were looking for.
gowflow
CondFormat.xlsx
0
 
dgd1212Author Commented:
Thanks You! Works as needed.
0
 
gowflowCommented:
Finally !!! glad I could help.
gowflow
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now