+ Reply to Thread
Results 1 to 5 of 5

Data analysis of dates, splits & segments of dept codes

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Data analysis of dates, splits & segments of dept codes

    I'm trying to analyse data and summarise it by date (greater than 60 days, and between 30 days and 60 days), by department using the first two digits of department codes, and where there are multi-line order numbers...

    Apart from that, it's laughs all the way. A sample of the data is attached.

    Thansk for any ideas...
    Attached Files Attached Files
    Last edited by BRISBANEBOB; 06-22-2009 at 03:15 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Data analysis of dates, splits & segments of dept codes

    First you need to alter J2 to be 25- (double listing 24 presently)

    Second, to avoid horrendous formulae I would advise creating a concatenation key in O, such that:

    O12: =LEFT(K12,2)&"#"&L12
    copied down for all rows

    Then for results of unique Inv numbers...

    Please Login or Register  to view this content.
    For the summation copy E3:E4 to E6:E7 but alter the final argument of the SUMPRODUCT from: 1/COUNTIF(...) to simply $I$12:$I$300

    You may want to think about using Dynamic Named Ranges in the Long Term.

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Data analysis of dates, splits & segments of dept codes

    Again, thanks a lot.

    Regarding the LEFT, why do you use LEN() as opposed to just "3", and how does the 1/Countif work?

    YOur help is appreciated.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Data analysis of dates, splits & segments of dept codes

    Quote Originally Posted by BB
    Regarding the LEFT, why do you use LEN() as opposed to just "3"
    Flexible... if you had 99-, 100- in consecutive cells you would need to alter the formula if the value was hardwired, by using LEN it will auto adjust.

    Quote Originally Posted by BB
    how does the 1/Countif work
    Consider:

    A1:A3
    a
    b
    a
    Count of unique items is obviously 2 - a & b but how to calculate...

    Well given my total output for all "a" should = 1 I need to apportion 1 accordingly... so let's say in B I do the following:

    B1: =1/COUNTIF($A$1:$A$3,$A1)
    and copy down to B4

    The results I generate are thus:

    B1: --> 1/2 --> 0.5
    B2: --> 1/1 --> 1
    B3: --> 1/2 --> 0.5
    The SUM of B1:B3 is thus 2.

    I can achieve the same result without use of B using a SUMPRODUCT to iterate the calcs

    C1: =SUMPRODUCT(1/COUNTIF(A1:A3,A1:A3))

    so the above essentially conducts three 1/COUNTIF calcs (ie for A1, A2, A3 being the criteria) and sums the resulting output.

    the use of &"" etc as used in the real example is a way to handle blanks.

    I should point out however that the method provided is flawed should an invoice be split over different thresholds (30, 60 days etc) but on the same distribution code... this doesn't appear to be an issue in your sample file.

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    811

    Re: Data analysis of dates, splits & segments of dept codes

    Thank you for the explanation. the learning continues...

+ 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