+ Reply to Thread
Results 1 to 12 of 12

Concatinate based on if conditions

  1. #1
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Concatinate based on if conditions

    Friends, I have a great belief that this forum is helping me real quick on my challenges.

    Here is a quick solution i am looking for using macros or simple formulas whatever it is.

    I have attached a spreadsheet, wherein i have to display multiple ECN numbers on one cell, if the conditions match for "Status" and "Resources". This is useful for ma as a Dashboard.

    I have given an example for what kind of result i am looking for in BLUE color.

    Regards,
    ILANGO M
    +91-9731855576
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Concatinate based on if conditions

    Using this UDF.

    Paste code into a module
    Please Login or Register  to view this content.
    and use this array-entered formula.

    =concatall(IF($D$11:$D$21=$B3,IF($C$11:$C$21=C$2,$B$11:$B$21,""),""),CHAR(10))

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Concatinate based on if conditions

    Incidentally, if I were you, i'd remove your phone number from the post. there are a lot of strange people out there!!

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Concatinate based on if conditions

    Try this UDF in a new module

    Please Login or Register  to view this content.
    then in C3
    =join(C$2,$B3)
    and drag across and down
    Happy with my advice? Click on the * reputation button below

  5. #5
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Concatinate based on if conditions

    Thank you for your solution.
    Crooza, Can you help me introduce a form control and then execute the command, I am finding trouble in that case.

    Thanks in advance for your help.

  6. #6
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Concatinate based on if conditions

    Glenn, Thanks for your advice. I am unable to execute it with a form button (May be a box) and a macro assigned to it. Please help me on that one

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Concatinate based on if conditions

    Not sure what you're after. Is the UDF not what you wanted??

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Concatinate based on if conditions

    Likewise... Does it do/not do what you want?

  9. #9
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Concatinate based on if conditions

    Sorry, Earlier i posted what i wanted as an example.

    Within limited time, I am unable to tweak the help to the real time environment.

    What i am looking for is a form function ("Execute"), by clicking which the dashboard on Sheet 1 should be up to date,
    Data is on the sheet 2, for which it should refer column B, D and H for data.

    It would be a great help if you could help me on this one.

    Regards,
    ILANGO M
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Concatinate based on if conditions

    The USF will always be up to date. In the input data changes, so the output will update, too.

  11. #11
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Concatinate based on if conditions

    That i have noticed, That feature is great. I am unable to add new rows and that is not reflecting and one more requirement is the data will be in another sheet and i need just the dashboard on the another sheet. And one more execute form tab i am planning to place.

  12. #12
    Registered User
    Join Date
    12-25-2011
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Concatinate based on if conditions

    Got it, thanks for your help

+ 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] concatinate with space
    By alan h m in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-07-2015, 08:29 PM
  2. Concatinate a matrix
    By m2_ilango in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2014, 04:20 AM
  3. Concatinate the text of each row
    By dumiduw in forum Excel General
    Replies: 4
    Last Post: 05-29-2012, 07:27 AM
  4. Concatinate
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2008, 05:05 PM
  5. concatinate data
    By Rhonda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2006, 01:55 PM
  6. concatinate and vlookup
    By darsg in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-27-2005, 05:05 PM
  7. Concatinate worked but...
    By Newbie in forum Excel General
    Replies: 2
    Last Post: 06-11-2005, 07: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