+ Reply to Thread
Results 1 to 15 of 15

Frequency Problem

  1. #1
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Frequency Problem

    Hi All,

    I have been having the following problem and need I say a lot of help:

    I have a excel spreadsheet that tracks works via sheets:

    Date Range 01/09/2017 to 30/09/2017

    Sheet No. Name Date Inputted Hours Inputted Date Submitted Hours Submitted Date Approved Approved Hours
    1234 Joe 24-08-17 10 24-08-17 10 01-09-17 10
    1234 Karen 30-09-17 10 30-09-17 10 02-09-17 10
    1526 Mark 01-09-17 10 01-09-17 10 15-09-17 8
    1247 Peter 03-09-17 12 03-09-17 12 08-09-17 10
    1526 Cathy 15-09-17 10 15-09-17 10 23-09-17 10
    1841 Chloe 23-09-17 10 23-09-17 10
    1573 Fred 30-09-17 12

    I need to produce reports for each month that shows:
    How many sheets for the month,
    How many sheets have been inputted,
    How many sheets have been approved.

    I have been trying but it seems not to capture the correct amounts:
    =SUM(--(FREQUENCY(IF($C:$C>=$B$1,IF($C:$C<=$D$1,$A:$A)),$A:$A)>0))
    =SUM(--(FREQUENCY(IF($C:$C>=$B$1,IF($C:$C<=$D$1,$A:$A,IF(E:E>=B1,E:E<=D1))),$A:$A)>0))
    =SUM(--(FREQUENCY(IF($C:$C>=$B$1,IF($C:$C<=$D$1,$A:$A,IF(G:G>=B1,G:G<=D1))),$A:$A)>0))

    Please help...

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Frequency Problem

    Can you attach a sample workbook? Looks like a pivot table may work for this.

  3. #3
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    Hi kersplash,

    I tried but will not allow me to attach the sample for some reason.

    Regards

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Frequency Problem

    Click "Go Advanced" then "Manage Attachments" then attach and upload.

  5. #5
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    I think I have uploaded the sample file.
    Attached Files Attached Files

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Frequency Problem

    Have a look at the attached pivot tables to see if this answers your question.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    the pivot tables are not exactly what I am chasing.

    this formula will be a part of a bigger picture.

    I have over 4 years of data to show in a report.

    It would be great if I could do a formula that counts the number of sheets each month that meets:
    inputted in the month I select, has been submitted and has ben approved

  8. #8
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Frequency Problem

    That's fine a pivot table will show you the results for 4 years worth of data, you just change the data source of the pivot to match the range of data.

    If you want to use formulas then that will work too, just not my forte.

  9. #9
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    Yes I need to use a formula because of the duplicates see the worksheet has numerous names against each sheet so I want to capture the no. of sheets not rows. for auditing purposes.

    Hopefully someone out there will know.

    thanks, anyway for trying.

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Frequency Problem

    These formulas are array entered.

    It appears you are familiar with how to commit those Ctrl + Shift + Enter.

    In J1:J2 the date range to test.

    Array entered in K3.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Same in K4.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In K5
    Formula: copy to clipboard
    Please Login or Register  to view this content.






    J
    K
    L
    1
    9/1/2017
    2
    9/30/2017
    3
    Input
    5
    In K3 :{=SUM(IF(FREQUENCY(IF(($C$2:$C$8>=$J$1)*($C$2:$C$8<=$J$2),$A$2:$A$8),$A$2:$A$8),1))}
    4
    Submitted
    4
    In K4 :{=SUM(IF(FREQUENCY(IF(($E$2:$E$8>=$J$1)*($E$2:$E$8<=$J$2),$A$2:$A$8),$A$2:$A$8),1))}
    5
    Approved
    3
    In K5 :{=SUM(IF(FREQUENCY(IF(($G$2:$G$8>=$J$1)*($G$2:$G$8<=$J$2),$A$2:$A$8),$A$2:$A$8),1))}
    Dave

  11. #11
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    Hi Dave,

    that's nearly what I am looking for, the only thing is that Submitted and Approved may be a different month.

    the report I need to show is going to be a live document in the way that Submitted and Approved will be shown the difference each month.

    ie. Sept 2017 Inputted 117, out of 117, 97 were submitted and out of the 117, 68 were approved and when I print the report in Oct 17 it has a running total like 117 out of the 117 inputted 112 have been submitted & 97 have been approved.

    I hope this helps.

    That's why I want the formula.

    really appreciate your time on this I have been at it for 2 days.

    Regards,

    Mark

  12. #12
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    Hi All,

    Thanks for your help I have worked it out see attached spreadsheet.
    the formula's needed another date to reflect.
    Attached Files Attached Files

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Frequency Problem

    Glad to see you worked it out, and thank you for further explanation and upload.

    Of note:
    You do well to avoid whole column references when applying math operations. It forces Excel to do over 1 million unnecessary calculations in each call. This slows performance.

    A better approach is to make the ranges a little larger than anticipated ... i.e. if you anticipate using @ 1000 rows make the range 1500.

    Another approach (better in my opinion) would be to make those Dynamic Named Ranges and then reference those ranges by name. If you are not familiar with those they dynamically resize to fit the data.

    Good work.

  14. #14
    Registered User
    Join Date
    02-11-2018
    Location
    Perth, Australia
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Frequency Problem

    Thanks for the info.

  15. #15
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,741

    Re: Frequency Problem

    You're welcome. Thanks for the feedback, rep and marking your thread Solved.

+ 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] Problem with If frequency formula
    By dbogey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2016, 03:39 PM
  2. Problem with Frequency() formula
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 12:05 PM
  3. Problem with Frequency() formula
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  4. Problem with Frequency() formula
    By Mangesh Yadav in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Problem with Frequency() formula
    By Jim May in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. [SOLVED] Problem with Frequency() formula
    By Jim May in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. problem with FREQUENCY
    By Gautam in forum Excel General
    Replies: 1
    Last Post: 01-27-2005, 08:06 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