Good Morning,
This is my first post, but have already learned so much from going through other posts on this forum. I always considered myself pretty handy when it came to excel, that is until i came to this forum and saw even more in depth coding. Thank you so much for all that you have already shown me and helped me with. But i have come upon one that i either cant wrap my mind around, or my mind is so fried from trying so many different formulas and not being able to come up with a solution.
Now for the problem:
I have a report that i pull and typically go through it manually each time and get the data i need from. This downloaded sheet "Motor KPI" has thousands of data points ranging from Column A-DD & can have anywhere to 100-3000+ Rows. I usually filter the top row and then just select the certain Operators and Rigs and then find the data i need and average it to get what i need.
I am wanting to create a workbook, that i can copy and paste the "Motor KPI" Sheet into and then in the "Avg ROP" sheet i type in the specific Operator & Rig in Columns A-B, then it auto filters the multiple sections based off the typed in Operator and Rig and filters through the "Phases" and then three additional sections based off the phase type , thus averaging each section from the Motor KPI sheet
Out of all the columns only 6 are needed to be filtered on Motor KPI Sheet:
Column A (Operator)
Column B (Rig)
Column Q (Rotate ROP)
Column R (Slide ROP)
Column S (Avg ROP)
Column CS (Phases) - Multiple Phases that Columns Q,R&S based off of. ( SUR: Surface, INT: Intermediate, INT2: Intermediate 2, INT2: Intermediate 2 / CRV: CURVE, CRV/LAT: CURVE/LATERAL, LAT: Lateral)
Then on Avg ROP Sheet
Column A (Operator) - Manually type in otherwise leave all data following blank if nothing typed in
Column B (Rig) - Manually type in otherwise leave all data blank if nothing typed in
Column D1 (Selected Phase)- Find all the rows in "Motor KPI" sheet that have SUR: Surface (Column CS) and then find the multiple selected data from columns Q, R, & S under selected phase and average the multiple rows of selected data in D3:F3
Column H1:X1 - Perform the same as above for each selected phase and sub category.
Column AB - Average all rows for selected operator/rig.
Im ok with using formulas, vba coding, or macros.
Bookmarks