Hi, I have two columns: Factory and Margin. I want to do an average only on factories from a specific country. The factory/country connection is available in separate table.
Hi, I have two columns: Factory and Margin. I want to do an average only on factories from a specific country. The factory/country connection is available in separate table.
Last edited by jam1n; 05-26-2022 at 04:31 PM.
Here is a Power Query solution attached in the file
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
By Factory (Place in G7 and drag formula down through G10
Is ChinaPlease Login or Register to view this content.
Is NOT ChinaPlease Login or Register to view this content.
Please Login or Register to view this content.
Many ways to go about this...its what you wish to do in the end... Just like where it says China in the above... that can be a reference to the name on the sheet
Say yo used your F Column, put this in H since we put the straight average in G with the suggested above...
H7= Average if is Country
and in IPlease Login or Register to view this content.
I7 = Average if is NOT Country
Please Login or Register to view this content.
-If you think you are done, Start over - ELeGault
Love this, love power query. However, power query isnt an option here. thank you though!
impressive! Thanks so much that is perfect.
PQ aside - does what I gave work? or you still looking for more? - if it does dont forget to set this to resolved!
ELeGault - yes, your response is exactly what I needed. I replied to alansidman before I saw your post.
Thanks all.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks