+ Reply to Thread
Results 1 to 5 of 5

Need help with multiple values

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Need help with multiple values

    I am new to this forum. I need help with either lookups or other more appropriate functions that may help me in handling multiple values on a couple of worksheets. I am enclosing a sample file of what I would like to accomplish. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with multiple values

    You can copy Sheet2 to Sheet1 as is, then use the Remove Duplicates feature from the Data menu to Remove the duplicates based on the 3 columns of interest.

    Then after removing duplicates you can delete the weight and quantity columns and re-arrange the left over 3 columns as desired.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-24-2011
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Need help with multiple values

    That is not an option since we have situations where we have multiple work orders and purchase orders for the same part number. Plus I would like those cells in Sheet1 protected.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with multiple values

    Quote Originally Posted by cfmartinez View Post
    That is not an option since we have situations where we have multiple work orders and purchase orders for the same part number.
    FYI, If you do the Remove Dupes right, it will keep all unique POs and/or Work orders for each part.. it won't remove items that are unique.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with multiple values

    Okay with formulas, see attached.

    Assuming Sheet2, A1 starts your original data headers, then in F2:

    =IF(COUNTIFS(A$2:A2,A2,D$2:D2,D2,E$2:E2,E2)=1,COUNT(F$1:F1)+1,"")

    copied down.

    In G2:

    =MAX(F:F)

    Then in Sheet1, A2:

    =IF(ROWS($A$1:$A1)>Sheet2!$G$2,"",INDEX(Sheet2!A:A,MATCH(ROWS($A$1:$A1),Sheet2!$F:$F)))

    copied down and similarly in C2:

    =IF(ROWS($A$1:$A1)>Sheet2!$G$2,"",INDEX(Sheet2!E:E,MATCH(ROWS($A$1:$A1),Sheet2!$F:$F)))

    and in E2:

    =IF(ROWS($A$1:$A1)>Sheet2!$G$2,"",INDEX(Sheet2!D:D,MATCH(ROWS($A$1:$A1),Sheet2!$F:$F)))

    each copied down as far as you want.
    Attached Files Attached Files

+ 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