+ Reply to Thread
Results 1 to 2 of 2

How to count the number of days from last occurrence of a number drawn.

  1. #1
    Registered User
    Join Date
    12-08-2017
    Location
    Australia
    MS-Off Ver
    Microsoft 10
    Posts
    1

    How to count the number of days from last occurrence of a number drawn.

    I am doing a spread sheet for lotto numbers, and I require a formula that can tell me how many days since a number was last drawn. I am working with 2 work sheets, one has the Draw number, dates and balls drawn. Second work sheet has the frequency, most common, least common numbers and last time they were drawn.
    lotto,word.docx

    I have watched hours of excel you tube and read heaps of forums but cannot find anything that works.
    Can some body help me PLLEEEASE.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to count the number of days from last occurrence of a number drawn.

    Hello debrahilton

    You can use AGGREGATE function to find the last date a number was drawn.....and subtract that from today to get the number of days, i.e. this formula in J4 for results worksheet, copied down column

    =TODAY()-AGGREGATE(14,6,'Set For Life'!B$2:B$1000/('Set For Life'!C$2:J$1000=B4),1)

    Format formula cell as number with no decimal places

    That assumes up to 1000 rows of data, adjust as required
    Audere est facere

+ 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: 16
    Last Post: 08-22-2017, 11:20 AM
  2. [SOLVED] Count the number of occurrence upto now and assign a unique sequence number
    By chathuranga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-22-2016, 07:25 AM
  3. Count number of occurrence between dates
    By Wskip49 in forum Excel General
    Replies: 5
    Last Post: 09-14-2016, 03:06 PM
  4. [SOLVED] Count number of days since last text occurrence
    By Verifyor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2014, 11:24 AM
  5. [SOLVED] Count number of occurrence in column and print to array
    By ggilzow in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2013, 12:44 PM
  6. Help on count the number of days in between dates and then average number of days
    By Barbara Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2013, 12:13 PM
  7. [SOLVED] When a number has been drawn last time ?
    By Mr.Nob0OOdy in forum Excel General
    Replies: 11
    Last Post: 06-24-2012, 06:48 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