+ Reply to Thread
Results 1 to 6 of 6

Need formula to count the number days between dates

  1. #1
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Need formula to count the number days between dates

    Hi,

    I need help to fix the formula for number of days between sale date and purchase date based on the Lot #

    Purchases & Stock

    A B C D
    Lot # Date of Purchase Supplier Unit Cost


    1 10-Jan-16 XXXXXX 750
    2 9-Jan-16 YYYYYY 850
    3 4-Feb-16 900
    4
    5



    SALES
    A B C D F
    Lot # Date of Sale Supplier Cost per Unit No of days


    1 3-Feb-16 XXXXXX 750 Need Formula
    3 7-Feb-16 YYYYYY 900
    2 5-Feb-16




    Regards,
    Barieq

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Need formula to count the number days between dates

    Data difficult to read.
    You're better off attaching a spreadsheet so we can see where the data starts and ends
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Need formula to count the number days between dates

    Hi,

    I was unable to upload the, any other option to send the file

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,203

    Re: Need formula to count the number days between dates

    What was the problem with uploading a file?

  5. #5
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Need formula to count the number days between dates

    I have a purchase date above and below I have a sales date for the respective lot #. Just I need a formula to count the number of days between these two dates based on the creteria.

    Lot # is the criteria.Lot # is 1,2,3,4,5 etc. Hope u got it.

    Regards

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need formula to count the number days between dates

    With purchase info on sheet1 (Date in B), sales on sheet2 (Date in B)

    With lot # in A1

    =VLOOKUP(A1, Sheet2!$A$2:$B$500,2, False)- VLOOKUP(A1, Sheet1!$A$2:$B$500,2,FALSE)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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] Count number of days between two dates, if the day is between 1-5
    By Randi20 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-13-2013, 01:37 AM
  2. [SOLVED] Count number of days from column of repeating dates
    By Edwardbigfoot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2013, 04:22 PM
  3. [SOLVED] Vlookup dates between two dates and count the number of days
    By nishikanth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2013, 03:25 AM
  4. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 PM
  5. Count number of working days between two dates
    By dmucciolo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2012, 02:22 AM
  6. Replies: 3
    Last Post: 08-19-2011, 10:32 AM
  7. Count number of days between 2 dates
    By Trueno in forum Excel General
    Replies: 14
    Last Post: 03-19-2009, 08:08 AM
  8. Count number of dates older than 30 days
    By altaquip_travis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-12-2008, 03:20 PM

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