+ Reply to Thread
Results 1 to 7 of 7

Duplicate data sets and need formula to condense

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    12

    Duplicate data sets and need formula to condense

    Hey,

    I have materials that are located in 3 plants. When i pull my report it pulls each material in each plant. I need to condense my duplicated materials down to one and still show if it is available at the plants. See the attached spreadsheet and let me know if this is possible.Sample Spreadsheet.xlsx

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Duplicate data sets and need formula to condense

    =IFERROR(INDEX(B$3:B$12,MATCH(1,($A$3:$A$12=$A18)*(B$3:B$12="Y"),0)),"N")

    Array formula: Press Ctrl+Shift+Enter, not just Enter

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Duplicate data sets and need formula to condense

    1) erase the "example results" below the real data

    2) Put this formula in E3:

    =IF($A3=$A4, IF(OR(B3="y", B4="y", E4="y"), "Y", "N"), B3)

    3) Copy that formula down the data set and across through to column G, we're creating a new set of Y/N answers.

    4) Put this formula in H3, then copy it down:

    =IF(A3=A2, "delete", "keep")

    5) Highlight columns E:H, Copy them, do a PASTE SPECIAL > VALUES to remove the formulas.

    6) Copy B2:D2 onto E2:G2 to transfer the titles

    7) Delete columns B:D

    8) Highlight column E and turn on the DATA > FILTER.

    9) Filter for the value "delete"

    10) Delete all visible rows

    11) Delete column E
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Duplicate data sets and need formula to condense

    The IFERROR is not working, the second solution will not scale due to the number of materials/duplicate materials i have. Any more suggestions?

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Duplicate data sets and need formula to condense

    It won't scale? Present a complete set of data and we'll present other ideas or adjust the ones given already.

  6. #6
    Registered User
    Join Date
    06-18-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Duplicate data sets and need formula to condense

    Got the formula to work. thank you for your help.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Duplicate data sets and need formula to condense

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.

+ 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