+ Reply to Thread
Results 1 to 5 of 5

Daily Report with today's date

  1. #1
    Registered User
    Join Date
    01-20-2016
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    6

    Daily Report with today's date

    Hello All,

    This is my first post, so first of all, I apologize if I am doing something wrong.

    I need help with a formula that will fetch data from a cell or number of cells in a column by matching today's date with another column of dates.


    Station Name Machine# Installation Date
    Station A 111 June 4, 2018
    Station B 112 June 5, 2018

    So, I want a daily report that will look at the current date and if it matches with "Installation Date" it will return both all the column. So if I run the report today (June 5, 2018) it will return:

    Station Name Machine# Installation Date
    Station B 112 June 5, 2018


    Please help with this. Thank you.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Daily Report with today's date

    Welcome to the forum!

    If I'm understanding the goal correctly, you can achieve your report by copying your headers onto a new sheet, then using the following formula in A2 of sheet2 - the formula should be array entered (confirmed with Ctrl + Shift + Enter instead of Enter):

    =IFERROR(INDEX(Sheet1!$A$2:$C$20,SMALL(IF(Sheet1!$C$2:$C$20=$G$1,ROW(Sheet1!$C$2:$C$20)-ROW(Sheet1!$C$2)+1),ROW(1:1)),MATCH(A$1,Sheet1!$A$1:$C$1,0)),"")

    Fill it right and down beyond what you'll need and it should auto-update as the date changes or as you add entries to sheet1.

    The formula as I've written it only looks through row 20 on your main list on sheet1. If you expect more than 20 rows of data on sheet1, then change the "$20"s in the formula to something much bigger. The formula also looks to cell G1 on sheet2 for the date, which can be supplied with the TODAY() function. If you want, you can replace the "$G$1" in the formula with "TODAY()" and eliminate the need for cell $G$1, but I strongly recommend using the current setup, which will allow you to easily lookup past or future dates simply by changing G1, rather than having to change the formula.

    Take a look at the attachment to see if it will work for you.
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    01-20-2016
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    6

    Re: Daily Report with today's date

    Hello CAntosh,

    Thank you so much for your reply. When I type in the formula and enter it pops up the file explorer (pic attached). I know you mentioned that the formula should be array entered? Can you please advise as to how to proceed? Terror1.JPG
    Last edited by zahidislam14; 06-06-2018 at 01:14 PM.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Daily Report with today's date

    To array-enter a formula, instead of hitting enter once the formula has been typed/copied in, hold Control and Shift and then hit Enter. If you were successful, you should see brackets like {this} automatically appear around the formula. In the attachment in post #2, when you click on A2, you should see brackets around the formula - I didn't type those brackets, they are there to indicate that the formula was array entered.

    I don't know why the file explorer is popping up, but my guess would be that your sheet names don't match the sheet names used in the formula. My formula assumes that your main data sheet is called Sheet1. If it isn't, change your main sheet's name to Sheet1 or change the "Sheet1" parts of my formula to match the actual sheet name.

    Hopefully that helps?
    Last edited by CAntosh; 06-06-2018 at 01:29 PM. Reason: Pic is visible now

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Daily Report with today's date

    That normally happens when a sheet name being referenced in a formula, does not exist in that file. If the sheet name does exist, check for spelling/typos and for leading/trailing spaces
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Calculate daily revenue from date range, Hotel Booking report
    By raj4rev in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2017, 08:40 AM
  2. Daily report count to be captured in the date wise
    By rajuganapathy in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-27-2016, 03:05 AM
  3. Report reference numbers if date within or over today's date
    By Honeyfoot in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2015, 06:07 AM
  4. Replies: 10
    Last Post: 06-01-2015, 08:41 AM
  5. Replies: 4
    Last Post: 02-01-2014, 10:37 PM
  6. Build and print a daily report with defined date range
    By soc.com in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2013, 06:16 AM
  7. [SOLVED] Inserting daily quote based today date
    By vickicr888 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2013, 12:56 PM

Tags for this Thread

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