+ Reply to Thread
Results 1 to 9 of 9

Number ones for your birthday.

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    5

    Red face Number ones for your birthday.

    Hi. Straight up, I'm not a DBA or anything, but I am IT orientated..
    I manually created a list of UK number one hits that landed on 11th Nov from 1976 (My birthday) (Took a little while.)

    Now I have a small DB with all number ones since Jan 1970 (976 records)
    Heres the format:-
    Artist,Track,WentToNumberOne,WeeksAtNumberOne
    Edison Lighthouse,"Love Grows (Where My Rosemary Goes)",31/01/1970,5
    Lee Marvin,"Wand'rin' Star",07/03/1970,3
    Simon & Garfunkel,"Bridge over Troubled Water",28/03/1970,3
    Dana,"All Kinds of Everything",18/04/1970,2
    Now what I would like, is to run a query where you enter your DOB, for example 1 June 1980, and the data returned is every number one that landed on that day for each year since and including 1980

    Out of the data below, which is a snippet, the query would select M*A*S*H*, because the date is the last date, that falls before the next row.. (Make sense?)
    M*A*S*H	"Theme from M*A*S*H (Suicide is Painless)"	31/05/1980	3
    Don McLean	"Crying"	21/06/1980	3
    I'm not worried if you would like a copy of the DB to play with..

    This is a personal project, and certainly isn't a priority, but your hobbyist help would be appreciated!!
    thanks
    Doug

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Number ones for your birthday.

    can you post the whole list
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Number ones for your birthday.

    CSV --> NumberOnes.csv
    I have this in an Access DB.. I'd ideally want a REPORT

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Number ones for your birthday.

    oops i didnt see it was access! i'll flag it to see if anyone knows,can do it prob in excel tho!
    just because i could it was good exercise
    Attached Files Attached Files
    Last edited by martindwilson; 07-07-2013 at 10:21 PM.

  5. #5
    Registered User
    Join Date
    07-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Number ones for your birthday.

    Quote Originally Posted by martindwilson View Post
    oops i didnt see it was access! i'll flag it to see if anyone knows,can do it prob in excel tho!
    just because i could it was good exercise
    Excel is fine.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645
    Keep it in Access and set the criteria based on user input via a form.
    If posting code please use code tags, see here.

  7. #7
    Registered User
    Join Date
    07-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    5
    Access is fine!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Number ones for your birthday.

    amendment to excel version to allow current week automatically
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-07-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Number ones for your birthday.

    You guys are pretty dam gooood! Thanks loads.

+ 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