MrsFraser07
New Member
- Joined
- Aug 16, 2017
- Messages
- 46
- Office Version
- 365
- Platform
- Windows
- MacOS
So.....this seems complicated to me but maybe someone here can help. What I'm looking to do is the following:
I have two worksheets in my spreadsheet. One has 2 columns of data, unique values (UWI) and dates. The other has corresponding data by month. What I want to do is lookup each UWI, find the corresponding month from the date, and then take the highest value in the first 6 months that it finds. Using the examples of my spreadsheet below, I want to take the UWI from Sheet 1 and the on prod date, go to sheet 2 and find that UWI and the first month it produced, in the first line for example it is 12/19/2009. Then take the highest value of Cal Dly Oil in the first 6 months. In this example it would be 183.95.
The way I can pull the data on Sheet 2 is from the beginning of time, so the data will always have the first 6 months for each UWI. Maybe the best way would be to find the UWI, find the first 6 values of Cal Dly Oil and then take the MAX of that? I'm just not sure how to put that formula together. Thanks for any help!
Sheet 1:
Sheet 2:
I have two worksheets in my spreadsheet. One has 2 columns of data, unique values (UWI) and dates. The other has corresponding data by month. What I want to do is lookup each UWI, find the corresponding month from the date, and then take the highest value in the first 6 months that it finds. Using the examples of my spreadsheet below, I want to take the UWI from Sheet 1 and the on prod date, go to sheet 2 and find that UWI and the first month it produced, in the first line for example it is 12/19/2009. Then take the highest value of Cal Dly Oil in the first 6 months. In this example it would be 183.95.
The way I can pull the data on Sheet 2 is from the beginning of time, so the data will always have the first 6 months for each UWI. Maybe the best way would be to find the UWI, find the first 6 values of Cal Dly Oil and then take the MAX of that? I'm just not sure how to put that formula together. Thanks for any help!
Sheet 1:
Sheet 2: