eliguillot
New Member
- Joined
- Dec 19, 2017
- Messages
- 4
I have a file for every workday over the past few months and want to average some of the values that are in the relative same location in each workbook.
I currently have a master workbook that has a list of values that I am using for the "criteria" in the AVERAGEIF formula.
For each item in the A column of my master workbook I want to average all of the instances of it across every file in the directory.
Basically I want to have "=AVERAGEIF(all B columns in the worksheet named "PRODUCTION" in each workbook, the text criteria in the cell next to this one in my master workbook, values in column F of the same row as the subject criteria I'm averaging)
Please let me know if anymore clarification is needed.
I've been doing some research and it seems that a macro would be the best bet. I have never written a macro, but am relatively familiar with coding logic.
I don't know how to write the formula into the macro.
I currently have a master workbook that has a list of values that I am using for the "criteria" in the AVERAGEIF formula.
For each item in the A column of my master workbook I want to average all of the instances of it across every file in the directory.
Basically I want to have "=AVERAGEIF(all B columns in the worksheet named "PRODUCTION" in each workbook, the text criteria in the cell next to this one in my master workbook, values in column F of the same row as the subject criteria I'm averaging)
Please let me know if anymore clarification is needed.
I've been doing some research and it seems that a macro would be the best bet. I have never written a macro, but am relatively familiar with coding logic.
I don't know how to write the formula into the macro.