+ Reply to Thread
Results 1 to 6 of 6

Index return row to column without duplication

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

    Index return row to column without duplication

    Good Morning Sir,

    I need your help.

    Index return respective values row and column wise without duplication.

    file attached.Please help me.

    RAW DATA;

    CODE---BIIL NO---VALUE---DATE
    302356---0239---245980---41779
    300004---0602---61375----41779
    300028---4-15---256977---41779
    302075---0289---3043-----41779
    302075---0288---11497----41779
    300001---1828---72303----41779
    300001---1492---9082-----41779
    300001---1423---70756----41779
    302289---0789---245980---41790
    300001---1963---66796----41790
    300001---2169---35593----41790
    300001---2270---24100----41790
    300001---2326---28325----41790
    300001---2502---51738----41790
    300001---2699---21423----41790
    300001---2663---26778----41790
    300001---2963---2475-----41790
    300004---0749---30805----41790
    300004---0752---24840----41790
    300004---0667---15688----41790
    300004---0645---1480-----41790
    300004---0813---5652-----41790
    300028---4-15---368317---41790


    REQUIRED FORMAT;

    DATE ---------TOTAL BILL--- CODE ---------NO OF BILL--- SUM OF VALUE

    20/05/2014--- -----8 ------300001------ ------3----- ------152142
    -----------------300004------------1------ -----61375
    -----------------300028------------1------ -----256977
    -----------------302075------------2------------14540
    ------------------302356-----------1------- -----245980
    31/05/2014-------15--------300001-----------8-------------257232
    ------------------300004-----------5-------------78466.78
    ------------------300028-----------1-------------368317
    ------------------302289-----------1-------------245980
    Attached Files Attached Files

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

    Re: Index return row to column without duplication

    please help me someone.if possible.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Index return row to column without duplication

    You can achieve this with the help of a Pivot Table.
    Refer to the attached for details.

    Book1.xlsx
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: Index return row to column without duplication

    Mr.Sktneer sir.

    thanks you so much for your help.doesn't possible for apply any formulas.

  5. #5
    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,999

    Re: Index return row to column without duplication

    SKtneer Suggested an easy way which is brilliant. Thru Formula it will little messy.

    Try

    Create Two helper column E & I

    E2=A2&D2 and drag down.

    I4=IFERROR(INDEX($E$2:$E$614,MATCH(0,INDEX(COUNTIF($I$3:I3,$E$2:$E$614),),0)),"") drag down.

    G4=IFERROR(IF(INDEX($D$2:$D$614,MATCH(I4,$E$2:$E$614,0))=IFERROR(INDEX($D$2:$D$614,MATCH(I3,$E$2:$E$614,0)),""),"",INDEX($D$2:$D$614,MATCH(I4,$E$2:$E$614,0))),"")

    H4=IF(G4="","",COUNTIF($D$2:$D$614,$G4))

    J4=IFERROR(LEFT(I4,6)+0,"")

    K4=IF(J4="","",COUNTIFS($A$2:$A$614,J4,$D$2:$D$614,IFERROR(INDEX($D$2:$D$614,MATCH(I4,$E$2:$E$614,0)),"")))

    L4=IF(J4="","",SUMIFS($C$2:$C$614,$A$2:$A$614,J4,$D$2:$D$614,IFERROR(INDEX($D$2:$D$614,MATCH(I4,$E$2:$E$614,0)),"")))

    Check the attached file.
    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)

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

    Re: Index return row to column without duplication

    shukla.ankur281190.

    Thank you so much for your help and advice. i have followup your suggestion.To learn something new for your formulas.

+ 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. Tie Breaking a Index/Match Duplication
    By fearonc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2015, 04:41 PM
  2. Return Row Index and Column Index of a Cell in a Range
    By exceere in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-06-2015, 04:54 AM
  3. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  4. [SOLVED] Combo Box Index Number Problems: refresh & duplication
    By bartk in forum Excel General
    Replies: 1
    Last Post: 02-07-2013, 07:05 PM
  5. [SOLVED] return without duplication, data from several guides
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2013, 08:02 PM
  6. Return column index number after entering two column references
    By 4am in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2010, 03:33 PM
  7. [SOLVED] Index Row and return data in a Single Column:No return
    By Domenic in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04: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