+ Reply to Thread
Results 1 to 6 of 6

index match to concatenate using UDF code

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    index match to concatenate using UDF code

    I try using these three formulas with a UDF code i got from C Pearson on this link http://www.cpearson.com/excel/stringconcatenation.aspx i got these 3 from AlKey, popipipo, protonLeah at this forum and they all work fine when i enter then as a regular formula or array, the problems comes when i tried to use then with the UDF code to concatenate results, when i add StringConcat leading any of these three formulas does not return any value, (cell stay blank) i try to do some changes but then return #VALUE! message

    Any help greatly appreciated...thanks in advance...!!


    INDEX('Women Rank Placement Record'!AA5:AA185,MATCH(INDEX('Women Rank Placement Record'!C5:C185,MATCH("1st",'Women Rank Placement Record'!F5:F185,0)),'Women Rank Placement Record'!Z5:Z185,0))
    =INDEX('Women Rank Placement Record'!Z5:AA185,MATCH(INDEX('Women Rank Placement Record'!C5:C185,MATCH("1st",'Women Rank Placement Record'!F5:F185,0),1),'Women Rank Placement Record'!Z5:Z185,0),2)
    =INDEX('Women Rank Placement Record'!AA5:AA185,MATCH(INDEX('Women Rank Placement Record'!C5:C35,MATCH("1st",'Women Rank Placement Record'!F5:F35,0)),'Women Rank Placement Record'!Z5:Z185,"0"))

  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 2406
    Posts
    44,662

    Re: index match to concatenate using UDF code

    These formulae will EACH return ONE result. Indeed they will each return the same result. I think you need to explain what you are trying to do and (preferably) also attach a sample Excel sheet.

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Just before you submit your post, click on GO ADVANCED (near the bottom) and then scroll down to Manage Attachments to open the upload window. The relevant instructions are at the top of that screen.
    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

  3. #3
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: index match to concatenate using UDF code

    Thank you very much Glenn Kennedy....dummy file attached!!!
    Attached Files Attached Files

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

    Re: index match to concatenate using UDF code

    That UDF is really only needed when concatenating multiple results from one formula. In your case, you are wanting to concatenate single results from a range of formulae. There no need for any macro in your file. A much simpler INDEX-MATCH will do to look up the individual results. To get you exact result this sort of structure was used:

    =Formula1a&" blah blah /Prize $"&formula2a&"blah blah and $"and formula3a&char(10)&Formula 1b" blah blah..........

    Where 1 is the formula for the name, 2 is the formula for the prize and 3 is the formula for the career earnings;
    Where a, b, & c are the 9th, 10th and 11th series
    Where CHAR(10) introduces a line break.

    Example formula 1
    Formula: copy to clipboard
    =INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0))

    Example formula 2
    Formula: copy to clipboard
    =INDEX('Women Rank Placement Record'!$G$5:$G$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0))

    Example formula 3
    Formula: copy to clipboard
    =INDEX('Women Rank Placement Record'!$AA$5:$AA$75,MATCH(INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0)),'Women Rank Placement Record'!$Z$5:$Z$75,0))


    Total formula as used in the sheet:
    Formula: copy to clipboard
    =INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0))&" - Won "&'Women Rank Placement Record'!E3&" / Prize $"&
    INDEX('Women Rank Placement Record'!$G$5:$G$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0))&
    " / ASPR, CEPSC Career Earnings $"&INDEX('Women Rank Placement Record'!$AA$5:$AA$75,MATCH(INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$F$5:$F$35,0)),'Women Rank Placement Record'!$Z$5:$Z$75,0))&CHAR(10)&

    INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$I$5:$I$35,0))&" - Won "&'Women Rank Placement Record'!H3&" / Prize $"&
    INDEX('Women Rank Placement Record'!$J$5:$J$35,MATCH("1st",'Women Rank Placement Record'!$I$5:$I$35,0))&
    " / ASPR, CEPSC Career Earnings $"&INDEX('Women Rank Placement Record'!$AA$5:$AA$75,MATCH(INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$I$5:$I$35,0)),'Women Rank Placement Record'!$Z$5:$Z$75,0))&CHAR(10)&

    INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$L$5:$L$35,0))&" - Won "&'Women Rank Placement Record'!E3&" / Prize $"&
    INDEX('Women Rank Placement Record'!$M$5:$M$35,MATCH("1st",'Women Rank Placement Record'!$L$5:$L$35,0))&
    " / ASPR, CEPSC Career Earnings $"&INDEX('Women Rank Placement Record'!$AA$5:$AA$75,MATCH(INDEX('Women Rank Placement Record'!$C$5:$C$35,MATCH("1st",'Women Rank Placement Record'!$L$5:$L$35,0)),'Women Rank Placement Record'!$Z$5:$Z$75,0))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: index match to concatenate using UDF code

    Glenn Kennedy.... thank you so much!!... you guys are awesome!!!

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

    Re: index match to concatenate using UDF code

    You're very welcome & thanks for the Rep.

+ 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. index, match, concatenate issue
    By mleblanc001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-30-2015, 11:01 AM
  2. Match Index and Concatenate Formula
    By kharding15 in forum Excel General
    Replies: 4
    Last Post: 10-02-2015, 09:01 PM
  3. Match Index, Small Index with Concatenate
    By kharding15 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2015, 05:38 PM
  4. Help Using Concatenate with Index Match
    By billyshears in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-25-2013, 10:09 AM
  5. [SOLVED] Index, Match and Concatenate
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2012, 09:55 PM
  6. [SOLVED] INDEX-MATCH w/ CONCATENATE
    By zamgold in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-25-2012, 11:08 AM
  7. [SOLVED] Index/Match or sumproduct with concatenate
    By pauldaddyadams in forum Excel General
    Replies: 14
    Last Post: 04-18-2012, 12:30 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