+ Reply to Thread
Results 1 to 3 of 3

Date ranges

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Clinton, NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Date ranges

    Say I have a spread sheet (sheet 2, in this case) with column A representing a begin date and colum B representing an end date and column C with the value I want returned when a date on a seperate sheet falls within the A:B ranges.

    Sheet 1 has the date I want to becompared to in Column A:B. I want the value in column C returned to sheet 1 on condition the date falls witin the date ranges in columns a:b.

    How would I go about constructing the formula to return the value in column C to sheet 1?

    I hope I'm being coherent enough - please help.

    Much appreciated - thanks.
    Last edited by NBVC; 04-20-2010 at 11:23 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902

    Re: Date ranges.

    =SUMIF('Sheet2'!A:A,">="&A1,'Sheet2'!C:C)-SUMIF('Sheet2'!B:B,">"&B1,'Sheet2'!C:C)

    where A1&B1 in Sheet1 have dates to look for in Columns A and B of Sheet2
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Clinton, NJ
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Date ranges

    Excellent - Thank you!

+ 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