+ Reply to Thread
Results 1 to 7 of 7

Need a formula which can put together a set of data which are in different places

  1. #1
    Registered User
    Join Date
    02-07-2023
    Location
    London
    MS-Off Ver
    Latest Version
    Posts
    14

    Need a formula which can put together a set of data which are in different places

    If A3,B3,C3 are blank put No
    If A3,B3,C3 have values then have to display them along with the the heading in A1,B1 and C1

    Have attached a sheet for reference

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,128

    Re: Need a formula which can put together a set of data which are in different places

    an example of the out put you need to show would have helped
    anyway
    you say latest version of excel - better to put the actual version as that changes over time
    so 365 is the latest
    and has TEXTJOIN

    maybe
    =IF(AND(A3="",B3="",C3=""),"",TEXTJOIN(",",,A1,A3,B1,B3,C1,C3))

    this will put header from A1 and then value in A3 , etc
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    02-07-2023
    Location
    London
    MS-Off Ver
    Latest Version
    Posts
    14

    Re: Need a formula which can put together a set of data which are in different places

    Hi Etaf,

    My bad i guess i havent described the output i need clearly
    as per my sheet it has Highlights as the heading and the data is product has strength, flexible, versatile
    so i need the output to be like this

    Highlights
    strength, flexible, versatile

    Ingredients
    this is ingredients

    Size
    this is size

    the output of the formula should be like the above example
    if you could assist me with that it'll be really great

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,128

    Re: Need a formula which can put together a set of data which are in different places

    can you show that as an example out put in the spreadsheet
    your say in A3
    product has strength, flexible, versatile
    BUT you only want the specific words - what other examples are there ???
    also when you say the out put like this - is that a new line - we can use char(10) to set a line break

    =IF(AND(A3="",B3="",C3=""),"",TEXTJOIN(CHAR(10),,A1,A3,B1,B3,C1,C3))
    which will do this
    Highlights
    strength, flexible, versatile
    Ingredients
    this is ingredients
    Size
    this is size

    otherwise a bit messy
    =IF(AND(A3="",B3="",C3=""),"",TEXTJOIN(CHAR(10),,A1,A3&CHAR(10),B1,B3&CHAR(10),C1,C3&CHAR(10)))
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Need a formula which can put together a set of data which are in different places

    In F2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 02-14-2023 at 11:08 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    02-07-2023
    Location
    London
    MS-Off Ver
    Latest Version
    Posts
    14

    Re: Need a formula which can put together a set of data which are in different places

    Hi Etaf ,

    The formula works just fine thanks to you,
    need another help too the headings such as highlights,ingredients and size i need to bold them
    can you help me out in this too?

    Thanks in advance

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,128

    Re: Need a formula which can put together a set of data which are in different places

    As far as i know this cannot be done with a function or with conditional formatting and needs VBA

    as its a new part of the question, it may be worth starting a new thread with this question - under the VBA section

    I dont provide VBA solutions on the forum, so cannot help for that question

    glad the formula word so fat for you

+ 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: 2
    Last Post: 02-14-2023, 07:36 AM
  2. Ranking the 1st places, 2nd places and 3rd places
    By pierrek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2022, 03:11 AM
  3. Adusting decimal places based on greatest number of places in a series
    By anelson87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2022, 01:05 PM
  4. [SOLVED] Formula places data in wrong table position
    By Hojocolaca in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-18-2013, 02:49 AM
  5. [SOLVED] Data Validation Query: Restrict the data input to two decimal places
    By The_Snook in forum Excel General
    Replies: 6
    Last Post: 12-01-2012, 05:42 PM
  6. Replies: 2
    Last Post: 03-30-2012, 12:34 PM
  7. custom data validation formula to limit cell value to maximum of 4 decimal places
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2009, 04:42 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