+ Reply to Thread
Results 1 to 5 of 5

Putting a formula into a cell if it falls between a date range

Hybrid View

  1. #1
    Registered User
    Join Date
    02-17-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Putting a formula into a cell if it falls between a date range

    Hi All,

    This is my first thread, so please be gentle with me!

    I am trying to create a spreadsheet that will populate a % of a resources time required between certain dates

    For example, this is the data being provided:
    Resource % start end
    A 10 01/01/2009 01/03/2009
    A 5 01/04/2009 01/07/2009
    B 20 01/02/2009 01/06/2009

    As an output, i need to get the data to be shown by resource and by month as a %

    For example
    Resource Jan Feb Mar Apr May Jun
    A 0.1 0.1 0 0.1 0.1 0.1
    B 0.1 0.1 0.1 0.1 0.1 0

    Does anybody know if excel can perform this?
    Currently I am working with formula's like:

    =IF(a:a=a2,(=if(C2<="Feb"&D2>="feb",(B2/100),0)),0)

    But it is returning #VALUE...

    At a loss, and any help would be greatly appreciated, even if it is to say that Excel cant do this.

    Cheers,
    Dave

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Putting a formula into a cell if it falls between a date range

    Dave,

    Welcome to the Board.

    Please see attached - is this along the right lines ?

    Note: pending volume of data you may want to think of an alternative approach.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-17-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Putting a formula into a cell if it falls between a date range

    DonkeyOte....Nailed on! that is exactly what i was after!!! Thank you kindly!

    One quick question though, i have a number of different resources, and would like to copy the formula into all respective cells, but the arrays keep changing when i drag the cursor along to fill series/copy cells....is there any way of stopping this happening and just getting certain searches to change?

    Cheers,
    Dave

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Putting a formula into a cell if it falls between a date range

    Not quite sure I follow ... in the example the formula can be copied down and across and the only things that should alter are:

    a) the reference to the ID (will alter as you go down)
    b) the reference to the date column (will alter as you go across)

    Without seeing how you're implementing I'm afraid it's hard to comment further... if you're not familiar with absolute & relative referencing check out XL Help for an example (see also: http://www.techonthenet.com/excel/qu...eferencing.php)

  5. #5
    Registered User
    Join Date
    02-17-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Putting a formula into a cell if it falls between a date range

    once again....nailed on!!!

    I was not Absolute referencing...schoolboy error!

    Thankin you kindly!

+ 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