3 consecutive months reporting volumes in a row

ginger123

New Member
Joined
Jan 25, 2018
Messages
4
I want to know how to write a formula for last productiondate; if the well has produced for 3 consecutive months it would put the datein the box for me….
I have 10 years worth of data and it will need to pick the most recent - 3 consecutive month production date...if that makes sense!?!?
Any help would be much appreciated!!!


Example:
Well ID
Jan-17
Feb-17
Mar-17
Apr-17
May-17
Jun-17
Jul-17
Aug-17
Sep-17
Oct-17
Nov-17
Dec-17
Last production date
Well A
15
20
15
10
10
15
25
Mar-17
Well B
4
2
5
7
8
15
5
Jul-17
Well C
10
10
10
Jun-17

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Try

=LOOKUP(2,1/($B2:$K2<>"")/($C2:$L2<>"")/($D2:$M2<>""),$D$1:$M$1)

Thanks for your reply!
So I tried it and it just comes up with Dec 17 on all 3 rows. I would like it to return the most recent consecutive 3 month production...
Well IDJan-17Feb-17Mar-17Apr-17May-17Jun-17Jul-17Aug-17Sep-17Oct-17Nov-17Dec-17Last production date
Well A1520150010100150025Mar-17
Well B4200578001505Jul-17
Well C101010001010100000Aug-17
<colgroup><col width="67" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;"> <col width="64" style="width: 48pt;" span="2"> <col width="65" style="width: 49pt; mso-width-source: userset; mso-width-alt: 2377;"> <col width="64" style="width: 48pt;"> <col width="67" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2450;"> <col width="64" style="width: 48pt;" span="2"> <col width="65" style="width: 49pt; mso-width-source: userset; mso-width-alt: 2377;"> <col width="64" style="width: 48pt;" span="2"> <col width="66" style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;"> <col width="64" style="width: 48pt;"> <col width="148" style="width: 111pt; mso-width-source: userset; mso-width-alt: 5412;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>
 
Upvote 0
That's because now you have zeros in your dataset, whereas in Post # 1 you had blank cells instead.

The following formula has been tested to return the expected results for the dataset from Post # 4:

=LOOKUP(2,1/($B2:$K2>0)/($C2:$L2>0)/($D2:$M2>0),$D$1:$M$1)
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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