+ Reply to Thread
Results 1 to 16 of 16

To max and min comparing with two sheets:

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    To max and min comparing with two sheets:

    Hi.

    I have attached three excel sheets are Data 1,Data 2 and Required Format.

    Querry-01.

    To compare two excel sheets to return max and min number.

    DATA 1

    CUSTOMERID* DISPATCH *****DATE BATCH NO
    31 ********02/01/2016 **********11814
    31 ********02/01/2016 **********11814
    31 ********02/01/2016 **********11814
    31 ********02/01/2016 **********11814
    31 ********02/01/2016 **********11814
    31 ********02/01/2016 **********11808
    31 ********02/01/2016 **********11808
    31 ********02/01/2016 **********11808



    DATA 2

    CUSTOMER ID ****DISPATCH ********DATE BATCH NO
    42 *************08/01/2016 ********11884
    42 *************08/01/2016 ********11884
    42 *************08/01/2016 ********11884
    42 *************08/01/2016 ********11884
    35 *************08/01/2016 ********11892
    35 *************08/01/2016 ********11892
    35 *************08/01/2016 ********11892
    35 *************08/01/2016 ********11892
    35 *************08/01/2016 ********11892


    REQUIRED FORMAT:

    STARTING BATCH NO:11808

    END BATCH NO:11892

    Querry-02.

    To end of date how many records passed on single day comparing with two sheets.

    REQUIRED FORMAT:

    DATE************NO OF RECORDS

    02/01/2016*************8

    04/01/2016*************19

    Herewith attached file.Please help me.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Try

    Starting Batch B2=MIN(DATA2!C2:C36,DATA1!C2:C30)
    End Batch No B2=MAX(DATA2!C2:C36,DATA1!C2:C30)

    Put below formula for both sheet naming Data1 & Data2 column in D2=IF(COUNTIF($C$2:C2,C2)<=1,1,0) and drag down.

    Now put in sheet naming REQ FORMAT B5=SUMPRODUCT((DATA1!$B$2:$B$393='REQ FORMAT'!B$4)*(DATA1!$D$2:$D$393))+SUMPRODUCT((DATA2!$B$2:$B$59='REQ FORMAT'!B$4)*(DATA2!$D$2:$D$59)) and drag over the cells.

    Check the attachment
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    Thanks you so much sir.formulas return perfect.

    Query-1

    Return max and min number end of date comparing with two sheets.

    for Example:

    Starting BATCH NO:11897

    End Of Batch No:11898

    Querry-02.

    As requested to you without additional column D if not possible because data very long(i have use column A to Z)

    please help me.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Try

    B2=SUMPRODUCT((FREQUENCY(INDEX((DATA1!$B$1:$B$393=B4)*MATCH(DATA1!$C$1:$C$393&"",DATA1!$C$1:$C$393&"",0),0),ROW(DATA1!$C$1:$C$393))>0)*1)+SUMPRODUCT((FREQUENCY(INDEX((DATA2!$B$1:$B$393=B4)*MATCH(DATA2!$C$1:$C$393&"",DATA2!$C$1:$C$393&"",0),0),ROW(DATA2!$C$1:$C$393))>0)*1)-2

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    shukla.ankur281190

    thank you so much as consider my query.

    Value return 0.please check with the same.file attached.

    B2={MIN(IF(DATA1!$B$2:$B$65536=MAX(DATA1!$B$2:$B$65536),DATA1!$C$2:$C$65536+0))} (if find any blanks column C did not work.without blanks column C value

    return perfect)

    B3={MAX(IF(DATA1!$B$2:$B$65536=MAX(DATA1!$B$2:$B$65536),DATA1!$C$2:$C$65536+0))}

    B5={SUM((FREQUENCY(IF(DATA1!$B:$B='JJ SL.NO'!B$4,DATA1!$C:$C+0),IF(DATA1!$B:$B='JJ SL.NO'!B$4,DATA1!$C:$C+0))>0)+0)}

    -(posted by nfsale)

    the above mentioned three formula are working fine with comparing single sheets.(DATA1)

    the same formula i have try to apply two sheets value return error.

    i need to compare two sheets based on results.

    please help me.
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    @ silambarasan.J

    First thing silambarasan.J sheet naming 'JJ SL.NO' is not in attached sheet. Please clear the output result properly so that your problem can be solve.

    Lack of information we will unable to give you solution.

    I have given you solution as per your description.

    Hope you will understand.

  7. #7
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    SORRY SIR wrong attachment.actual file attached please help me.

    B5={SUM((FREQUENCY(IF(DATA1!$B:$B='REQUIRED FORMAT'!B$4,DATA1!$C:$C+0),IF(DATA1!$B:$B='REQUIRED FORMAT'!B$4,DATA1!$C:$C+0))>0)+0)}
    Attached Files Attached Files

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Try,

    B5=SUM((FREQUENCY(IF(DATA1!$B:$B='REQUIRED FORMAT'!B$4,DATA1!$C:$C+0),IF(DATA1!$B:$B='REQUIRED FORMAT'!B$4,DATA1!$C:$C+0))>0)+0)+SUM((FREQUENCY(IF(DATA2!$B:$B='REQUIRED FORMAT'!B$4,DATA2!$C:$C+0),IF(DATA2!$B:$B='REQUIRED FORMAT'!B$4,DATA2!$C:$C+0))>0)+0) with CTRL+SHIFT+ENTER

  9. #9
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    thanks you so much sir value return is perfect.

    i required formulas column B2 AND B3 compare two sheets.

    please help me.
    Attached Files Attached Files

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Try

    B2=MIN(IF(DATA2!$B$2:$B$400=MAX(DATA2!$B$2:$B$400),DATA2!$C$2:$C$400+0),IF(DATA1!$B$2:$B$400=MAX(DATA1!$B$2:$B$400),DATA1!$C$2:$C$400+0))
    B3=MAX(IF(DATA2!$B$2:$B$400=MAX(DATA2!$B$2:$B$400),DATA2!$C$2:$C$400+0),IF(DATA1!$B$2:$B$400=MAX(DATA1!$B$2:$B$400),DATA1!$C$2:$C$400+0))

    With CTRL+SHIFT+ENETR.

  11. #11
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    thanks you so much for your reply to consider my querry.


    B2=MIN(IF(DATA2!$B$2:$B$400=MAX(DATA2!$B$2:$B$400),DATA2!$C$2:$C$400+0),IF(DATA1!$B$2:$B$400=MAX(DATA1!$B$2:$B$400),DATA1!$C$2:$C$400+0))

    value return 0.(actual data-11897)

    B3=MAX(IF(DATA2!$B$2:$B$400=MAX(DATA2!$B$2:$B$400),DATA2!$C$2:$C$400+0),IF(DATA1!$B$2:$B$400=MAX(DATA1!$B$2:$B$400),DATA1!$C$2:$C$400+0))


    value return 11897.(actual data-11898)

    please check with attachment.
    Attached Files Attached Files

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    OK

    Try

    B2=MIN(IF(DATA1!C2:C449>0,IF(DATA1!B2:B449=MAX(DATA1!B2:B449),DATA1!C2:C449)),IF(DATA2!C2:C449>0,IF(DATA2!B2:B449=MAX(DATA2!B2:B449),DATA2!C2:C449)))
    B3=MAX(IF(DATA1!C3:C450>0,IF(DATA1!B3:B450=MAX(DATA1!B3:B450),DATA1!C3:C450)),IF(DATA2!C3:C450>0,IF(DATA2!B3:B450=MAX(DATA2!B3:B450),DATA2!C3:C450)))

    With CTRL+SHIFT+ENTER

  13. #13
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    Great work value return is perfect thank you so much as consider my query continues.

    THANKS A LOT.

  14. #14
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Thank for Feedback please add rep and mark as solved

  15. #15
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: To max and min comparing with two sheets:

    I have try add reputation but some message to me

    "you must spread some reputation around before giving it to shukla.ankur281190 ".

    what can i do.please your suggestion because do not add reputation someone helped.

  16. #16
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: To max and min comparing with two sheets:

    Its okay Thanks for try

+ 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. Comparing two sheets
    By Kiirito in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2014, 08:54 AM
  2. Excel 2007 : Comparing two sheets
    By PONJO in forum Excel General
    Replies: 2
    Last Post: 06-04-2012, 03:17 AM
  3. Comparing sheets
    By ziemekp in forum Excel General
    Replies: 6
    Last Post: 05-28-2012, 05:29 AM
  4. Comparing 2 Sheets
    By Burrelly in forum Excel General
    Replies: 1
    Last Post: 01-21-2011, 04:48 AM
  5. comparing within 2 sheets
    By p_dhoke in forum Excel General
    Replies: 2
    Last Post: 07-20-2007, 04:28 AM
  6. [SOLVED] comparing sheets
    By Newbie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2006, 05:20 AM
  7. [SOLVED] Comparing Two Sheets
    By Pete Petersen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2005, 04:06 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