+ Reply to Thread
Results 1 to 8 of 8

Filter and join values into one cell

  1. #1
    Registered User
    Join Date
    12-02-2022
    Location
    Slovakia
    MS-Off Ver
    Latest
    Posts
    2

    Filter and join values into one cell

    I would like to filter and combine returned cells into one cell in Excel.

    Products sheet:

    Screenshot 2022-12-03 at 00.13.41.png


    I would like to have an Export sheet, where conditions:
    1. Brand == Apple
    2. Stock > 0
    3. Product Name = [Product Name + " " + Color]

    So result should looke like this:

    Screenshot 2022-12-03 at 00.14.44.png

    I tried several things, this was the closest to what I want to achieve:

    Please Login or Register  to view this content.
    ...but I can't combine product name and color into one cell.

    Any help is appreciated.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Filter and join values into one cell

    is that what you want?

    with Power Query

    SKU Product Name Brand Stock
    CellPI iPhone 14 Red Apple
    1
    CellP3 iPhone 12 Gold Apple
    1
    CellP5 iPhone 16 Green Apple
    0


    Please Login or Register  to view this content.
    Last edited by sandy666; 12-02-2022 at 08:17 PM.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Filter and join values into one cell

    With a formula:

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

  4. #4
    Registered User
    Join Date
    12-02-2022
    Location
    Slovakia
    MS-Off Ver
    Latest
    Posts
    2

    Re: Filter and join values into one cell

    Thank you very much. I would like to have compatibility with Google Sheets, but HSTACK is not available in that. Can we replace this function with something else? Maybe CHOOSE function?

    I tried:
    Please Login or Register  to view this content.
    , but I get #ERROR.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Filter and join values into one cell

    Why did you not mention GoogleSheets in your FIRST post?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Filter and join values into one cell

    =FILTER(CHOOSE({1,2},Products!B2:B6&" "&Products!C2:C6,Products!E2:E6),Products!E2:E6*(Products!D2:D6="Apple"))

    works for me (in Excel).

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Filter and join values into one cell

    google sheet? I wasted my time

  8. #8
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,155

    Re: Filter and join values into one cell

    For "Google Sheets", use this;

    Please Login or Register  to view this content.

    Or;

    Please Login or Register  to view this content.
    Last edited by Haluk; 12-03-2022 at 04:04 PM.

+ 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. [SOLVED] Text Join Same Value with Multiple Values, Same Cell, Separated by Delimiters.
    By Toddlock in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-30-2022, 12:53 AM
  2. Replies: 2
    Last Post: 10-08-2022, 11:20 AM
  3. [SOLVED] Group by using filter array and then join columnn and rows
    By hansolu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-27-2021, 04:55 AM
  4. Replies: 2
    Last Post: 11-30-2019, 11:19 AM
  5. How to join values when same condition?
    By ginkgo56 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2013, 06:58 PM
  6. [SOLVED] Join multiple Values from a column in the same Cell
    By Iceman1988 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2013, 08:34 AM
  7. join columns, keep both values
    By FourPenny in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-30-2005, 08:36 PM

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