+ Reply to Thread
Results 1 to 8 of 8

Start and Finish Date

  1. #1
    Registered User
    Join Date
    12-05-2006
    Posts
    14

    Start and Finish Date

    Hi, I feel that this is probably really easy but can't work it out. I have a worksheet laid out (in simple terms) as below:

    Mar07 Apr07 May07 Jun07 Jul07

    0 5 30 3 0

    I need to write a formula that will look across the cells with the numbers and return the date of the cell with the first amount and another formula that will return the date of the cell with the last amount.

    Hope you can help, Thanks for trying.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Do you mean amount <> 0 ... ?
    HTH
    Carim


    Top Excel Links

  3. #3
    Registered User
    Join Date
    12-05-2006
    Posts
    14
    Not quite, if I use <>0 then I will get all of the months that have an amount in them. I need just the first month and just the last month. The figures represent amounts spent on a specific operation and I'm trying to identify when that operation starts and finishes.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I think the question is, in the above example, are the start and end dates Apr07 and Jun07, or are they Mar07 and Jul07?

  5. #5
    Registered User
    Join Date
    12-05-2006
    Posts
    14
    Sorry if I'm causing confusion, I'm better with numbers than explanations and I can't get the post to lay the numbers out where I put them.

    The commencement of the work is when the first cost comes in on Apr07 =5, the final month of the work is in Jun07 = 3, the months with 0 in represent months that no work was carried out.

    I need the formula to look along the numbers and work out when the work started and finished.

    Hope this makes more sense. Thanks

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    See attached ...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-05-2006
    Posts
    14
    Thanks so much this is exactly what I need. Could I make another request. Could you put the formula into words so that I can understand what it is doing properly. I haven't used match and index before and I really need to understand how the formula is working so because I will be using it quite extensively.

    Thanks again

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Here is an explanation of the Index() Match() combination, which is a good substitute to Vlookup() ...

    1. Index(Database,offsetRow,offsetColumn)
    2. Match(Value,Range,0)

    Match will look for a given Value in a Range and return its ranking ...
    This ranking is then used in Index as offsetRow / offsetColumn in order to return the value located at the intersection ...

+ 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