+ Reply to Thread
Results 1 to 3 of 3

Selecting a range of consecutive cells within a range

  1. #1
    Registered User
    Join Date
    04-22-2012
    Location
    UK
    MS-Off Ver
    Vista
    Posts
    2

    Selecting a range of consecutive cells within a range

    Hi everyone,

    I'd like to try a different approach to counting the amount of days in a period.

    If I list a long consecutive series of cells with days in a consecutive sequence in excel and then have two cells put aside for the first and last date in the desired range to be manually entered then is there a way to use the Countif function to select this desired range within the long range?

    On the example attached I would like to see if it's possible to build a formula to pick up the values entered in F1 and F2 and then find these dates in the range of cells on the left and count the cells between the two dates inclusive (the answer here would be 15).

    I would be grateful if anyone can suggest a way to this.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Selecting a range of consecutive cells within a range

    Hello,

    Use COUNTIF this way,

    Please Login or Register  to view this content.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    04-22-2012
    Location
    UK
    MS-Off Ver
    Vista
    Posts
    2

    Re: Selecting a range of consecutive cells within a range

    Thanks, that works a charm.

+ 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