+ Reply to Thread
Results 1 to 11 of 11

Filling In Data Based On Half-Hour Times

  1. #1
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Filling In Data Based On Half-Hour Times

    Hello Everyone,
    Using Excel 2013

    I have a spreadsheet that has weather data from the internet. The data table on the left has numerous times in column A, which vary from hour to hour. The table on the right shows half hour increments in columns K & L with selected data from the left table. I have made up formulas to extract the data from left table, but I would like to somehow add to the formulas to have it search columns K & L (time range) and fill in the data for that half hour in columns M to P. Something like =IF(A:A>=00:01<=00:30, then attach it to each formula above. Any help or suggestions would be appreciated, thanks.
    Attached is the sample spreadsheet.

    Mike
    Attached Files Attached Files
    Last edited by windme; 04-28-2019 at 10:18 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Filling In Data Based On Half-Hour Times

    Here is an array formula that does it

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    Hi Bob,
    thanks for the response. I tried to add the if statement for the max formula and I receive the #VALUE! error. I like to have your formula find the location of the time and do the four formulas that i have under the right table. How can I correct that? thanks

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    When the time range is found in K and L, i need to have the 4 formulas adjusted to that range. In the example that shows the 4 formulas
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    i need to have the range in the formulas to match columns K & L. If the times in column A show that 00:01 to 00:30 range is A2:A6, i need those 4 formulas have the same row adjusted, in this $8 changes to $6.

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Filling In Data Based On Half-Hour Times

    Hi,

    another approach in M2 to be confirmed with control+shift+enter

    Please Login or Register  to view this content.
    in N2:

    Please Login or Register  to view this content.

    In O2 (as MAXIFS will available from Excel 365-2016)

    Please Login or Register  to view this content.
    In P2:

    Please Login or Register  to view this content.

    Please refer to the attachment.

    Regards


    Edit: I'm translating formulas from Italian Excel version: please doble-check if I've forgotten some ";" as delimiter (sorry)
    Attached Files Attached Files
    Last edited by canapone; 04-28-2019 at 11:05 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  6. #6
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    Canapone,
    You hit the N2, G2, and P2 right on the head!! awesome!

    The M2 formula that counts the most speed direction text works for M2 (SSE), but M3 and M4 also give SSE, should be SE and NNE. If that could be corrected with be helful.
    Thank you.

  7. #7
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    Canapone,
    I forgot the control, shift and enter...it's working!

    Thanks again for your help

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Filling In Data Based On Half-Hour Times

    Hi again

    first off, forgive my poor English

    Formula in M2 must riconfirmed with control+shift+enter and if copied down, should return "SE" and "NNE" (please see the attachment)

    The problem I can see in M2 is there are two "most speed" directions.

    In these cases MODE.MULT can be of some help: after copied the formula in R2, you have to select R2:S2, press F2 (function F2) and - again - riconfirm with control+shift+enter.

    In this way you can check if there are two different "most speed" directions using:

    Please Login or Register  to view this content.
    Again, this one is a formula for "two cells" (see the yellow formula in the attachment)

    Hope you'll get better solutions.
    Attached Files Attached Files
    Last edited by canapone; 04-28-2019 at 12:08 PM.

  9. #9
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    Hi Canapone,
    Sometimes there will be two or more criteria that are equal, i usually accept with excel gives me; but just wondering if the tie could be broken by adding up the adjacent speed and have tie broken. In the example of the SE and SSE, the 3 SSE speed add up to 20 and the 3 SE add up to 23, so SE would be placed in M2. If there's no way to do that it would be no problem at all.

    Thanks

  10. #10
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Filling In Data Based On Half-Hour Times

    Hi again

    I have only a not very elegant solution to share, using a couple of sumifs near the yellow formulas


    In R2

    =SUMIFS(H:H;A:A;">="&K2,A:A,"<="&L2,G:G,R2)

    in S2

    =SUMIFS(H:H;A:A;">="&K2,A:A,"<="&L2,G:G,S2)


    and then in C2 to elaborate together MODE.MULT and SUMIFS


    =IF(T2<U2,S2,R2)

    I strongly suspect there could be better solutions
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Re: Filling In Data Based On Half-Hour Times

    thanks for those tiebreakers Canapone

+ 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: 1
    Last Post: 05-09-2016, 11:35 PM
  2. Replies: 6
    Last Post: 02-20-2015, 06:42 PM
  3. 5 min data to half an hour data adjusted
    By thilag in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2014, 04:22 AM
  4. [SOLVED] Overtime and payment at half hour intervals with a lower payment for the first half hour
    By brettamine in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 07:51 AM
  5. Run code each half hour (12:00;00:30;01:00..23:00;23:30)
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2013, 07:19 AM
  6. [SOLVED] Calculate Fractional minutes between half hour intervals with multiple start and end times
    By CheeksExcelForum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2013, 02:19 PM
  7. [SOLVED] relative references? Converting half hour incriments into hour incriments
    By Babbabooie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2012, 11:27 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