+ Reply to Thread
Results 1 to 5 of 5

Finding a column and summing date range for that column

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Finding a column and summing date range for that column

    I am trying to search for the name of a person, and sum the column below between a date range. I can't seem to get any method to work.

    think someone could give me a hand please?


    Adam J Andrew L Brad D Karl V Kris L Paul L Tim S Yongen W
    9/1/2012 OFF 1 VAC OFF OFF 1 OFF off
    9/2/2012 1 OFF VAC OFF 1 OFF OFF OFF
    9/3/2012 1 STAT VAC STAT 1 STAT STAT STAT
    9/4/2012 1 1 VAC 1 1 1 1
    9/5/2012 1 1 VAC 1 1 1 1
    9/6/2012 OFF 1 VAC 1 1 LIEU 1
    9/7/2012 OFF 1 OFF 1 1 1 1
    9/8/2012 OFF OFF OFF OFF OFF OFF 1
    9/9/2012 OFF OFF OFF OFF OFF OFF OFF
    9/10/2012 1 Lieu 1 1 LIEU 1 OFF
    9/11/2012 1 Lieu 1 1 LIEU 1 1
    9/12/2012 1 Lieu 1 1 LIEU 1 1
    9/13/2012 1 Lieu 1 LiEU LIEU 1 1
    9/14/2012 1 Lieu 1 LiEU LIEU LIEU 1
    9/15/2012 OFF OFF OFF OFF OFF OFF 1
    9/16/2012 OFF OFF OFF OFF OFF OFF OFF
    9/17/2012 1 1 1 OFF off OFF off

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Finding a column and summing date range for that column

    The presentation of your problem is not the best. Please upload a sample workbook, ideally with a mock up of your expected results.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding a column and summing date range for that column

    Unfortunately, my actual sheet is 20Mb, but this should give you the idea of what I want to use. the table to the right is on a different sheet in my actual Excel file.
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Finding a column and summing date range for that column

    If you name the ranges with the individual's name, then you can use:

    =COUNTIFS(INDIRECT(SUBSTITUTE(N7," ","_")), "<>OFF", INDIRECT(SUBSTITUTE(N7," ","_")), "<>STAT", INDIRECT(SUBSTITUTE(N7," ","_")), "<>VAC", INDIRECT(SUBSTITUTE(N7," ","_")), "<>Lieu", $A$2:$A$18, ">=" & P$3, $A$2:$A$18, "<=" & Q$3)


    Note that, if you select the data in each column and use "Create from selection", the space will be replaced by an "_", hence the reason for the SUBSTITUTE.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding a column and summing date range for that column

    i forgot to mention that this only needs to sum the "1"'s that appear.

    would this make the formula simpler?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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