+ Reply to Thread
Results 1 to 3 of 3

Add Text to an Index/Match Result?

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Add Text to an Index/Match Result?

    I need to add "text" to the beginning of an IF(Index/Match) result. Is there a way to do this?

    This is my current IF(Index/Match) formula:

    =IF(B20="","",INDEX('Depts & Codes'!$D$20:$D$33,MATCH(B20,'Depts & Codes'!$B$20:$B$33,0)))

    If the result of this formula is (let's say) 20 - I would like it to display as "Cost Code 20" (without the quotations) on my spreadsheet, but if the result is blank/nothing, I want the cell to be blank.

    I can easily achieve this by having "Code Code" in the cell immediately preceding the result cell ... BUT, I am totaling my columns (which include the rows that this formula exists) and thus the result is included in my totals (which it shouldn't).

    Any suggestions? Thanks so much!

    P.S. I can also achieve my desired result by adding "Cost Code" before the "Index" result in my 'Depts & Codes' list, but would prefer to not have to do this.
    Last edited by Pooger; 01-28-2015 at 11:45 AM.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Add Text to an Index/Match Result?

    if(b20="","","Cost Code "& formula...)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    80

    Re: Add Text to an Index/Match Result?

    Brilliant Special-K!!!! That worked beautifully!!!! Thank you SO much! Issue solved!

+ 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] Index/Match result should again search for zero result
    By ursanil in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2014, 04:45 AM
  2. [SOLVED] index and match function result from three way look up
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2013, 03:32 AM
  3. index match, ..... skip result if blank value ...... jump to next match
    By gehawk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 04:42 AM
  4. [SOLVED] Index Match if result is not something
    By Jaron_t in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2012, 01:19 PM
  5. Index/Match Returning N/A Result
    By Killer17 in forum Excel General
    Replies: 1
    Last Post: 01-09-2009, 11:15 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