Counting...

jsw469

Board Regular
Joined
Oct 20, 2005
Messages
202
I have a Sheet that has my "Well Names" in Column A then Production Data on the rest of the sheet. I am can not figure out how to set up a counting formula that will add up the number times a well name is listed. I know a counting formula can be done but my problem comes when I also need it to add that count to the day number that that well starts at.

Example "Well 1" Production days starts at -56 and "Well 2" Starts on -45. Now on each production day that I download I need it to count up the number of times "Well 1" is listed then add it to the -56 or whatever day number the well started with.

Hope I am making since - To much coffe and not enough sleep this morning
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
assuming well data is in column A and production day stuff is in column b
Code:
=COUNTIF(a:a,"WELL 1")+vlookup(a2,a:b,2,0)
 
Upvote 0
Could not get that to work for some reason it keeps wanting to format the cell with the formula as Text
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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