+ Reply to Thread
Results 1 to 16 of 16

Capture Value from a Cell only once at a specific hour.

  1. #1
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Capture Value from a Cell only once at a specific hour.

    Hello Seniors,

    I am looking to create a workbook as below:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Sheet 1: Pulls data from web automatically say every 15 minutes.

    Sheet 2: Takes data from Sheet 1 and calculates values.

    Sheet 3:
    B1 uses VLOOKUP function to pull data from Sheet 2.
    C1 takes value from B1 and uses ROUND function to calculate new value.


    Requirement:
    Sheet 3, Cell D1 copies value from C1 only once at a specific time say at 10:00 Hours.

    After 10:00 hours D1 should not update value even if C1 value updates as a result of Sheet 1 getting auto-refreshed.

    Before 10:00 Hours D1 should show Zero or No Data.

    After 10:00 Hours D1 continues to show fixed value which was copied at 10:00 Hours.

    In other words the value in D1 gets fixed/locked at 10:00 hours.

    Sample file is attached.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Kindly help.

    Thanks,
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    Bump Up

    Experts please help.

    Thanks,

  3. #3
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    Posted here too https://chandoo.org/forum/threads/ca...ic-hour.41021/

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Capture Value from a Cell only once at a specific hour.

    As this is an entire project, you might wish to consider the Commercial Services section.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    Noted.

    Thanks,

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Capture Value from a Cell only once at a specific hour.

    While you are considering whether to move to commercial services, have you seen Chandoo's time stamp circular reference formula? https://chandoo.org/wp/timestamps-excel-formula-help/ It seems like this should be very similar to those time stamp formulas -- (pseudocode) =IF(NOW() is within threshold of today at 10:00 AM,C1,D1). Like your other MIN()/MAX() tracking sheets, this requires iteration be enabled so Excel can resolve the circular reference. If D1 is blank when the formula is entered, D1 should be 0 after entry if the condition is not met. If needed, you may want to consider a reset condition, if you have trouble with the cell showing non-zero values before 10 AM. Recognize that the NOW() function returns both date+time information, so your final formula will need to account for that as well.

    Would something like that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Capture Value from a Cell only once at a specific hour.

    Your post does not comply with Rule 3 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Please make sure to include the full link, so that other members will be permitted to continue helping you
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Capture Value from a Cell only once at a specific hour.

    @alansidman -- Is it crossposted somewhere other than the chandoo forum that he/she already included (post #3)?
    Last edited by MrShorty; 02-23-2019 at 11:35 AM.

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Capture Value from a Cell only once at a specific hour.

    Quote Originally Posted by MrShorty View Post
    @alansidman -- Is it crossposted somewhere other than the chandoo forum that he/she already included (post #3)?
    Yes. Also MrExcel.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  10. #10
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    After creating the thread at https://www.mrexcel.com/forum/excel-...ific-hour.html
    the thread and the link was not available (moderation ???) hence was not able to post here.
    Please note that I had already mentioned current excelforum link at mr.excel.

    Thanks,

  11. #11
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    Yes, was trying on similar lines using NOW() & TODAY() with circular function though I have not seen chandoo thread you have mentioned.
    Lets see.
    Thanks,

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Capture Value from a Cell only once at a specific hour.

    This thread has never been unavailable to you - I don't know why you were not able to post to it.

  13. #13
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    yes, dont know why I was not able to find the thread after submitting the same.

    thanks,
    Last edited by EEEHHH; 02-23-2019 at 12:37 PM.

  14. #14
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    Quote Originally Posted by MrShorty View Post
    While you are considering whether to move to commercial services, have you seen Chandoo's time stamp circular reference formula? https://chandoo.org/wp/timestamps-excel-formula-help/ It seems like this should be very similar to those time stamp formulas -- (pseudocode) =IF(NOW() is within threshold of today at 10:00 AM,C1,D1). Like your other MIN()/MAX() tracking sheets, this requires iteration be enabled so Excel can resolve the circular reference. If D1 is blank when the formula is entered, D1 should be 0 after entry if the condition is not met. If needed, you may want to consider a reset condition, if you have trouble with the cell showing non-zero values before 10 AM. Recognize that the NOW() function returns both date+time information, so your final formula will need to account for that as well.

    Would something like that work for you?
    Tried this:

    D1 =IF(((NOW()-TODAY())>A2),D1,C1).

    A2 shows cutoff time.

    seems to work.


    This https://stackoverflow.com/questions/...ria-is-matched helped.

    Thanks,

  15. #15
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Capture Value from a Cell only once at a specific hour.

    I am a little surprised that worked exactly as you requested-- maybe because I misunderstood the logic. Here's what I see it doing:

    At 9:45 -- Now()-TODAY() is 9:45, which is less than 10:00, so conditional test is false and D1 returns the value in C1. I thought the intention was to have the cell be blank or 0 before 10:00, did I misunderstand?
    At 10:00 -- Now()-Today() is 10:00, which is equal to (not greater than) 10:00 (barring floating point error), so conditional test is still false, and D1 returns C1 again. If C1 changed in those 15 minutes, then D1 changes.
    At 10:15 -- Now()-Today() is 10:15, which is greater than 10:00, so conditional test is true, and D1 returns the current value in D1 (which is whatever it was at 10:00 AM).

    So, with this logic, D1 will track C1 until 10:00, then stay fixed the rest of the day (until midnight). At midnight, when the day changes, then D1 will recommence tracking C1 until 10:00 AM. So it is similar logic, but not exactly what you talked about in the OP. If this is adequate for you, then that is fine. I just know that circular logic like this requires more careful consideration than the usual straight through linear logic that we usually employ in spreadsheets. Make sure you think this through completely so it will really do exactly what you need.

  16. #16
    Registered User
    Join Date
    01-02-2018
    Location
    London
    MS-Off Ver
    2010
    Posts
    54

    Re: Capture Value from a Cell only once at a specific hour.

    @MrSHorty

    You are right I do not get Zero before cutoff time, but I guess for time being will have to live with it.

+ 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. Capture value from a dynamic cell at a specific Hour and populate a column
    By EEEHHH in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2019, 06:21 AM
  2. Replies: 6
    Last Post: 02-19-2019, 06:21 AM
  3. Removing lunch hour from Log Sheet. (Removing Specific Hour duration)
    By SirTypos in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-31-2018, 11:01 PM
  4. Replies: 5
    Last Post: 09-26-2014, 10:51 AM
  5. Capture only rows where a specific cell is populated.
    By cure4glass1 in forum Excel General
    Replies: 4
    Last Post: 06-05-2011, 11:15 PM
  6. copy a cell value every hour in a specific cell
    By jaxxx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2009, 09:19 PM
  7. copy a cell value every hour in a specific cell
    By bob2007 in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 10-17-2008, 05:03 AM

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