+ Reply to Thread
Results 1 to 6 of 6

build a string from multiple fields

  1. #1
    Registered User
    Join Date
    03-11-2010
    Location
    Virgina
    MS-Off Ver
    Excel 2007
    Posts
    6

    build a string from multiple fields

    I have a blank field that I am trying to populate based off a bunch of other fields.
    I have a bunhc of fields that either have a Yes or No in them....
    I have about 200 rows to poulate.
    1. I want to read each row and if the field is YES put the field name if NO then dont put anything there.
    2. then read the next field and do the same
    3. then read the next field and do the same etc.
    4. then go to the NEXT row and do the same till the end of the file


    Example Table in Excel... I am trying to build the string to put in the SpecDesc field
    formula.jpg

    I tried this and not working

    I want the field SpecDesc to read as suc for every instance of YES in the field....an record nothing if its NO

    Result to be put in SpecDesc Field
    bat, beaver, bird etc


    =IF(Y2="yes","bat,",IF(Y2="no","",""), IF(OR(Z2="yes","beaver,",IF(Z2="no","",""), IF(OR AA2="yes","bird,",IFAA2="no","","") )))

    I then need to build this so it works on every ROW in the table...

    Thoughts?
    Last edited by jaykappy; 07-06-2020 at 04:24 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: build a string from multiple fields

    Are you still using Excel 2007?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-11-2010
    Location
    Virgina
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: build a string from multiple fields

    thanks for your reply...Office 2016

  4. #4
    Registered User
    Join Date
    03-11-2010
    Location
    Virgina
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: build a string from multiple fields

    Im trying this but no go....trying to read a couple fields to build one string value

    formula2.jpg

  5. #5
    Registered User
    Join Date
    03-11-2010
    Location
    Virgina
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: build a string from multiple fields

    I got it with this


    =CONCATENATE(IF(Y2="yes","bat,",""),IF(Z2="yes","beaver,",""))

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: build a string from multiple fields

    Please update your forum profile with your current Excel version.

+ 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. Possible to build a macro to generate a basic e-mail template with user defined fields?
    By FinanceGeek94 in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2017, 11:40 AM
  2. Build string using dynamic range of cells
    By jamendxman3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-22-2016, 06:26 AM
  3. Vlookup Substring Value and Build String Function
    By Vlad999 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2014, 07:36 AM
  4. Don't see Fields in Primary Pivot Build
    By SWMagic in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-13-2014, 04:55 PM
  5. Build a URL by Concatenating Two Fields of a Spreadsheet.
    By dustywoodworker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 09:30 AM
  6. Build String and then Insert it as Formula to Cell
    By Vladamir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2012, 09:00 AM
  7. [SOLVED] build param string for WHERE IN (....)
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2005, 12:05 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