+ Reply to Thread
Results 1 to 18 of 18

HELP!!!! Count of Core Samples Available - Date Driven

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Exclamation HELP!!!! Count of Core Samples Available - Date Driven

    Overview: Oil & Gas Industry: USGS is the place our company reps, mainly Geologists go to gather available core samples from wells that are drilled. Once they pick the cores they want they bring them back for analysis. Either in house experts examine them and make an analysis or it is sent out to a vendor example: Weatherford for their chemical analysis of the cores.

    Maximum number to core samples allowed to be taken is 200! As long as you have 200 samples in your possession, and have not returned your analysis of the cores you cannot request any more samples. You have 6 months from the date you take them, to return the analysis. You give them a promise date of when you think you will have the analysis returned. Example: 100 samples are taken and not all are returned at the same time. Say, they only send back 50 analysis results as the other 50 are not completed yet, but will be. Multiple trips can be made as well with a few weeks or days but no matter what there cannot be anymore than 200 sample outs for the total of everyone. If one guy gets 100, then there is only 100 left for others to get. Once the count reaches 200. NO more can be taken till someone sends analysis back. Not all analysis is returned at the same time.

    I have a countdown evaluation going in my worksheet counting down the days left to return analysis. In the Actual Date Analysis Returned, if a date is entered then the countdown stops for that Trip to gather core data. Also I have a notification Warning that says when countdown hits within 7 days "Sample Analysis is Due!!" if the countdown hits 0 then the remark is "Out of Compliance!!". There are penalties for not complying with returning analysis to the USGS on time. This is a 2 part request for help.

    My request is I am having trouble completing my formulas. I can't figure out how to make the Sample Count Available formula to work correctly when not all the analysis is returned at the same time. Multiple people in multiple departments make trips to USGS. We had an issue where someone made a trip there only to find he could not get any samples as some had not been returned. NOT all 200 have to be returned at once. If you took 200 and returned 100, anyone can go there and take 10, 50, 5 or the remaining 100. (This is part One.) The second part which at this time is not a high priority but I want to do it if I can easily do it. And that is once the Day Countdown Evaluation hits 7 days till 0, then I want the worksheet warning to send an email to all the People that go to USGS to gathering core analysis giving them the Warning Message you got 7 days to comply else you are out of compliance. I am the Sr. Eng. Tech responsible for creating this workbook and I maintain the worksheets. And track the data. This is a Geo-Sample Data Tracking Workbook. All the Analysis results returned to us from the vendor is maintained in other databases/systems. (It is a lot of information!) I just tracking who's going, getting samples and sending them back on time.

    Here are my columns: A=Date Sample Trip Planned, B=USGS Contact, C=Trip Number, D=Sample Repository, E=Company Rep, F=Beginning Samples Available at Start of Trip, G=Number of Samples Taken, H=Number of Samples Analysis Returned to USGS, I=Sample Count Available, J=Actual Date Taken, K=Promised Return Date, L=Actual Date Analysis Returned, M=Partial Sample Count Returned (Y/N), N=If Partial Sample Count Returned to USGS **Remainder** Sample Count to Return, O=Calculated Date that Analysis must be Returned to USGS, P=Day Countdown Evaluation, Q=Notification Warning.

    A= input date, B=input name, C=Trip Number is unique example T1, T2, T3 and so on, D=input name, E=Company Rep=input name, F=trip #1 input of 200 as that's when we started this after that it's a formula, G=Number of Sample Taken is an input field, H=Number of Samples Analysis Returned to USGS is an input field, I= Sample Count Available is a formula, J=Actual Date Taken is an input field, K=Promised Date Returned is an input field, L=Actual Date Returned is an input field, M=Partial Sample Count Returned (Y/N) is an input field, N=If Partial Sample Count Returned to USGS **Remainder** Sample Count to Return is a formula, O=Calculated Date that Analysis must be returned to USGS is a formula, P=Day Countdown Evaluation is a formula, Q=Notification Warning is a formula.

    This is what I need help with. I hope someone can help me figure this out. It worked great till I was told that they don't have to send back everything they took all at once! That messed up my formulas as now you have multiple people returning partial analysis. ALSO - Please NO VBA, I'm not that experienced in VBA yet. I'm getting there but not yet. PLEASE HELP. THANKYOU!!!!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Hi there... and welcome to the Excel Forum.

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    However, nothing on this Forum works quite as well as you might expect. The attachment icon doesn't work!! (Helpful, isn't it!!). Instead, just before you submit your post, click on GO ADVANCED (near the bottom) and then scroll down to Manage Attachments to open the upload window. The relevant instructions are at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Glenn were you able to see the worksheet I sent you? This site showed it attached, but you said sometimes this doesn't work so great on here. Just checking to see that you did receive it. - Jannie

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Jannie, if you notice the little green (or in this case clear) dot beside a poster's name, it indicates if they are on the site or not. Glenn's is currently clear. AND, sending a poster a sample sheet means that they will be the only person who can work on your problem. Glenn is good, no doubt better than I but there are a lot of people on this forum who have the necessary skills to solve your issue. It is best for you to post a sample sheet ON this link so anyone can help you (using the go advanced button at the bottom of this post).
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Hi Sambo kid - Ok let me try again to post the attachment Sample Worksheet here. I know I sent one to Glenn but I thought I posted an attachment here as well. I'll try again. Ok I uploaded it I think. Can you tell me if you see it. Thanks.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Looking at the formula in column I, Sample Count Available, I am not sure that I see the problem. The numbers in that column seem to reflect the statements made in post #1. For example if, as in row 5, 200 samples are available, Sally took 100 and returned 67, then 167 sample are available for the next person. Now I do see that if Test were to take 100 and return 25 and no date was placed in L6, the formula would yield a value of 67, where I would expect to see 92. However, I am not sure that illustrates the problem you are having. Could you provide a scenario where to formula is problematic as you described about the person whom came to pick up samples when none were available?
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    JeteMc-Ok the problem I'm having is if someone returns only partial amts to USGS like lets say there was the Sally case 200 - 100 + 67 now available 167. Now Test comes along and takes 100 and only returns 50. There like needs to be like a 2nd return date column inserted as well for the Remainder samples returned. Col L = the actual date returned right, well that works great if you return all the samples you took. If you only return partials you have 6 months to return the rest. And I just thought of something else....what if the remainder like in Sally's case is 67 and let's say she returns 30 more within the 6 months, then that leaves 37 more she has left to return within the remainder of the 6 months. Boy howdy. This worksheet worked great until I was told they could return partial amts back. It's just gonna have to be multiple nested If clauses. Does that help?

  8. #8
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Oops...Sallys not 67 but 33 left to return, lets say she returns 20, that would mean she has 13 left to return within the 6 month cycle. No matter what all sample analysis must be returned by Col M date.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    I don't know if the format of the spreadsheet is set in stone, if not you might consider a layout like the one attached (Sheet 1). The layout shows that there are not going to be any core samples available for trip num. T4 on 6/20/16 or even 7/1/16.
    Note: changes to formulas in columns I and M:P
    Let me know if you have any questions.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Worked on this a bit more and came up with a solution that leaves the format of the spreadsheet (pretty much) in tact. Helper columns (which may be hidden for aesthetic purposes) are added in columns S:AB
    The formula that now populates column F is array entered*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    The solution does render 'Sample Count Available' (column I) unusable.
    Headers for the helper columns will hopefully explain what they do, and running the Evaluate Formula will hopefully show how they work.
    Ignore Sheet1 and Sheet2 as these were scratch work, however the ideas therein may be useful later.
    Let me know if you have any questions.

  11. #11
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    A little confused.... Planned means this is the date they planned to go on their trip. It's simply a date field nothing more. The Samples Available = at the START of their trip this is how many samples there are available to get from USGS. Samples Taken = how many samples they took. Confusing because Trip 1 (T1) he starts with 200, he takes 75, which leaves 125 samples left for the next person to take. Keep in mind (T1) he has 6 months to return those samples!

    So for Trip 2 (T2)...this person has available to them now 125 samples they can get at the start of their trip. Now (T1) person can return their sample analysis within 6 months so the samples available at the start of the next person's trip can change before or after or during their planned trip. If (T1) person returns their analysis prior, during or after (T2) person goes on their trip to USGS. (T1) planned to go 3/29/16 and usually they are gone for 2-3 days. They bring the samples back and then send them off for Analysis. It may take 2 weeks or a month for the analysis to come back from the vendor with their determination of the core samples.

    So (T2) he is planned to go on his trip 5/18/16. So he leaves believing that the worksheet states he has 125 samples available he can get at the start of his trip. He only takes 100 samples. Which leaves 25 samples available for the next person. (T3) plans to go to USGS on 6/6/16. In the meantime (T1) gets his analysis back from the vendor and he then submits his results back to USGS on 6/1/16. So now instead of (T3) having 25 samples available at the start of their trip, they now have 100 available to them to take.

    The actual date drivers are the Actual Date Taken and the Actual Date the Analysis is Returned and because there are people that only return PART of the samples I had to add an additional Partial Sample Count Returned Date for when they return the remainder of the samples they took. So (T3) they get their samples back from the vendor and only return 67 of them 9/6/16. Leaving 33 left to return by 12/6/16. As these samples are still out for analysis with a different vendor when they return them a date should enter into column Q. And when a date is entered into Column Q then the sample count in Column R should be added back to Samples Available to take. The worksheet is date driven and sample count driven.
    The Promised Return Date = Just a date that when they left USGS they told them I promise to send back my analysis by this certain date ok. The Calculated Date is the Actual Date they have to send them back by. So they can promise all they want but it's just a date they gave USGS. They strive to meet their promise date, but, in reality it really doesn't matter if they meet this or not. They are bound by column M to return their findings. Column N is just a countdown telling them they have this many days left to respond. Notification Warning is a warning message... if column L isn't populated with a date, then once the countdown reaches 7 days left, I wanted the worksheet to generate an email warning to that person telling them You now have 7 days to get your analysis back to USGS.
    I don't understand your column W. As you can't have dates less than the planned date???? I don't understand Column Y or Z they are not making sense in this case.

  12. #12
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    I reposted the worksheet and manually plugged in the figures as they should appear.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    I am only seeing the original worksheet attached to post #5, on 9/29/16. Be sure to attach using the MANAGE ATTACHMENTS link and not the paper clip icon.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Replying to post #11:
    Column V shows a listing of all the dates, not just the planned trip dates. The activities for those dates (P = planned, T= taken, R = returned) are in column W. Column Y shows the chronological order of the dates and column Z shows the numbers associated with the date as in:
    3/29/16 is a planned trip date no samples taken nor returned.
    3/31/16 is an actual date taken and the negative number signifies that 75 samples were taken.
    6/2/16 is an actual date returned and the positive number signifies that 75 samples are now on hand.
    BTW the numbers in column F match what you describe in post #11. T1 takes 75 leaving 125 for T2. T2 takes 100 and before T3 is made T1 returns 75 so there are 100 on hand for T3. T3 takes 100 and since no more are returned prior to the planned date of T4 (6/20/16) no samples will be available. If you change the date in A6 to 9/4/16 you'll see that F6 shows that there will be 100 samples on hand, because T2 returned 100 samples on 9/3/16.

  15. #15
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    I've uploaded it like 3 times again now. Using Manage Attachments.

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    Here is what the spreadsheet looks like after doing some revising to the formulas.
    Seeing something that may need addressing. T4 is 'Planned' for 9/29/16 but 'Actually taken' 7/1/16. Is this a possibility?
    The formula previously showed that only 100 samples were available to T5 whereas the manually input number is 167. This was because no date is given for when the 67 samples were actually returned by T4. If a date prior to or on 10/3/16 is inputted, as is now in the attached file, both agree. This goes back to the statement about additional columns, which would also create issues in my opinion.
    Updating the number and date of samples returned when there are partial returns seems to me to be the best solution. I realize that it may cause numbers available for trips made between updates to be inaccurate, but it seems to make it easier to forecast the number available for future trips. At any rate that is a decision that will have to be made by someone above my pay grade.
    I hope that some of this is helpful.
    Let me know if you have any questions.

  17. #17
    Registered User
    Join Date
    03-28-2016
    Location
    Katy, TX
    MS-Off Ver
    Office 365
    Posts
    9

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    JeteMc - One thing I hadn't thought of till now and this is why I add the 2 columns The Partial Sample Count Returned Date (P) and Remainder of Partial Samples Left to Return (Q). In the cases where they only return in this example the 67 and left 33 to be sent later.... I had to add a column to track when the last 33 got sent back. This also affects the sample available count as well. So how do we tweak the formulas to reflect adding those 33 back into the mix.

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,620

    Re: HELP!!!! Count of Core Samples Available - Date Driven

    To my mind You really only need to keep track of how many are still out and how many days they have to return them. Once the samples are returned then then the 'Number of Samples Analysis Returned to USGS' and 'Actual Date Analysis Returned' can be updated, which will in turn update the 'Samples Available at start of trip' via the helper columns. The problem that I see with trying to add the 'Partial Sample Count Returned Date' into the mix is that T4, in the example, may return 3 of those next week and 10 the week after then a few weeks later return another 5 and so on. I can understand that there may need to be an accounting of how many samples are returned and when, which could be kept on separate 'Trip' sheets that *might* be linked back to the 'Sample' sheet. Wrong I could be, of course.
    I have updated the attached copy of the spreadsheet to automate the following columns, in the hope that the changes will be useful.
    'Partial Sample Count Returned Y/N' with the formula: =IF(G3="","",IF(G3=I3,"N","Y"))
    'If Partical Sample Count Returned to USGS **Remainder** Sample Count to Return' with the formula: =IF(G3="","",G3-I3)
    'Day Countdown Evaluation'* with the formula: =IF(G3-I3>0,M3-TODAY(),"")
    *I wonder if the 'Day Countdown Evaluation' shouldn't really be a count of workdays until the samples are due rather than total calendar days.
    'Notification Warning' with the formula: =IF(N3="","",IF(N3<0,"Out of Compliance!!!",IF(N3<7,"Sample Analysis Due!!!","")))
    Let me know if you have any questions and/or comments.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2016, 12:01 PM
  2. Dynamic graph driven by input-driven named ranges
    By gwebb in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-24-2015, 09:22 AM
  3. Calculating hour outside core hours when all hours fall outside core
    By lyn@centuryorchards. in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2014, 06:45 PM
  4. Replies: 2
    Last Post: 11-07-2013, 06:19 AM
  5. Date driven value
    By ronocoo in forum Excel General
    Replies: 0
    Last Post: 05-23-2011, 02:15 PM
  6. Excel CPU Usage - Single Core/Multi Core (balanced/unbalanced?)
    By winstontj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2010, 07:22 PM
  7. Date driven formula/worksheet
    By Corey in forum Excel General
    Replies: 10
    Last Post: 11-04-2005, 08:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1