Results 1 to 21 of 21

Countif

Threaded View

  1. #1
    Registered User
    Join Date
    08-03-2010
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    24

    Countif

    Hi,

    I’m attempting to write a macro that calculates how many passengers got on a train. So if the passenger time is less than the train time add 1 to count.

    As you can see I’ve highlighted what I mean, so for the 0551 train there were 4 passengers.

    I’ve started but to be honest I’m a bit lost. I assume I’d need a loop to check that passenger time is less than train time, if it is then add 1 to count, if it’s not place the count in the totals cell and carry on the check for the next train at 0621 but ignoring those passengers already used for the 0551 train.

    Any help much appreciated.

    Cheers.
    Attached Files Attached Files

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