+ Reply to Thread
Results 1 to 10 of 10

Need to Find a Number between dates

  1. #1
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Need to Find a Number between dates

    First off, thank you in advance for any assistance with this question. I don't even know if this is possible (knowing this group though, there is always an answer).

    I have attached a sample spreadsheet with the values entered in the column I need the formula in (expected results). The workbook has two tabs. The first one has the source data and the second tab is where I need to have data entered.

    I need to pull (in this example) the number of bread loaves baked between two dates. If the date I am looking for isn't in the source then the number of loaves I need is under the first date before the one I am looking at. I hope that isn't too confusing.

    Thank you again!

    Cliff Watson
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to Find a Number between dates

    Give this a try

    =LOOKUP(A7,Breads!$D$1:$T$1,INDEX(Breads!$D$2:$T$8,MATCH($B$1,Breads!$A$2:$A$8,0),0))

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Need to Find a Number between dates

    deleted....
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Need to Find a Number between dates

    That is perfect! Thank you. I had to alter it a little because the dates that are copied in are text (they have to be converted to a date) and there are columns with no data.

    Thank you very much!!!!!

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Need to Find a Number between dates

    Sorry JonMo1 - I tried to add to your rep but it said I had to spread some rep around before I could.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to Find a Number between dates

    You're welcome.

    You might be better off in the long run actually converting the text dates to real dates.
    I used Data - Text to Columns - Fixed width.
    And put a delimiter after the first comma (basically removing the weekday mon tue etc.)

  7. #7
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Need to Find a Number between dates

    It would be fewer calculations (about 30 per tab, 64 tabs... okay so it isn't about bread ) but that would mean I would have to do that for all 64 tabs every time I paste in new data.

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to Find a Number between dates

    I did say ‘might be’

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Need to Find a Number between dates

    Do you have any control over the source data?

    Instead of copying and pasting, you could use an import option from the data tab. You could probably manipulate that date there.
    Last edited by Jonmo1; 04-06-2018 at 04:55 PM.

  10. #10
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Need to Find a Number between dates

    Unfortunately, I don't have control of the data. It's given to me as text and there are 64 sets of data with about 30-35 lines of data per set (each line of data occurs on a different date). I will use the text/column trick on a few sets of data and see how much longer it takes me.

+ 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] find number of months within range of dates
    By rs1aj in forum Excel General
    Replies: 7
    Last Post: 06-02-2015, 01:36 PM
  2. [SOLVED] Find a peak number over a series of dates
    By sipa in forum Excel General
    Replies: 8
    Last Post: 11-02-2014, 09:09 AM
  3. [SOLVED] Find number of months between two dates
    By arun.sj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2014, 06:40 AM
  4. [SOLVED] Find number of days between two dates
    By Test123Test in forum Excel General
    Replies: 9
    Last Post: 04-17-2014, 03:19 PM
  5. [SOLVED] How to find the number of days from 2 dates?
    By cyberdude in forum Excel General
    Replies: 1
    Last Post: 06-16-2006, 03:50 AM
  6. Find the number of years between two dates
    By duke in forum Excel General
    Replies: 2
    Last Post: 09-09-2005, 11:05 PM
  7. [SOLVED] Find number of days between to dates
    By Qaspec in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2005, 09:06 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