+ Reply to Thread
Results 1 to 6 of 6

Concatenate Multiple Rows to Produce Different String Combos?

  1. #1
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Concatenate Multiple Rows to Produce Different String Combos?

    Hi everyone,

    I'd like to know if I can use concatenation to combine strings from 3 different rows to produce multiple phrase combinations.

    First row will be my "prefix"
    Second row will be my "base"
    Third row will be my "suffix"

    Example:
    Prefix:
    where to buy computer in the world
    what is laptop on amazon
    best desktop computer on ebay

    Any way to get all the possible combos in this order: prefix - base - suffix?

    For example...

    Where to buy computer in the world
    Where to buy computer on amazon
    Where to buy computer on ebay

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Concatenate Multiple Rows to Produce Different String Combos?

    Here!

    Try out the file
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Concatenate Multiple Rows to Produce Different String Combos?

    The file contains macro which my Excel Mac can't open
    This can't be done with concatenation formula?

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Concatenate Multiple Rows to Produce Different String Combos?

    Not very sure if that can be done using Formulas..

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Concatenate Multiple Rows to Produce Different String Combos?

    see the attached file use below formula and copy towards down
    =IF(ROW(A1)>COUNTA($A$1:$A$3)*COUNTA($B$1:$B$10)*COUNTA($C$1:$C$10),"",INDEX($A$1:$A$10,INT((ROW(A1)-1)/(COUNTA($B$1:$B$10)*COUNTA($C$1:$C$10)))+1)&" "&INDEX($B$1:$B$10,MOD(INT((ROW(A1)-1)/COUNTA($C$1:$C$10)),COUNTA($B$1:$B$10))+1)&" "&INDEX($C$1:$C$10,MOD(ROW(A1)-1,COUNTA($C$1:$C$10))+1))
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Concatenate Multiple Rows to Produce Different String Combos?

    @nflsales

    Beautiful Formula..

+ 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. Replies: 3
    Last Post: 04-01-2013, 01:44 PM
  2. [SOLVED] concatenate rows of values in a string
    By kadams99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2013, 10:23 PM
  3. [SOLVED] concatenate two columns of numbers does not produce concatenated value
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2013, 01:50 PM
  4. VBA to Delete Duplicate Rows and Concatenate a String
    By angelise01 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-20-2012, 02:36 PM
  5. Concatenate cells to produce full postal address
    By Spellbound in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-14-2009, 06:47 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