+ Reply to Thread
Results 1 to 4 of 4

How to count / sum with criteria DATE & TIME ?

  1. #1
    Registered User
    Join Date
    02-18-2018
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    2

    Question How to count / sum with criteria DATE & TIME ?

    I use this sheet for count my product's selling
    I want predict which date & time when buyer come to my shoes to buy my product (example i open from 08:00 AM - 16:00 PM and many of buyer always buy from 9 AM until 9:30 AM)
    So if i type date, time & No. Invoice then No. Buyer increase 1 by 1. Its for calculate how many people buy from my shop.
    I just want to know how many buyer in each day and know which time buyer always buy.


    I attach sheet that i want.
    As from that sheet mean : at 18 Feb, i have 3 buyer & 19 Feb, i have 2 buyer

    Sorry if someone try to give solution by using VB Makro, i don't know how to open because i'm open this sheet from mobile.
    Attached Files Attached Files
    Last edited by AliGW; 02-18-2018 at 02:01 AM.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: How to count / sum with criteria DATE & TIME ?

    Hi coba66, welcome to the forum. The attached workbook uses a multi-cell Array Formula to calculate half-hourly purchase frequencies.
    To enter such a formula, select the cells that will share it (C2:S2 in the example), click in the formula bar, paste the formula, and press CTRL+SHIFT+ENTER (all at once). Braces {} will surround the formula text, signifying successful array entry. Then copy the formula row down.
    Please Login or Register  to view this content.
    I also used a formula in a helper column on the data sheet to provide consistent dates and times for the main formula. Sheet1!F2 and copied down:
    Please Login or Register  to view this content.
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
    Attached Files Attached Files
    Last edited by leelnich; 02-18-2018 at 05:02 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    02-18-2018
    Location
    Indonesia
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    2

    Re: How to count / sum with criteria DATE & TIME ?

    Quote Originally Posted by leelnich View Post
    The attached workbook uses a multi-cell Array Formula to calculate half-hourly purchase frequencies.
    Please Login or Register  to view this content.
    I try enter date & time without nomor invoice (number unique) and formula still counting a buyer
    Looks like that table only look date & time, no matter there is no number invoice.
    Maybe i can use IF for check if number invoice didn't fill it then it can't counting to be buyer.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: How to count / sum with criteria DATE & TIME ?

    Quote Originally Posted by coba66 View Post
    ...Maybe i can use IF for check if number invoice didn't fill it then it can't counting to be buyer.
    Yes, that will work. In fact, if every invoice has a time, you can just check for the invoice. Try this in Sheet1!F2, copied down:
    Please Login or Register  to view this content.
    Last edited by leelnich; 02-20-2018 at 01:10 PM.

+ 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. =count separate date & time and count dates inside or outside 30 days
    By Beret in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-16-2017, 10:26 AM
  2. VBA Help - Loop to check/count against rows using date & time criteria
    By bellpiero11 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2017, 01:09 PM
  3. Replies: 4
    Last Post: 04-28-2017, 11:06 AM
  4. count the number of occurance based on time and date and specific criteria
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2014, 03:34 PM
  5. Replies: 2
    Last Post: 11-17-2011, 05:13 PM
  6. Count hours (time) between four time criteria
    By adhide in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-25-2009, 07:43 PM
  7. Replies: 0
    Last Post: 08-28-2005, 10:35 AM

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