+ Reply to Thread
Results 1 to 10 of 10

show unique locations or account # by month

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    show unique locations or account # by month

    I have a list of accounts ~6500 rows of data.

    it shows accounts listed by "account # - column D" and "address - column F".

    I require a formula (not pivot table) In cell Z2 i want to show "unique" list of locations by EACH MONTH that occur only once, so i can calculate their revenue. For example, ABC Inc may be serviced 3 times in a month, however i want to show the value for the "first" service that occured for that month.

    THerefore, my criterias are
    Month = column S
    Category = "auto" column T
    Unique address = column F or use column D (account #)

    i have been stuck on this and dont know where to go. any help will be truly appreciated....thanking you in advance.
    Attached Files Attached Files
    Last edited by jw01; 05-31-2013 at 01:57 PM.

  2. #2
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: show unique locations or account # by month

    any thoughts on this guys? thx u

  3. #3
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: show unique locations or account # by month

    In the attached, the "First Occurrence" is automated. That's what I think you're after. If not, please let me know. This did require a table -- also automated except for extending it into 2014 and beyond, which is highlighted in blue.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: show unique locations or account # by month

    Hello bentleybob

    I assume column AA list the accounts or what exactly is that showing?

    That being said, i will need to show all unique locations by month to show the user whats "new" for that month for that "unique" location. In addition, column AI = ref# error.

    thanks for your help...pls let me know sir.

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: show unique locations or account # by month

    Hello bentlybob

    after review it again, i am assuming column AA shows the "# of unique" locations in a particular month?

    for example, in 1-2012 there are 2 unique locations (cell AA2).

    that is what i am somewhat hoping to achieve.

    what i want to show:
    for example, 1-2012 : list all unique locations (NOT the # of total locations), i would like to show what account # or address is solely *new* or *unique* that does not repeat for that month and list them by their account # or address.

    hope that makes more sense? appreciate the help sir.

  6. #6
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: show unique locations or account # by month

    Column AA simply shows the row number where the month changes. It’s used in the formulas in Column V. But there aren’t 2 unique locations in 1-2012, there are 184! That’s almost half of them.

    Column AI was a temporary check to see if my Column V results matched yours; you can delete it.

    As for showing all unique locations by month, I guess the easiest thing to do is to use the filters. So if you wanted to see all the unique locations for, say February 2012, you would filter Column R for 2012, Column S for 2, and Column V for 1. If you truly want another place where only the unique locations are listed (so you don’t have to filter), that’s doable too, but it would be a very long list because over 40% of your line items are unique. If you MUST have it, I can do this (preferably in a separate tab), but I didn’t want to put that work into this if it wasn’t really needed.

    BTW, you have three occurrences where the address in Column F matches but the Account in Column D doesn’t. Since I used the address as the key (as I think you did), you get a slightly different answer than if you had used the account number. I say this only because in your original post, you said you could use either.

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: show unique locations or account # by month

    Last edited by icestationzbra; 05-31-2013 at 01:10 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  8. #8
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: show unique locations or account # by month

    hello icestationzbra

    that is perfect.......80% of what i was hoping to achieve. your formula list the # of "unique" or "new" locations by month, which is awesome.

    what i am looking for is to show the "list of accounts that are unique". For example, cell AA2 = 185 unique locations. would it be possible to show the 185 locations, their address in column F or account # in column D?

    pls let me know; thanks for your help!!!

  9. #9
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: show unique locations or account # by month

    Quote Originally Posted by icestationzbra View Post
    see if this is what you are looking for...
    SIR YOU ARE AN ALLSTAR!!! WOW.....

    Note: I do prefer the method with the dates but thank you with the bottom of my heart!

    cheers, have a great weekend!

  10. #10
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: show unique locations or account # by month

    hi there,

    i was dismayed by the performance of the file that i had provided earlier, so i attempted a MS Query solution to get what you want. the performance has improved tremendously.

    place the attached file in "C:\Downloads\". you can change this path later. then, open the file. upon opening, it will ask you to enable Data Connections, go ahead and enable that. on Summary tab of the attached file, there is a Smart Table - that is the output of the MS Query.

    i have checked the results for a couple of periods and they seem to be correct.

    in case you want to view / edit the query, here is how you do it.

    click anywhere within the Smart Table and punch ALT > A > O. you should see Workbook Connections window. highlight the one connection displayed and click on Properties. in the Connection Properties window, you will observe that the Smart Table refreshes every minute (Usage tab). now, click on Definitions tab and observe the Command Text block. copy all the contents into a Notepad to view.

    Please Login or Register  to view this content.
    you can change the path of the file here. the quote being used above is back-quote or accent-grave (the character below tilde on a US keyboard).
    Attached Files Attached Files

+ 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