+ Reply to Thread
Results 1 to 5 of 5

Point to right certificate?

  1. #1
    Forum Contributor
    Join Date
    11-26-2014
    Location
    Bosnia&Herzegovina
    MS-Off Ver
    Office2013
    Posts
    281

    Post Point to right certificate?

    Hello everyone,

    kindly take a look on the attached file.
    I need to find the right certificate depending on fuel level, date and quantity.
    Task seems to me very difficult.

    CaptureA.JPG
    Attached Files Attached Files

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Point to right certificate?

    I have written a macro and slightly altered your sheet (added some stuff) to (I think) get you to part way to where you need to be.
    Press the 'Which Cert?' button to recalculate after an IN/OUT is entered.

    Let me know if this is getting close. Maybe we can tweak a bit more if you like.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Point to right certificate?

    Just thinking how you might want to use this in the real world, and I think the following minor change may be required. Let me know
    Please Login or Register  to view this content.
    The first macro, recalculates the certificates from the beginning each time, given the latest delivery.
    The second will not recalculate if a vehicle has been and gone with the fuel and then more fuel comes in.
    Attached Files Attached Files
    Last edited by Croweater; 02-15-2022 at 09:56 PM.

  4. #4
    Forum Contributor
    Join Date
    11-26-2014
    Location
    Bosnia&Herzegovina
    MS-Off Ver
    Office2013
    Posts
    281

    Re: Point to right certificate?

    I'm soo sorry for a late respone, it's been a while. I appreciate any of your help.
    Your code is working but not like i0ve been expected.
    It's shows N/A rather than right value of fuel density.

    1) Is it possible to enter date like eg. 28/5/22 when hit enter, vaule of that entered cell to be like d/m/y 13:45??
    2) In the given file in #1 post, column A is of fuel delivery, and that column is edited manually

    =ROUND(SUMPRODUCT(certs;amountoffuel)/SUM(amountoffuel;1) this would give a median for all, in formula range, certificates.
    3) It is so inconvenient to me to enter date as d/m/y h:mm. Would be a lot easier to just hit 28/5 and enter, and there in cell to be like 28/5/22 13:45(current time). Not to use =NOW() 'cause it's volatile.

    I could use a helper column to look up last couple of delivery rows(in range of a tank capacity, 100.000 litres), and then have a median value of certificates or to have a value of certificate of a greather amount of fuel delivery. Yeah, thats right. I need basic suproduct/sum calculation of last couple of delivery rows or some kind of "running total" to calculate median, then on base of that median, will give me a proximate value of which certificate to give to a customer.
    Sorry for my weak english
    Attached Images Attached Images
    Last edited by B.W.B.; 05-28-2022 at 04:38 AM. Reason: spelling

  5. #5
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Point to right certificate?

    The code is dependent on chronological entry of data. That is it won't change a certificate if that certificate has already been calculated.

    Delete the "N/A" and press the 'Which Cert' button again. Do you now get the expected result?

    To enter the current date hit Ctrl + ; (Hold Control key and type semi colon.

    To enter the current time hit Ctrl + Shift + ; (Hold Control key and Shift key and press semi clon)

+ 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. certificate generator
    By BruceFan in forum Excel General
    Replies: 14
    Last Post: 01-26-2020, 06:20 AM
  2. Certificate help
    By TKDjon in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-21-2015, 08:17 AM
  3. Certificate
    By Evolta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2015, 07:52 AM
  4. Replies: 0
    Last Post: 07-11-2012, 12:30 PM
  5. digital certificate
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2005, 03:05 PM
  6. Using Digital Certificate
    By smcash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2005, 12:06 PM
  7. [SOLVED] Digital Certificate
    By phil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2005, 05:06 PM

Tags for this Thread

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