+ Reply to Thread
Results 1 to 5 of 5

Formula for Retrieving Previous Days Information

  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Formula for Retrieving Previous Days Information

    Hello,

    I have information in tabs 1, 2, and 3. The spreadsheets contain information for every day of the month. I am looking to make a spreadsheet in tab 4 that contains certain information for the previous day. Tabs 1,2, and 3 get information entered to them on a daily basis. The number that gets entered is production information from the previous day and contains lots of information in which I do not need all of that. What I am looking for is a few cells from each tab 1,2, and 3 from the previous day. So for example if today 12/10/12 I want to be able to go into tab 4 and have it display information from 12/9/12 if that makes any sense, but only a from few specific cells.

    Thank you for your help!

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Formula for Retrieving Previous Days Information

    See tab 4 in the attached workbook
    Attached Files Attached Files
    Gary's Student

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Formula for Retrieving Previous Days Information

    Thanks this will work. Another question though.....say it's a Monday morning and I want information for Friday. I know you can go in and change the formula to subtract more days but is there any way for it to detect that there was nothing entered in on Sunday and automatically jump to the most recent day that does have information in it?

    Thanks

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Formula for Retrieving Previous Days Information

    This formula says, if today is Monday, get the data from the previous Friday:

    =IF(TEXT(TODAY(),"dddd")="Monday",VLOOKUP(TODAY()-3,'3'!A1:B32,2,FALSE),VLOOKUP(TODAY()-1,'3'!A1:B32,2,FALSE))

  5. #5
    Registered User
    Join Date
    09-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Formula for Retrieving Previous Days Information

    Thanks this works great!

+ 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