Google Sheets – Finding and Displaying Matching Values Based on Two Criteria

google sheets

I have created a demo spreadsheet to help explain.

(This is a small set of example data, the real set has more values [and the data may or may not be there from week to week])

I will have a static list of dimension values (in the example it is Source/Medium values) in the Report sheet. I want to compare the performance of a metric from week to week (Pageviews per Visit in the example)

Wanting to automate the getting of the appropriate values from Sheet1 and populate the Report sheet's corresponding empty cells with them

For example, cell B2 of the Report sheet would contain the value 6.05, and so on

Best Answer

Not sure there is a way to display a matching value base on two criteria - wouldn't be the first time I was wrong though.

In the meantime, you could create three queries and query each week individually, then you could do a vlookup to get the data into your table. I created a Google Spreadsheet. You should be able to edit this, etc.

If you want to do more automation, for example, have the report run every Monday morning and have it sent to your email, you can use my blog post and scroll down to the Using Triggers and Classes to Automate your Google Analytics Spreadsheet Delivery section.

Best of luck!