+ Reply to Thread
Results 1 to 4 of 4

concatenate IF

  1. #1
    Registered User
    Join Date
    08-20-2021
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    concatenate IF

    Hello

    I have done a formula and I do have two small problem.

    Is it possible to shorten the formula?
    =CONCATENATE(IF(B4="x";$B$3;"");"/" &IF(C4="x";$C$3;"");"/"& IF(D4="x";$D$3;"");"/"& IF(E4="x";$E$3;"");"/"& IF(F4="x";$F$3;"");"/"& IF(G4="x";$G$3;"");"/"& IF(H4="x";$H$3;"");"/"& IF(I4="x";$I$3;"");"/"& IF(J4="x";$J$3;"");"/"& IF(K4="x";$K$3;"");"/"& IF(L4="x";$L$3;"");"/" & IF(M4="x";$M$3;"");"/"& IF(N4="x";$N$3;"");"/" & IF(O4="x";$O$3;"");"/"& IF(P4="x";$P$3;""))

    I would like to have shown in the cell A4 the value of B3 to P3 with a slash separating the value. But for the moment it shown me all the slash see excel sheet attached.

    Thanks a lot for your help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: concatenate IF

    Welcome to the forum.
    This will get rid of the multiple slashes:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The & symbol does the same as the Concatenate function.

    The last course will still have a slash after it, unless that's P3. It's possible to get rid of that too, but it would make the formula a lot more complicated as it would have to check throughout for the next result as well.

    Hope that helps.

    Edit: I see you have semi-colons not commas in your formula, so:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,172

    Re: concatenate IF

    Try this:

    =REPLACE(CONCATENATE(IF(B4="x","/" &$B$3,""),IF(C4="x","/"&$C$3,"")),1,1,"")

  4. #4
    Registered User
    Join Date
    08-20-2021
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: concatenate IF

    Hello Aardigspook

    Thanks a lot it works

    Brgds Giro

+ 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] Vlookup and Concatenate or INDEX/MATCH and Concatenate
    By naumanxkhan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2020, 09:44 PM
  2. Auto concatenate and reverse concatenate & Remove duplicates .
    By Andy308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2016, 12:38 PM
  3. Concatenate with Double Info in Concatenate Cell
    By MRoz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2015, 02:07 PM
  4. Replies: 5
    Last Post: 08-28-2014, 06:01 PM
  5. [SOLVED] VBA concatenate script does not excute as expected, Concatenate and "&" can't be dragged
    By VBAlex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2014, 09:25 AM
  6. Replies: 2
    Last Post: 04-12-2010, 12:35 PM
  7. [SOLVED] [SOLVED] I know how to concatenate ,can one de-concatenate to split date?
    By QUICK BOOKS PROBLEM- in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-26-2005, 01: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