+ Reply to Thread
Results 1 to 6 of 6

How can I add a text

  1. #1
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    How can I add a text

    Here's the formula in question.

    =IF(INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0))>0,INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0),""

    Let's assume it returns something like 1234 if it's TRUE.

    How could I amend the result so it would return 1234-1?

    I tried this
    =IF(INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0))>0,INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0)&"-1",""

    but it gave me an error.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: How can I add a text

    Works for me...

    But did you forget the last parenthesis?

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I add a text

    Hi,

    Put the "-1" with the true part of the if statement...

    If(Condition,True,False)

    Your true part looks like INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0)

    So make the above INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0) & "-1"
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Re: How can I add a text

    Are you sure? I thought that's what I did.

    EDIT: Here's a link https://docs.google.com/spreadsheets...it?usp=sharing

    See the Yellow cells.

    Quote Originally Posted by MarvinP View Post
    Hi,

    Put the "-1" with the true part of the if statement...

    If(Condition,True,False)

    Your true part looks like INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0)

    So make the above INDEX(Incomplete!A:A,MATCH(A2,Incomplete!A:A,0) & "-1"
    Last edited by djarcadian; 02-26-2015 at 12:12 AM.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How can I add a text

    This calls for the Evaluate Icon on the Formulas Tab.

    Click on the cell that you think is wrong. Go to the Formulas tab and click on the Evaluate Icon. Get out your reading glasses and magnifying glass is this dialog is small. Step through the function a few times and see why it does something different than you think it should. It normally is a wrong quote or parin somewhere in the formula.

  6. #6
    Forum Contributor
    Join Date
    10-29-2004
    Posts
    291

    Re: How can I add a text

    Quote Originally Posted by MarvinP View Post
    This calls for the Evaluate Icon on the Formulas Tab.

    Click on the cell that you think is wrong. Go to the Formulas tab and click on the Evaluate Icon. Get out your reading glasses and magnifying glass is this dialog is small. Step through the function a few times and see why it does something different than you think it should. It normally is a wrong quote or parin somewhere in the formula.
    Thanks. Yes, just a missing bracket.

    Please Login or Register  to view this content.
    Last edited by djarcadian; 02-26-2015 at 01:32 AM.

+ 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] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  2. [SOLVED] Need to Mod Code on red text, I have VBA to distinguish Paid(Black Text) Unpaid(Red Text)
    By Garbology in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2014, 07:55 PM
  3. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  4. Macro to Parse Text - Import text to Excel from Multiple Text Files & Folders
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:05 AM
  5. [SOLVED] Use .text from previous text box in form to prefill text in second text box
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2012, 10:04 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