+ Reply to Thread
Results 1 to 6 of 6

Find date between 2 dates and place corresponding values of orginal date if between 2 date

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    dublin, ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find date between 2 dates and place corresponding values of orginal date if between 2 date

    Hi,

    Looking for bit of help on the detail below, I want to enter in a date in column A e.g. 4 08/01/2014 and the correspond amount in column B €88.11 and if a date falls between the start date and end date of any of the date below e.g. 4 02/01/2014 - 08/01/2014 = the corresponding amount will be place in the fuel spend also if two date entered within same date range they should be added for a cumulative total.

    This is the formula I have so far but will only work for first entery.

    =IF(AND('Total Month'!A$4:A$30>=B4,'Total Month'!A$4:A$30<=D4),(VLOOKUP('Total Month'!A4,'Total Month'!$A$4:$B$44,2,))

    Id be greatful of any help.


    Total Month
    A B
    Date Amount


    4 08/01/2014 €88.11
    5 02/02/2014 €55.00
    6 12/02/2014 €65.00
    7 07/01/2014 €100.00

    B D
    Start Date End Date Fuel Spend

    3 26/12/2013 - 01/01/2014 = € 0.00
    4 02/01/2014 - 08/01/2014 = € 88.11
    5 09/01/2014 - 15/01/2014 = FALSE
    6 16/01/2014 - 22/01/2014 = FALSE
    7 23/01/2014 - 29/01/2014 = FALSE
    8 30/01/2014 - 05/02/2014 = FALSE
    9 06/02/2014 - 12/02/2014 = FALSE
    10 13/02/2014 - 19/02/2014 = FALSE

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Find date between 2 dates and place corresponding values of orginal date if between 2

    Welcome to the forum.
    Could you attached sample spreadsheet with expected results?



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  3. #3
    Registered User
    Join Date
    01-16-2014
    Location
    dublin, ireland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find date between 2 dates and place corresponding values of orginal date if between 2

    Fuel Spend 2014.xlsx

    Thank alvin

    When I enter a date and an amount in A and B column in the total month sheet, I would like the amount on that date/dates to be copied into the sheet fuel spend dates,

    If the date in total month sheet is between two dates on the fuel spend date sheet the amount should be entered in the fuel spend column F and if two dates/amounts from total month fall in that range the amount should be added together given a total fuel spend between those dates.

    hope that makes sense

    Cheer Paul

  4. #4
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Re: Find date between 2 dates and place corresponding values of orginal date if between 2

    Fuel Spend 2014_new.xlsx

    Try this in row 3 and copy it down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Find date between 2 dates and place corresponding values of orginal date if between 2

    Hi Paul, you can utilize your existing names (so that you'll have no worries in future on expanding rows) and do something like this in F3, then copy down till end of the rows.
    Formula: copy to clipboard
    Please Login or Register  to view this content.





    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  6. #6
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Find date between 2 dates and place corresponding values of orginal date if between 2

    Hi Paul, thanks for the repu
    You're most welcome.



    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] vba code to find Duplicate Values and Newest date(Max) date in the Corresponding Column(ce
    By Pradu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2013, 05:20 AM
  2. Replies: 0
    Last Post: 05-30-2013, 07:50 PM
  3. [SOLVED] Find the date and copy the values from the colum of the date find and paste to other sheet
    By nizzcmzph in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-20-2013, 10:03 AM
  4. Replies: 1
    Last Post: 04-04-2012, 08:21 AM
  5. Replies: 2
    Last Post: 01-04-2012, 09:15 AM

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