+ Reply to Thread
Results 1 to 7 of 7

Concert set lists: finding the first and last time a song was played

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Ohio, United States
    MS-Off Ver
    2007
    Posts
    4

    Concert set lists: finding the first and last time a song was played

    https://docs.google.com/spreadsheets...it?usp=sharing

    I'm trying to use excel to compile statistics about a specific music artist's concert set lists. I've been using COUNTIF for most things (how many shows were played on a certain day of the week, total number of times a song was played, etc.) but I can't figure out a formula to tell me the first and last time a song was played.

    I don't know if I have the spreadsheet set up to be most effective, so I'm also looking for any help about how I might improve my formatting. Let me know if there is a problem with posting the link above.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concert set lists: finding the first and last time a song was played

    Update your sample workbook to manually demonstrate the results you're looking for, make it easy for us to see what you want to automate?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-15-2014
    Location
    Ohio, United States
    MS-Off Ver
    2007
    Posts
    4

    Re: Concert set lists: finding the first and last time a song was played

    Thank you for the quick reply.

    I added a second sheet and labeled both. I want the sheet labeled "song list" to have column B show the date of the first performance of a song, with column C showing the date of the most recent performance of a song. I manually looked up the first song on the list and entered the data manually. Is there a formula that would do this work for me with the data arranged as is, or do I need to change the database (the sheet titled "set lists").

    Thanks again.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concert set lists: finding the first and last time a song was played

    Like so... had to add the missing dates on sheet1... lots of helper columns on sheet2, the results are where you wanted them, though.

    No clue if Excel functions work in Google docs.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-15-2014
    Location
    Ohio, United States
    MS-Off Ver
    2007
    Posts
    4

    Re: Concert set lists: finding the first and last time a song was played

    Thank you. Now it's just a matter of digging into the formula to figure out what's going on.

    Was this the best way to organize the information or is there a better way?

    Also, for future reference, I guess I should always upload an actual excel sheet?

    Regardless, thank you for your help.

  6. #6
    Registered User
    Join Date
    07-15-2014
    Location
    Ohio, United States
    MS-Off Ver
    2007
    Posts
    4

    Re: Concert set lists: finding the first and last time a song was played

    a couple quick questions:

    I'm guessing it would be easier to make a column in the sheet titled "set lists" that has the date. Would this avoid using the DATEVALUE portion of the formula?

    I'm having a hard time figuring out part of the "last time played" formulas: Why did you use LOOKUP instead of INDEX, MATCH? Also in the formula "LOOKUP(2, 1/(...) what does the "2, 1/" do?

    Thanks again for your help. It's taking me a while, but I've been able to deconstruct what's going on in your formulas and have learned a lot. I've watched and read a bunch of tutorials, but most don't deal with the type of data I'm playing with.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Concert set lists: finding the first and last time a song was played

    The LOOKUP function is a fuzzy match function. If the data is ordered and you're searching for a specific value and the value is NOT in the list, the LOOKUP will return the last value it found in the list below the value you're searching for. Simple enough.

    For example, if you had 2,4,6,8,10 listed in cells A1:A5, and you looked for 7 in those cells with:
    =LOOKUP(7, A1:A5, A1:A5)
    ...it would return a 6 since that's the closest and last number in the list under the searched value. OK so far?

    Well, LOOKUP is used as a "trick" to find the last value in a range as well. This construct is being used on your project too.

    We are searching for the number 2 in a range of values that are all going to be less then 1, this is true because we are dividing all the answers found into 1. 1/(....) means every answer found will result in fractions of 1, like 1/5, 1/4, etc, and the rows that do no match the value test within the (...) will result in #DIV/0 errors. Those will be ignored by the LOOKUP.

    So, the formula finds every row that matches, divides that row number by 1, creates an array of all those results and then looks for "2" in that resulting list. Since 2 won't be there anywhere, it will default to showing the LAST numeric value in the array it created, essentially returning the last instance of a match.

+ 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: 9
    Last Post: 03-11-2013, 09:06 PM
  2. Excel for Ticketing in Concert?
    By ahmike in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 12:20 PM
  3. Concert listing with drop-down problems.
    By Morphy in forum Excel General
    Replies: 0
    Last Post: 06-15-2009, 11:49 AM
  4. Replies: 1
    Last Post: 07-13-2006, 10:43 AM
  5. [SOLVED] song list
    By nick in forum Excel General
    Replies: 16
    Last Post: 07-05-2005, 03:05 PM

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