+ Reply to Thread
Results 1 to 4 of 4

Concatenate a row while ignoring "N/A" errors

  1. #1
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Concatenate a row while ignoring "N/A" errors

    Hello everyone,

    I'm having an issue where I can't seem to find a correct way of writing a formula to concatenate the values from a whole row without ignoring the "N.A" errors from the respective row.

    For example I have 3 rows with "N/A" errors and one with correct input, I want the concatenated value to show only the correct input.

    While on another example I may have two rows with "N/A" erros and two with correct input, I want that to showcase "Input1,Input2"

    Do you think it's possible ?

    Attached you have the example

    Best regards,
    Razvan
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Concatenate a row while ignoring "N/A" errors

    You can use this formula in cell F2:

    =SUBSTITUTE(IF(ISNA(A2),"",A2&".")&IF(ISNA(B2),"",B2&".")&IF(ISNA(C2),"",C2&".")&IF(ISNA(D2),"",D2&".")&IF(ISNA(E2),"",E2&".")&".","..","")

    then copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-02-2019
    Location
    Romania
    MS-Off Ver
    Latest
    Posts
    24

    Re: Concatenate a row while ignoring "N/A" errors

    Hey Pete !

    That's amazing, I guess I can replace the "." with "," so that I can get something like this : 14550CC4-0A07-466C-9014-309ED2E080F8,9AFD99E4-4E85-4A8E-826A-AEFC7E0F29E8,DD6A5C69-9A99-4A60-BF3D-E245C4EB6420 ( I tested it out and it works great ! )

    Thank a bunch,
    Razvan

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Concatenate a row while ignoring "N/A" errors

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] Ignoring Errors Using "Min" Function
    By quibilty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-23-2018, 04:32 PM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. Master Summary sheet to "remember" formulae and not do "REF!" errors? (EXCEL 2003)
    By elizabethchilver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 07:08 PM
  4. [SOLVED] "ByRef:mismatch" and "Constant Expression Required" Errors
    By Mishil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2015, 06:47 PM
  5. [SOLVED] Find "__"x"__" regardless of digits. The anti-concatenate....
    By esmithqg in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-02-2013, 10:42 PM
  6. Replies: 4
    Last Post: 10-29-2009, 12:08 PM
  7. Replies: 0
    Last Post: 07-17-2006, 09:45 AM

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