+ Reply to Thread
Results 1 to 2 of 2

Finding max value within selected range

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    new york,USA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Finding max value within selected range

    Hi all,
    Merry Christmas!
    I am looking at a New York city crosswalk Pedestrian volume and am looking to write a macro that could replace the formula that I have written.

    I have collected pedestrian volume at a north crosswalks for 2 and 1/2 hours (data was recorded every 15 minutes) in the morning. What I need to do is 1) find the peak hour where the total crosswalk volume was the higest and 2) within that hour find peak 15 minute and return the 15 minute volume for that peak period. So I found the peak hour & added the pair volumes at the crosswalk( people walking east + people walking west) together for all the hours and applied nested if statements to look for the peak 15 minutes within the peak hour to produce the final outcome.

    The problem is if I want to change my peak hour, now I have to move the references around and it's a pain.
    Is there any way that I can just select the peak hour and the calculation would be done to find the peak hour with out my adjusting the rerences individually?
    Thank you!
    Attached Files Attached Files
    Last edited by lkim; 01-03-2012 at 03:15 PM.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,598

    Re: Finding max value within selected range

    Pl see the attached file.You can extend columns A to H downwords.Any clarifications welcome.
    with regards.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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