How to use a VLOOKUP across multiple columns?

Joined
Jul 27, 2017
Messages
24
Hi all,

I'm hoping someone has an answer to this issue that I am am running in to. I am working with a not so eloquently designed spreadsheet to begin with, but hopefully that won't bog down what I am trying to do. Here is a simplified version:
Table 1

Defect ID (Column A)State 1 (Column B)State 2 (Column C)State 3 (Column D)
1Texas
2CaliforniaTexas
3ColoradoMaineTexas
4New YorkColorado

<tbody>
</tbody>

Table 2

State Name (Column A)# of Defects (Column B)
Texas
3
California1
Colorado2
Maine1
New York1

<tbody>
</tbody>

What formula do I need to put in Table 2, Column B to be able to double-click on the cell and open up Table 1 to be filtered to rows that only show the Defects associated with the corresponding state? Is it a version of a VLOOKUP?

Any insight into this issue would be greatly appreciate, thank you in advance!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
You could use countif...​

=COUNTIF(B2:D5,A8)

A8 is a cell holding the state to count, say Texas
 
Last edited:
Upvote 0
Hey Jonmo1,

Thanks for the response! That'll work to do a count of how many defects are associated with the state, but I am looking for a way to not only see the count of the number of defects but to be able to double-click on the count and pull up the rows that make up that count - just as you can do in a pivot table. Any ideas on how to make that happen?
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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