Combining SUMPRODUCT, AVERAGEIF and Wildcards in a single formula

Olala

New Member
Joined
Feb 24, 2022
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hi,

I have a list of URLs from my company website.
I'm trying to calculate the average time spent on-page for one section of my website /company/blog/... (and all the pages that contains this URLs)
I'm assuming I need a combination of:
- SUMPRODUCT (to calculate the weighted time on-page based on page views),
- AVERAGEIF to calculate the average time spent on-page for the section
- Wildcards to include URLs that contains "/company/blog"

So far I have those two formula that works well individually, but I cannot find a way to combine them:

AVERAGEif($A$2:$A$500,"*.com/blog*",$C$2:$C$500)
SUMPRODUCT($C$2:$C$500,$B$2:$B$500)/$B$501

Is there any way to combine everything together? Do I need extra formulas?

Thanks in advance for your help!
 
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Upvote 0
From that cross-post link it appears that yours is a Google Sheets question. Can you confirm that is the case?
If so, since you have posted in the Excel Questions forum, we will move your thread to the appropriate forum:
1645692454937.png
 
Upvote 0
Hi Peter,

I use both Excel and Google Sheet.
Sorry I'm still not very familiar with the different sections of this forum.
I believe all the needed formulas will be available in Excel and Google Sheets as well.
 
Upvote 0
OK, thanks. In that case I will leave it here.
 
Upvote 0
I've just got the solution here in my cross-post:
 
Upvote 0

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