# Beyond my skill

#### J8888PX

##### New Member
Hi all,

I need some help with a complex function.

I am looking for bipartisanship in legislative bills. I have:

column A, Legislators name
column B, Party affiliation for legislator
column C, Sponsor names of an individual bill

An example:
For legislator Wilkins, a Democrat, I want to know if any bills he sponsored were also cosponsored by any republicans.

So the excel function should identify wilkins name in column C, identify other names in the column C cell associated with Wilkins, find those associated legislators within column A, and then match that to column B. If there are republicans associated with the bill, then that bill should count as bipartisan.

Thus if Wilkins sponsored 5 bills, I want to know how many of those bills were also sponsored by Republicans.

I open to changing how many and whats in each column but I have thousands of bills to review... any help automating would be VERY helpful.

I've tried VLOOKUP, COUNTIF, IF, MATCH, SUMPRODUCT, and various combinations without success.

Thank you again!

#### James006

##### Well-known Member
Hi,

You should make your life a lot easier ... and Insert a Pivot Table ... :wink:

Hope this will help

#### J8888PX

##### New Member
Hi,

You should make your life a lot easier ... and Insert a Pivot Table ... :wink:

Hope this will help
Thanks James... unfortunately I don't know pivot tables. Not something I've ever needed before.

#### hiker95

##### Well-known Member
J8888PX,

Welcome to the MrExcel forum.

Pivot Intro
http://peltiertech.com/Excel/Pivots/pivotstart.htm

Office 2010 Class #36 : Excel PivotTables Pivot Tables 15 examples (Data Analysis) - YouTube

Getting Started with Pivot Tables

http://www.contextures.com/xlPivot01.html#Start

Overview of PivotTable and PivotChart reports
http://office.microsoft.com/en-gb/excel-help/overview-of-pivottable-and-pivotchart-reports-HP010342752.aspx

Build a Pivot Table in Excel VBA
http://www.brainbell.com/tutorials/Excel_VBA/Build_A_Pivot_Table_In_Excel_VBA.html

Excel 2013 PowerPivot Basics #01 : Introduction To PowerPivot for Excel 2013 - YouTube

To create my Dashboard I use this small ebook: Create a Dashboard using PivotTable - Roger F. Silva
https://www.amazon.com/Create-Dashboard-using-PivotTable-Excel-ebook/dp/B01EO923M0/ref=sr_1_3?s=digital-text&ie=UTF8&qid=1486600546&sr=1-3

Last edited:

1,082,297
Messages
5,364,370
Members
400,792
Latest member
Dxmiian

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...