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

  • Please do not use URL shorteners here.
    – ale
    Oct 3, 2015 at 17:18

1 Answer 1


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!

  • Thanks, I ended up using vlookup and doing more queries as suggested :)
    – Drewdavid
    Sep 19, 2013 at 16:30
  • Please do not use URL shorteners here.
    – ale
    Oct 3, 2015 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.