+ Reply to Thread
Results 1 to 42 of 42

Index vehicle, driver and vehicle wise revenue report.

  1. #1
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Index vehicle, driver and vehicle wise revenue report.

    HI Sir,
    I have full month customer, vehicle and driver wise revenue report, I need to index data from DATA ENTRY sheet to REPORT(ans) sheet. The correct sample data entered in "report(ans)" sheet by manually in Ash colour cells, match with some conditions.

    https://wetransfer.com/downloads/128...4043928/07821a


    Thanks & Regards
    Dackson Jose

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Index vehicle, driver and vehicle wise revenue report.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    Please post file to this forum as many members will not visit file-hosting sites:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and customer wise revenue report.

    Index vehicle, driver and vehicle wise revenue report.

    HI Sir,
    I have full month customer, vehicle and driver wise revenue report, I need to index data from DATA ENTRY sheet to REPORT(ans) sheet. The correct sample data entered in "report(ans)" sheet by manually in Ash colour cells, match with some conditions.




    Thanks & Regards
    Dackson Jose

    https://www.excelforum.com/attachmen...1&d=1494758578
    Attached Files Attached Files

  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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    in C26

    =IFERROR(INDEX('DATA ENTRY'!$B$4:$B$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=9)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:B4)),0),"")

    in E26

    =IFERROR(INDEX('DATA ENTRY'!$AK$4:$AK$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=9)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),0),"")

    Both ...

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    You could have the following in A6

    ='DATA ENTRY'!$B4

    Copy down

    And formula where 0 might be returned could be simplified by removing test for 0 and CUSTOME formatting cells as 0;;;@

    e.g D6

    from

    =IF(INDEX('DATA ENTRY'!$4:$21,ROWS(D$6:D6),MATCH('REPORT(ans)'!D$5&'REPORT(ans)'!$D$3,'DATA ENTRY'!$A$3:$DV$3&'DATA ENTRY'!$A$2:$DV$2,0))=0,"",INDEX('DATA ENTRY'!$4:$21,ROWS(D$6:D6),MATCH('REPORT(ans)'!D$5&'REPORT(ans)'!$D$3,'DATA ENTRY'!$A$3:$DV$3&'DATA ENTRY'!$A$2:$DV$2,0)))

    to

    =INDEX('DATA ENTRY'!$4:$21,ROWS(D$6:D6),MATCH('REPORT(ans)'!D$5&'REPORT(ans)'!$D$3,'DATA ENTRY'!$A$3:$DV$3&'DATA ENTRY'!$A$2:$DV$2,0)))

    Looking at the data it is only REVENUE columns which are blank.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    HI JohnTopley,
    THANK YOU FOR YOUR VALUABLE TIME....
    I think breakdown veh listing you missed in 1st Section "B", I am expecting that 3rd 4th section will complete soon...

    Regards,
    Dackson

  7. #7
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    I think you should able to work that out yourself.

    Hint: Look at formula for C26

  8. #8
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Ya,
    Yes I will work accordingly and update to you soon... But with that someone can try for me...........

    REgards
    Dackson.

  9. #9
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    Alright: ...simple change "on Job" to "Break Down" in formula in C26: not that difficult!!!

  10. #10
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    No Sir,
    Not break down listing
    I am worried about Section 3, Section 4
    Regards,
    DAckson.

  11. #11
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    3rd Section

    Q6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Driver")*('DATA ENTRY'!$A$2:$DV$2=$P6)*(COLUMN($A$2:$DV$2))))=$Q$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),1),($P6-1)*4+1),"")

    R6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Driver")*('DATA ENTRY'!$A$2:$DV$2=$P6)*(COLUMN($A$2:$DV$2))))=$Q$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),1),($P6-1)*4+2),"")

    S6

    =IFERROR(INDEX('DATA ENTRY'!$B$4:$B$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Driver")*('DATA ENTRY'!$A$2:$DV$2=$P6)*(COLUMN($A$2:$DV$2))))=$Q$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),1)),"")

    T6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Driver")*('DATA ENTRY'!$A$2:$DV$2=$P6)*(COLUMN($A$2:$DV$2))))=$Q$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),1),($P6-1)*4+4),"")

    All array entered

  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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    4th Section

    NOTE: need to add formula in V6 to get list of number of parties per day: NOT yet done

    W6

    =IFERROR(INDEX('DATA ENTRY'!$B$4:$B$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="PARTY")*('DATA ENTRY'!$A$2:$DV$2=$V6)*(COLUMN($A$2:$DV$2))))=$W$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),(ROWS($1:1)-COUNTIF($V$6:V6,"<" & $V6)))),"")

    X6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="PARTY")*('DATA ENTRY'!$A$2:$DV$2=$V6)*(COLUMN($A$2:$DV$2))))=$W$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),(ROWS($1:1)-COUNTIF($V$6:V6,"<" & $V6))),($V6-1)*4+2),"")

    Y6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="PARTY")*('DATA ENTRY'!$A$2:$DV$2=$V6)*(COLUMN($A$2:$DV$2))))=$W$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),(ROWS($1:1)-COUNTIF($V$6:V6,"<" & $V6))),($V6-1)*4+3),"")

    Z6

    =IFERROR(INDEX('DATA ENTRY'!$C$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="PARTY")*('DATA ENTRY'!$A$2:$DV$2=$V6)*(COLUMN($A$2:$DV$2))))=$W$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),(ROWS($1:1)-COUNTIF($V$6:V6,"<" & $V6))),($V6-1)*4+4),"")
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Yes............. You are right the forth section increment number not working balance every thing fine....
    Regards..
    Dackson

  14. #14
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    It is not working because there is no formula: tricky one if days have 0 entries.

  15. #15
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    DON'T WORRY BUT JUST THINK ABOUT THAT i AM SURE THAT YOU WILL GET DYNAMIC FORMULA WITH TOTAL COUNTING OF VEHS AND AMOUNT..
    REGARDS
    DACKSON

  16. #16
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    Used helper columns:

    In AI6

    =IFERROR(INDEX('DATA ENTRY'!$C$24:$DV$24,SMALL(IF('DATA ENTRY'!$C$24:$DV$24<>0,COLUMN('DATA ENTRY'!$C$24:$DV$24)-COLUMN($C$24)+1,""),ROWS($1:1))),"")

    in Aj6

    =IFERROR(INDEX('DATA ENTRY'!$C$2:$DV$2,SMALL(IF('DATA ENTRY'!$C$24:$DV$24<>0,COLUMN('DATA ENTRY'!$C$24:$DV$24)-COLUMN($C$24)+1,""),ROWS($1:1))),"")

    in AK7

    =IF($AI7="","",SUM($AI$5:AI6)+1)

    AK6 must be 0

    in AL6

    =IF(ROWS($1:1)>$AK$36+$AI$36-1,"",INDEX($AJ$6:$AJ$100,MATCH(ROWS($1:1),$AK$6:$AK$40,1)))

    in V6

    =AL6

    NOTE: Row 24 in "DATA ENTRY" is used in the helper columns: DO NOT DELETE.
    Attached Files Attached Files
    Last edited by JohnTopley; 05-14-2017 at 03:30 PM.

  17. #17
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index vehicle, driver and vehicle wise revenue report.

    Try this
    For section 3. ARRAY formula in P6 and drag across for section 3.

    =INDEX('DATA ENTRY'!$B$2:$DV$21,IF(P$5="DATE",1,SMALL(IF(INDEX('DATA ENTRY'!$B$2:$DV$21,,SMALL(IF('DATA ENTRY'!$B$2:$DV$21='REPORT(ans)'!$Q$3,COLUMN('DATA ENTRY'!$B$2:$DV$21),""),ROWS('REPORT(ans)'!$P$6:$P6))-COLUMN($B$2)+1)='REPORT(ans)'!$Q$3,ROW('DATA ENTRY'!$B$2:$DV$21),""),1)-ROW($B$2)+1),IF(P$5="VEH NO",1,SMALL(IF('DATA ENTRY'!$B$2:$DV$21='REPORT(ans)'!$Q$3,COLUMN('DATA ENTRY'!$B$2:$DV$21),""),ROWS('REPORT(ans)'!$P$6:$P6))-IF(P$5="DATE",1,MATCH('REPORT(ans)'!$P$3,'DATA ENTRY'!$B$3:$F$3,0)-MATCH('REPORT(ans)'!P$5,'DATA ENTRY'!$B$3:$F$3,0)+1)))

  18. #18
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    kvsrinivasamurthy & JohnTopley,
    Thanks your valuable time............
    For section 3 - Example- If a driver make 2 trips (multi trip) in a same day for different party & different veh, then what formula can apply in increment no column P (Date). Before P6 to P36 continue 1 to 31 day entered for this case same day one or more date will come mean dynamic range... can you try solution for that?.
    Regards,
    Dackson.

  19. #19
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    The solution in Section 3 will be the same as that for Section 4.

    Perhaps someone can devise an answer which does not require the helper columns used in Section 4.


    Minor changes to Section 4:

    W6

    =IF(V6="","",IFERROR(INDEX('DATA ENTRY'!$B$4:$B$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="PARTY")*('DATA ENTRY'!$A$2:$DV$2=$V6)*(COLUMN($A$2:$DV$2))))=$W$3,ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),(ROWS($1:1)-COUNTIF($V$6:V6,"<" & $V6)))),""))

    Array entered (Ctrl+Shift+Enter)

    AL6

    =IF(AI6="","",INDEX($AJ$6:$AJ$100,MATCH(ROWS($1:1),$AK$6:$AK$40,1)))
    Last edited by JohnTopley; 05-15-2017 at 03:47 AM.

  20. #20
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Hi Sir,
    in E26 (for on job drivers)

    =IFERROR(INDEX('DATA ENTRY'!$AK$4:$AK$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=9)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),0),"")
    If Instead of "9"(day) apply $D$3 cell then some day not working properly due to for picking the Employees selected AK4:AK21, that same employee row in other days it will work proper other wise the employee gone other row then that days will not work properly.
    Please advice for that...
    Regards,
    Dackson.

  21. #21
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    Change "9" to reference a cell with required data

  22. #22
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    If day apply $D$3 cell then some day not working properly due to for picking the Employees selected AK4:AK21, that same employee row in other days it will work proper other wise the employee gone other row then that days will not work properly.
    for example please check in 6 day A025 not in the on job But Showing in On job

    Please advice for that...
    Regards,
    Dackson.

  23. #23
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    in E26

    =IFERROR(INDEX('DATA ENTRY'!$A$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=$D$3)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),($B$25-1)*4+1),"")


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  24. #24
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    please check above formula not working my pc.........

  25. #25
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    what is B25

  26. #26
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    I changed formula to use D3 (rather B25 in my testing) for Day number but forget to change last part

    =IFERROR(INDEX('DATA ENTRY'!$A$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=$D$3)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),($D$3-1)*4+1),"")

  27. #27
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    sorry sir its not working last increment column no which u mention not working in the first day (1).
    I am try this way ($D$3*4)+1), working fine now.
    Thank you very much your time ....
    Now one by one I am going through all your formula. If any help required then Please help that time for any alteration required.
    Regards
    Dackson...

  28. #28
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    HI JohnTopley SIR,

    IN H26 I NEED "NO DRIVER" AND "NO WORK" TOGETHER DRIVER LIST LIKE ON JOB DRIVER LIST. FOR ON JOB ONLY ONE CRITERIA, BUT IN THIS CASE TWO CRITERIA LIST NEED TO DISPLAYING DOWN IN H26 ANY OPTION FOR THAT?

    =IFERROR(INDEX('DATA ENTRY'!$A$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=$D$3)*(COLUMN($A$2:$DV$2))))="NO DRIVER",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),($D$3*4)+1),"") + ONE MORE "NO WORK" DRIVERS LIST.

    REGARDS,
    DACKSON.

  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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    Correction :

    E26

    =IFERROR(INDEX('DATA ENTRY'!$A$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=$D$3)*(COLUMN($A$2:$DV$2))))="ON JOB",ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:D4)),($D$3*4+1)),"")

    H26 (assume you want driver ?)

    =IFERROR(INDEX('DATA ENTRY'!$A$4:$DV$21,SMALL(IF( INDEX('DATA ENTRY'!$A$4:$DV$21,,SUMPRODUCT(('DATA ENTRY'!$A$3:$DV$3="Veh Status")*('DATA ENTRY'!$A$2:$DV$2=$D$3)*(COLUMN($A$2:$DV$2))))={"NO DRIVER","NO WORK"},ROW('DATA ENTRY'!$B$4:$B$21)-ROW($B$4)+1,""),ROWS($B$4:B4)),($D$3*4+1)),"")

    both entered with Ctrl+Shift+Enter

  30. #30
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Its working brooo............
    Thanks very much.......
    Regards,
    dackson

  31. #31
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  32. #32
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Hi, Mr. John

    How are you dear. For increment no of section 3 properly working with below mentioned formula but while selecting one date if employee did 2 trips then first trip same details displaying for the second trip also. can you rearrange this formula for me for getting correct answer. Thanks for your valuable time.

    =INDEX('DATA ENTRY'!$B$2:$DV$21,IF(P$5="DATE",1,SMALL(IF(INDEX('DATA ENTRY'!$B$2:$DV$21,,SMALL(IF('DATA ENTRY'!$B$2:$DV$21='REPORT(ans)'!$Q$3,COLUMN('DATA ENTRY'!$B$2:$DV$21),""),ROWS('REPORT(ans)'!$P$6:$P6))-COLUMN($B$2)+1)='REPORT(ans)'!$Q$3,ROW('DATA ENTRY'!$B$2:$DV$21),""),1)-ROW($B$2)+1),IF(P$5="VEH NO",1,SMALL(IF('DATA ENTRY'!$B$2:$DV$21='REPORT(ans)'!$Q$3,COLUMN('DATA ENTRY'!$B$2:$DV$21),""),ROWS('REPORT(ans)'!$P$6:$P6))-IF(P$5="DATE",1,MATCH('REPORT(ans)'!$P$3,'DATA ENTRY'!$B$3:$F$3,0)-MATCH('REPORT(ans)'!P$5,'DATA ENTRY'!$B$3:$F$3,0)+1)))

  33. #33
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    If you want to cater for multiple events e.g Driver on a given date, then you will need to use the same approach of using helper columns as in Section 4.

  34. #34
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Dear John,
    Can you provide increment no in a single cell with matching few conditions?
    $Q$4 define for month selection example “MAY”
    From P6 cell continue in down.
    # Count $Q$3 selected driver total qty from all data range $C$4:$DV$21 + total non trip days = that is the maximum count of increment no range.
    # Find the month end days (EOMONTH function)
    # If the $Q$3 selected driver in single trip in day 1 then increment no need P6 cell 1 P7 cell will be 2. Suppose If the $Q$3 selected driver in multiple trips (qty 3) (Ex: One trip, Two, Three trips) in day 1 then increment no need P6 cell no 1, P7 cell no 1, P8 cell no 1 and P9 will start 2. If the $Q$3 selected driver qty 0 in day 1 then P6 cell no 1, P7 will start 2. Because all day no need to display if the driver doesn’t have trip.
    It is very helpful for me Can you gone through this and provide me a good solution.

    Day $Q$3 Qty Increment no need in single column
    1 2 1
    2 1 1
    3 1 2
    4 1 3
    5 0 4
    6 1 5
    7 1 6
    8 1 7
    9 1 8
    10 2 9
    11 1 10
    12 0 10
    13 1 11
    14 1 12
    15 1 13
    16 1 14
    17 1 15
    18 1 16
    19 1 17
    20 3 18
    21 1 19
    22 0 20
    23 0 20
    24 0 20
    25 1 21
    26 1 22
    27 2 23
    28 1 24
    29 2 25
    30 2 26
    31 2 27
    27
    28
    29
    29
    30
    30
    31
    31
    Regards,
    Dackson.

  35. #35
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    sorry tab not worked while copying from word file please treat last 8 digits increment no only

  36. #36
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    The attached has helper tables for Sections $ and 3: formulae for section 4 inserted.

    You need to copy to Section 3 and change the ranges accordingly.
    Attached Files Attached Files

  37. #37
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Is it possible with out helper column in p?

  38. #38
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    I don't know how this can be done without helper columns but maybe a "guru" will step in with a solution.

  39. #39
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Hi JohnTopley,

    Thanks for your support.. Please help for solve this.
    DAckson

  40. #40
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    I don't know of a solution which does not use helper columns (as previously provided).

  41. #41
    Registered User
    Join Date
    10-22-2014
    Location
    Dubai
    MS-Off Ver
    2010
    Posts
    68

    Re: Index vehicle, driver and vehicle wise revenue report.

    Ok John, Is it possible can you suggest (transfer) me some can solve this problem. Please help...

    Dackson

  42. #42
    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,202

    Re: Index vehicle, driver and vehicle wise revenue report.

    I gave you the solution in the last file I posted.

    Now "out of office" for the rest of today.

+ 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. Replies: 7
    Last Post: 11-18-2015, 02:33 AM
  2. Vehicle availability report
    By soglo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2015, 04:42 PM
  3. Replies: 3
    Last Post: 11-24-2013, 09:54 PM
  4. Replies: 2
    Last Post: 01-30-2013, 12:06 PM
  5. Arrangement of vehicle in form of report
    By tanmoybanerjee in forum Excel General
    Replies: 5
    Last Post: 01-15-2013, 04:35 AM
  6. Creating a report to show Vehicle Tax Due.
    By james118 in forum Excel General
    Replies: 4
    Last Post: 04-02-2012, 03:57 PM
  7. Vehicle Age
    By kingcal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2008, 06:17 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