Lookup/Sumifs type formula struggle, should be simple

ryansapp

Board Regular
Joined
Apr 22, 2013
Messages
54
SUMIFS difficulty...need help with a lookup type formula, probably not even a SUMIFS? Finding or matching Lease Number, Period, and title of E1:J1, I want to output whats in my next tab appropriately. Unfortunately that next tabs data dump does not have the dates in the same format, hence they run E1:P1. Struggling and I'm sure its a super simple fix.

Excel 2016 (Mac) 32 bit
ADEFGHIJ
1Lease NumberPeriod Gas Sales (MCF) Gas Revenue Oil Sales (Bbls) Oil Revenue $/mcf $/bbl
1410020012/1/15 - -
151002001/1/16 - -
161002002/1/16 - -
171002003/1/16 - -
181002004/1/16 - -
191002005/1/16 - -
201002006/1/16 - -
211002007/1/16 57 2,550 $ 44.74
221002008/1/16 - -
231002009/1/16 - -
2410020010/1/16 - -
2510020011/1/16 - -
2610030012/1/15 - -
271003001/1/16 - -
281003002/1/16 - -
291003003/1/16 - -
301003004/1/16 - -
311003005/1/16 - -
321003006/1/16 - -
331003007/1/16 - -
341003008/1/16 - -
351003009/1/16 56 2,410 $ 42.72

<tbody>
</tbody>
Summary Operated


Excel 2016 (Mac) 32 bit
ACDEFGHIJKLMNOP
1NumberCategoryPRODUCTION MONTH BASIS12/1/151/1/162/1/163/1/164/1/165/1/166/1/167/1/168/1/169/1/1610/1/1611/1/16
46100200BBLS SOLD000000000000
47100200Oil Sales (Bbls) OIL BBLS - NET W.I.000000057.480000
48100200 OIL BBLS - NET O.R.R00000002.220000
49100200TOTAL BARRELS SOLD000000059.70000
50100200 BBL DAILY AVERAGE00000001.990000
51100200OIL EQB TOTAL000000059.70000
52100200OIL EQB DAILY AVERAGE00000001.990000
53100200WELL INCOME000000000000
54100200 MCF DAILY AVERAGE000000000000
55100200 LIQ DAILY AVERAGE000000000000
56100200Oil Revenue OIL INCOME - W. I.00000002231.10000
57100200 Unit Price000000038.820000
58100200Oil Revenue OIL INCOME - O.R.R.I000000086.290000

<tbody>
</tbody>
NBI Net Production Month Op
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
What you can do for a 2D SUMIF is actually a SUM with nested IFs using arrays. Note you'll need to press CONTROL+SHIFT+ENTER for this to work... You should see curly brackets around your formula if done correctly {=...}

I've also specifically locked down columns or rows with $ depending on which way the data and headings travel.
ABCDEFGHIJKLMNO
1Lease NumberPeriodGas Sales (MCF)Gas RevenueOil Sales (Bbls)Oil Revenue$/mcf$/bbl
210020012/01/2015=SUM(IF($D$26:$O$26=$B2,IF($B$27:$B$39=C$1,IF($A$27:$A$39=$A2,$D$27:$O$39))))00000
31002001/01/2016000000
41002002/01/2016000000
51002003/01/2016000000
61002004/01/2016000000
71002005/01/2016000000
81002006/01/2016000000
91002007/01/20160057.482317.3900
101002008/01/2016000000
111002009/01/2016000000
1210020010/01/2016000000
1310020011/01/2016000000
1410030012/01/2015000000
151003001/01/2016000000
161003002/01/2016000000
171003003/01/2016000000
181003004/01/2016000000
191003005/01/2016000000
201003006/01/2016000000
211003007/01/2016000000
221003008/01/2016000000
231003009/01/2016000000
24
25
26NumberCategoryPRODUCTION MONTH BASIS12/01/20151/01/20162/01/20163/01/20164/01/20165/01/20166/01/20167/01/20168/01/20169/01/201610/01/201611/01/2016
27100200BBLS SOLD000000000000
28100200Oil Sales (Bbls)OIL BBLS - NET W.I.000000057.480000
29100200OIL BBLS - NET O.R.R00000002.220000
30100200TOTAL BARRELS SOLD000000059.70000
31100200BBL DAILY AVERAGE00000001.990000
32100200OIL EQB TOTAL000000059.70000
33100200OIL EQB DAILY AVERAGE00000001.990000
34100200WELL INCOME000000000000
35100200MCF DAILY AVERAGE000000000000
36100200LIQ DAILY AVERAGE000000000000
37100200Oil RevenueOIL INCOME - W. I.00000002231.10000
38100200Unit Price000000038.820000
39100200Oil RevenueOIL INCOME - O.R.R.I000000086.290000

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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