+ Reply to Thread
Results 1 to 7 of 7

Multiple DateIF formulas

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    12

    Multiple DateIF formulas

    I have been searching to find the best way to sum multiple person's tenure to return an average, but I haven't been able to find a solution. Everyone is helpful and knowledgable on the boards so I came here. I am hoping someone can help me learn the best approach.

    I used DATEIF to calculate the person's tenure and SUMPRODUCT to count how many fall into <1, 1-3, 3-5, 5-10 and >10 based on type.
    I am trying to find the average tenure for each location based on type, when I tried to SUMPRODUCT I get a result of 0, same with IF.

    I have attached a sample.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple DateIF formulas

    File came up "Incorrect file format or extension"

    Can you upload again?

    In the meantime, I'll generate random data.

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Multiple DateIF formulas

    Sure

    I really appreciate you taking the time to take a look. sample1.xlsx

    https://www.dropbox.com/s/tppfnq7wpurx4h3/sample1.xlsx

    Quote Originally Posted by daffodil11 View Post
    File came up "Incorrect file format or extension"

    Can you upload again?

    In the meantime, I'll generate random data.
    Attached Files Attached Files

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple DateIF formulas

    How about something like this?

    Note, the formulas are entered as array. After the formula is typed in, hit Control+Shift+Enter instead of just normal Enter.

    I'm not so great at SumProduct yet. Someone else may be able to truncate my expression into something a bit more efficient.

    TENURECOUNT.xlsx
    Last edited by daffodil11; 07-24-2013 at 05:44 PM.

  5. #5
    Registered User
    Join Date
    06-05-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Multiple DateIF formulas

    That may work. I was trying to avoid adding another table to reference in the file, but it may be the best option. I am new with the date formulas other than =today() or now()

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple DateIF formulas

    Ok, got it. Again, I'm not known for my simplicity or truncation but here are 5 formulas that work assuming dates are in column C with no extra tables necessary:

    <=1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    >1, <=3
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    >3, <=5
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    >5, <=10
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    >10
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Remember, each needs entered with Ctrl+Shift+Enter

    TENURECOUNT-complete.xlsx
    Last edited by daffodil11; 07-24-2013 at 06:21 PM. Reason: attached example

  7. #7
    Registered User
    Join Date
    06-05-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Multiple DateIF formulas

    This works for the year criteria but not when adding in the criteria of location and type.
    Thank you though!

+ 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. [SOLVED] Dateif total
    By Pedro999 in forum Excel General
    Replies: 7
    Last Post: 09-05-2012, 05:23 PM
  2. =dateif
    By s1m0ns1m0n in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-15-2012, 12:15 PM
  3. Dateif formula
    By Get_Involved in forum Excel General
    Replies: 1
    Last Post: 08-12-2008, 07:53 PM
  4. Dateif Formula
    By vbehler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2007, 10:39 PM
  5. DATEIF and IF statements
    By neominds in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-06-2005, 07: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