+ Reply to Thread
Results 1 to 9 of 9

Using date range to monitor invoices received. Help please!

  1. #1
    Registered User
    Join Date
    08-14-2014
    Location
    London, England
    MS-Off Ver
    MS Office 10
    Posts
    74

    Lightbulb Using date range to monitor invoices received. Help please!

    Hi there,

    For months now I have been manually tracking the invoices that I have received by putting a "1" in the correct cell and I was wondering if anyone would be kind enough to come up with an automated way.

    I have attached an example, I'm looking for the yellow highlighted cells to automatically pick up if an invoice has been received for the correct date period.
    Sometimes the invoices cover part of a month or even stretch across 2 months so if possible I would like to pick this up too.

    In an absolute IDEAL world, I would love to get the % of the month that the invoice covers, e.g. if an invoice covers the 7 days from 4/4/18 to 9/4/18 that would be 25% of the month so the formula would return 25% in the cell! This may not be possible though!

    Thank you so much
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Using date range to monitor invoices received. Help please!

    For exact dates: =IF(AND(K$1>=$B5,K$2<=$C5),1,"") -this will not include the invoices based on half a month
    To pick up the invoices cover part of a month or even stretch across 2 months: =IF(AND(DATE(YEAR(G$1),MONTH(G$1),1)>=DATE(YEAR($B5),MONTH($B5),1),DATE(YEAR(G$2),MONTH(G$2),1)<=DATE(YEAR($C5),MONTH($C5),1)),1,"")
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    08-14-2014
    Location
    London, England
    MS-Off Ver
    MS Office 10
    Posts
    74

    Re: Using date range to monitor invoices received. Help please!

    Hi Paul, Thanks so much for the quick response, really interesting formula.
    It's definitely a step in the right direction but not exactly what I'm after as it involved the towns being in the same order and also won't account for duplicate invoices.

    I've added another attachment to try and explain what I mean. I have resorted the towns alongside the left hand side, is there anyway all the yellow cells could also look up to the columns along the left hand side as opposed to relying on the towns in column F being in the same order as those in column A?

    I hope I'm making sense!
    Thanks again
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-14-2014
    Location
    London, England
    MS-Off Ver
    MS Office 10
    Posts
    74

    Lightbulb Re: Using date range to monitor invoices received. Help please!

    Can anyone help me

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Using date range to monitor invoices received. Help please!

    This should work. To right and down: =IF(COUNTIFS($B$4:$B$25,"<="&G$2,$C$4:$C$25,">="&G$1,$A$4:$A$25,$F5)>0,1,"")

  6. #6
    Registered User
    Join Date
    08-14-2014
    Location
    London, England
    MS-Off Ver
    MS Office 10
    Posts
    74

    Re: Using date range to monitor invoices received. Help please!

    Thank you Paul, that's really great. Is there no way to add another dimension to the formula to tell us how much of the month has been covered by the invoice? e.g. instead of returning "1", returning 25% if 25% of the month is within the date range?

    This may not be possible but I thought it would be worth asking.

    Thanks so much for your help.

  7. #7
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Using date range to monitor invoices received. Help please!

    Is it possible. It will be something like this, but this has to be tweaked since do not produce accurate results for all lines.
    Please Login or Register  to view this content.
    I will have a look at it tomorrow.

  8. #8
    Registered User
    Join Date
    02-12-2019
    Location
    new york
    MS-Off Ver
    office 365 proplus 1811
    Posts
    13

    Re: Using date range to monitor invoices received. Help please!

    Hi,

    I am a novice and probably am wrong but try this formula

    =(C5-B5)/(G2-G1)

  9. #9
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Using date range to monitor invoices received. Help please!

    I believe the following formula does what you are looking for.
    Here is a subset of the output:

    towns.png

    Despite the sumproduct() the formula does need to be entered as an array formula using CTRL-SHIFT-ENTER
    Enter in G5 using CTRL-SHIFT-ENTER then copy across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you want to hide zeros you can apply the following custom format to all yellow highlighted cells: 0%;;

    The attached workbook implements the above.
    Attached Files Attached Files
    Last edited by GeoffW283; 02-21-2019 at 01:22 AM.

+ 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. Replies: 1
    Last Post: 10-17-2017, 10:36 PM
  2. Finding sum of invoices for Total Amount received.
    By ebincharles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2016, 03:56 PM
  3. Replies: 4
    Last Post: 12-02-2014, 03:46 AM
  4. Replies: 1
    Last Post: 12-01-2014, 03:01 PM
  5. Improvement - Show ALL THREADS which received Rep in Latest Reputation Received Area
    By :) Sixthsense :) in forum Suggestions for Improvement
    Replies: 2
    Last Post: 02-12-2013, 03:27 AM
  6. [SOLVED] Monitor date and time range
    By smcelv1 in forum Excel General
    Replies: 5
    Last Post: 06-13-2012, 09:15 AM
  7. Replies: 1
    Last Post: 03-27-2006, 12:35 AM

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