+ Reply to Thread
Results 1 to 34 of 34

Use of #Min#Countif#Time Sorting Required.

  1. #1
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Use of #Min#Countif#Time Sorting Required.

    I have attached a file. in Sheet 1 i have made headings and in Sheet2 their is data from which i need to pick up information. Please need support.
    Thanks
    Attached Files Attached Files
    Last edited by alvi_gee; 03-03-2018 at 12:53 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,273

    Re: Need help in making a file.

    There is no attachment.

    Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Need help in making a file.

    Done Mam
    Last edited by AliGW; 03-03-2018 at 12:57 PM. Reason: Unnecessary quotation removed.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,273

    Re: Use of #Min#Countif#Time Sorting Required.

    Thank you.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    You need to add some expected results as all we have is a list of times: which are "Start", and which are "End" ?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,273

    Re: Need help in making a file.

    Right - you have given us an empty grid with no indication of your expected results. Please manually fill in what you would expect to see in the first three rows - all columns - and then attach the file again. Thanks!

  7. #7
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Need help in making a file.

    Updated again please check now.
    Attached Files Attached Files
    Last edited by AliGW; 03-03-2018 at 01:20 PM. Reason: Unnecessary quotation removed.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,959

    Re: Use of #Min#Countif#Time Sorting Required.

    Columns D, E & F are correct. However, you really need to explain where the numbers in column E of your raw data come from. Columns G & H are therefore just a bit of a guess. Your calculations in E are inconsistent and make no sense...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Use of #Min#Countif#Time Sorting Required.

    My cut:

    A
    B
    C
    D
    E
    F
    G
    H
    3
    Name
    Cakes
    Start
    End
    Time
    Avg
    Fastest
    Slowest
    4
    Alan
    3
    3/2/2018 18:22
    3/2/2018 20:17
    1:55
    0:38
    1:12
    0:18
    5
    Barb
    9
    3/2/2018 10:07
    3/2/2018 20:11
    10:04
    1:07
    7:58
    0:01
    6
    Cain
    14
    3/2/2018 10:07
    3/2/2018 20:10
    10:03
    0:43
    7:54
    0:01
    7
    Dana
    7
    3/2/2018 10:12
    3/2/2018 20:04
    9:52
    1:24
    7:48
    0:02
    8
    Eric
    3
    3/2/2018 18:00
    3/2/2018 20:04
    2:04
    0:41
    1:16
    0:18
    Attached Files Attached Files
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Use of #Min#Countif#Time Sorting Required.

    Oops -- I left a UDF in the formulas in G4 and H4.

    In G4:

    {=MAX(SMALL(IF(Sheet2!$C$4:$C$44 = $A4, Sheet2!$D$4:$D$44), ROW(INDIRECT("2:" & $B4 + 1)))
    - SMALL(IF(Sheet2!$C$4:$C$44 = $A4, Sheet2!$D$4:$D$44), ROW(INDIRECT("1:" & $B4))))}

    In H4:

    {=MIN(SMALL(IF(Sheet2!$C$4:$C$44 = $A4, Sheet2!$D$4:$D$44), ROW(INDIRECT("2:" & $B4 + 1)))
    - SMALL(IF(Sheet2!$C$4:$C$44 = $A4, Sheet2!$D$4:$D$44), ROW(INDIRECT("1:" & $B4))))}

  11. #11
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Quote Originally Posted by shg View Post
    My cut:

    A
    B
    C
    D
    E
    F
    G
    H
    3
    Name
    Cakes
    Start
    End
    Time
    Avg
    Fastest
    Slowest
    4
    Alan
    3
    3/2/2018 18:22
    3/2/2018 20:17
    1:55
    0:38
    1:12
    0:18
    5
    Barb
    9
    3/2/2018 10:07
    3/2/2018 20:11
    10:04
    1:07
    7:58
    0:01
    6
    Cain
    14
    3/2/2018 10:07
    3/2/2018 20:10
    10:03
    0:43
    7:54
    0:01
    7
    Dana
    7
    3/2/2018 10:12
    3/2/2018 20:04
    9:52
    1:24
    7:48
    0:02
    8
    Eric
    3
    3/2/2018 18:00
    3/2/2018 20:04
    2:04
    0:41
    1:16
    0:18
    Sir, Every thing is OK, But just a small Question, In G & H column, was there data used from another file? I meant do i need to copy all the data of sheet2 to another file? I am saying this because

    =MAX(SMALL(IF(Sheet2!$C$4:$C$44 = $A8, Sheet2!$D$4:$D$44), 'C:\Users\AGC\AppData\Roaming\Microsoft\Excel\XLSTART\Personal.xls'!rowvec(2, $B8 + 1))
    - SMALL(IF(Sheet2!$C$4:$C$44 = $A8, Sheet2!$D$4:$D$44), 'C:\Users\AGC\AppData\Roaming\Microsoft\Excel\XLSTART\Personal.xls'!rowvec(1, $B8)))

    Please support.
    Thanks

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    Use the formulae given in post #10.

  13. #13
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Thanks Sir,
    Just One more thing, Can i get a Trend column. I have attached the file. can i get trend hours, like how many cakes were made in most hours. If i could get this by Name wise then it would be great.
    Attached Files Attached Files
    Last edited by AliGW; 03-23-2018 at 12:50 PM. Reason: Unnecessary quotation removed.

  14. #14
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Any One?????????/

  15. #15
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Use of #Min#Countif#Time Sorting Required.

    reattach the file with expected result and explain how you get the result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  16. #16
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Sir, reattached the file.
    Need to check that how many cakes were made hourly by each worker. Thanks
    Attached Files Attached Files
    Last edited by AliGW; 03-23-2018 at 12:50 PM. Reason: Unnecessary quotation removed.

  17. #17
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Use of #Min#Countif#Time Sorting Required.

    j5=COUNTIFS(Sheet2!$C$3:$C$2792,$B5,Sheet2!$D$3:$D$2792,">="&INT($D5)+J$4,Sheet2!$D$3:$D$2792,"<"&INT($D5)+J$4+TIME(1,0,0))
    Try this and copy across

  18. #18
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Thanks Sir, it works. But one question that in Total Cakes column the formula is "=COUNTIF(Sheet2!$C$3:$C$2792, B5) - 1" why is it - 1 as this results in one lesser . Plz explain.
    Last edited by AliGW; 03-23-2018 at 12:50 PM. Reason: Unnecessary quotation removed.

  19. #19
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Use of #Min#Countif#Time Sorting Required.

    I am also have the same doubt when I saw your excel file
    What I think was
    for Urban BA Sialkot 5
    06-03-2018 11:00:00 is Starting Time of Cake One and
    06-03-2018 11:38:00 is ending time of Cake one at the same time Beginning time of Cake two
    if Urban BA Sialkot 5 for 5 Times the cakes were 4, if the times were 6 the cakes were 5 and soon.....
    This is what I thought

  20. #20
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Any solutions??
    Last edited by AliGW; 03-23-2018 at 12:49 PM. Reason: Unnecessary quotation removed.

  21. #21
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Use of #Min#Countif#Time Sorting Required.

    means I did not understand what you want?

  22. #22
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Quote Originally Posted by nflsales View Post
    means I did not understand what you want?
    How do i remove this - 1 ?

  23. #23
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Use of #Min#Countif#Time Sorting Required.

    Since Samba's formula matched your manually input results and since you are already summing J5:W5 in X5, perhaps you could populate C5 using: =X5
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  24. #24
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Friends, I have attached file. Would like to have following results.
    Just like Sheet 1 in which, from I column to Y column i get result how many cakes were made during Clock hours. Same like this I would like to
    get results in Sheet 4 from taking data from Sheet 2. That how many cakes were made in 1 min, 2 min , 3 min and so on.
    For example
    if one cake is made at 1:00 AM the second one is made 1:03 AM then 2nd cake time is 3 min. file is attached. Please check.
    Attached Files Attached Files

  25. #25
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    Try

    Sort Shhet2 by Names then Time

    in E4

    ==IF(C4<>C3,"",D4-D3)

    copy down

    in Sheet4

    in H5

    =COUNTIFS(Sheet2!$C:$C,'Sheet 4'!$B5,Sheet2!$E:$E,"<=" & TIME(0,0,30))

    Similar formula for other cells
    Attached Files Attached Files

  26. #26
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Sir, I have done as you instructed, but the results are not as accepted. As In Time sheet, Column D, Total cakes are shown but as I have calculated
    total time cake the total count dose not match (Column AF & AG). Plz check.
    Further more in sheet 4, I need to this result.
    If a i Put any Value in E4(For example 1, which means 1 min) the below cell against each name should show those cakes which are made within 1 min.
    secondly in Column F, if i put any value in F4 (For example 4, which means 4 min) the below cells against each name should show those cakes which took more time then 4 min.
    Plz check.
    File is attached.
    Attached Files Attached Files
    Last edited by AliGW; 03-23-2018 at 12:49 PM. Reason: Unnecessary quotation removed.

  27. #27
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    You did change these formula to allow for HOURS in AB onward: they only address the MINUTES

    =COUNTIFS(Sheet2!$C:$C,$B5,Sheet2!$E:$E,">" & TIME(0,COLUMNS($J:AA),0),Sheet2!$E:$E,"<=" & TIME(0,COLUMNS($J:AB),0))

    so change as required.

  28. #28
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    othing Change sir, I have tried.

    Further more in sheet 4, I need to this result.
    If a i Put any Value in E4(For example 1, which means 1 min) the below cell against each name should show those cakes which are made within 1 min.
    secondly in Column F, if i put any value in F4 (For example 4, which means 4 min) the below cells against each name should show those cakes which took more time then 4 min.
    Plz check.
    File is attached
    Last edited by AliGW; 03-23-2018 at 12:49 PM. Reason: Unnecessary quotation removed.

  29. #29
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    If I change formulae in AB onward the totals equal those in column C: I don't now why you added 1 in column D

    You need to show expected results for first few rows and identify the problem as the formulae are "correct" as far as I can see.

    See AB5 in attached.

    I will leave you TRY and answer you second requirement and need some expected results.
    Attached Files Attached Files

  30. #30
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,273

    Re: Use of #Min#Countif#Time Sorting Required.

    Alvi-gee - please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

  31. #31
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    I am Attaching a file. which have few issue.
    Column c shows that how many cakes have been made totally by Names mentioned in Column B. But which shows one lesser cake. For example According to Sheet "Timing Date" Rural BA Hafizabad Section4 made 24 cakes but in "Time" sheet in shows 23. why ? plz solve.
    Secondly Total cakes figure dose not match with figure in column "AE". Because formula from Column H to column AD dose not show all the cakes timing. Plz resolve this issue.
    Thanks
    Attached Files Attached Files

  32. #32
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    Re-read post #27 and change formulae in AA onward.

    Also check out formulae in H & I.
    Last edited by JohnTopley; 04-06-2018 at 10:19 AM.

  33. #33
    Registered User
    Join Date
    08-01-2017
    Location
    Pakistan
    MS-Off Ver
    2010
    Posts
    24

    Re: Use of #Min#Countif#Time Sorting Required.

    Quote Originally Posted by JohnTopley View Post
    Re-read post #27 and change formulae in AA onward.

    Also check out formulae in H & I.
    Sir, Still unable to pick the mistake, column AE and C column figure is not matching. Plz can you fill one Row and give me the same figure plz.
    would appreciate if you help .

  34. #34
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Use of #Min#Countif#Time Sorting Required.

    Look carefully at the formulae, understand what they do and then try andchange them. I particular in AA onward, look at the TIME function.

    in AA (as example)

    =COUNTIFS('Timing Date'!$C:$C,$B5,'Timing Date'!$E:$E,">" & TIME(0,COLUMNS($I:Z),0),'Timing Date'!$E:$E,"<=" & TIME(1,0,0))

    The same comment applies to columns H & I.

    You will learn more by "Having a go" than me (or anyone else) telling you the answers.
    Last edited by JohnTopley; 04-09-2018 at 03:59 AM.

+ 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. Making a CSV file
    By Shahadat65 in forum Excel General
    Replies: 4
    Last Post: 02-15-2016, 12:40 PM
  2. [SOLVED] Code for making new file in same folder as opened file exist.
    By Hydyne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 05:41 AM
  3. Making a MASTER-FILE that collects individual file information
    By InterstateRentals in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2013, 09:10 AM
  4. Replies: 1
    Last Post: 10-25-2013, 09:52 AM
  5. Making an ouput file
    By Zubair in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2005, 03:05 AM

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