+ Reply to Thread
Results 1 to 5 of 5

Look up problem

Hybrid View

Perch Look up problem 07-24-2009, 08:55 AM
DonkeyOte Re: Look up problem 07-24-2009, 09:06 AM
Perch Re: Look up problem 07-24-2009, 09:45 AM
DonkeyOte Re: Look up problem 07-24-2009, 09:58 AM
Perch Re: Look up problem 07-24-2009, 10:02 AM
  1. #1
    Registered User
    Join Date
    03-18-2009
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    53

    Look up problem

    hello

    got a bit of a problem with some look up data I don't know how to solve . Basically I have rows of data that repeats every now and again and codes next to them
    What I need to do is have same row of data ( without it repeating ) and relevant codes next to these across the page
    Tried doing Pivot table and failed

    Example and proposed format enclosed

    please can anyone help ?

    thank you
    Attached Files Attached Files
    Last edited by Perch; 07-24-2009 at 10:05 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Look up problem

    one way - using your sample file - and setup to avoid Arrays

    D1: =SUMPRODUCT(1/COUNTIF($A$2:$A$100,$A$2:$A$100&""))
    gives count of unique Sku's

    C2: =COUNTIF($A:$A,$D2)
    copied down as far as desired
    gives count of Package Codes per Sku

    D2: =IF(ROWS(D$2:D2)>$D$1,"",IF(ROWS(D$2:D2)=1,$A2,INDEX($A:$A,MATCH($D1,$A:$A,0)+COUNTIF($A:$A,$D1)+1)))
    copied down as far as desired (ie inline with C)

    E2: =IF(OR($D2="",COLUMNS($E2:E2)>$C2),"",INDEX($B:$B,MATCH($D2,$A:$A,0)+(COLUMNS($E2:E2)-1)))
    copied both down and across for as many rows & columns as required

    (the above per your file assumes that the data is grouped by Sku)

  3. #3
    Registered User
    Join Date
    03-18-2009
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Look up problem

    Donkey OTE

    many thanks for quick reply - tried putting in formula but must be doing something wrong - list across the page should stop at red field ( enclosed )

    am I not entering correctly ?

    thanks
    pete
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Look up problem

    Pete, see attached:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-18-2009
    Location
    Solihull
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Look up problem

    thats marvellous ! thanks very much

    rgds
    pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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