+ Reply to Thread
Results 1 to 3 of 3

Converting a formula result to a word

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    Canada
    MS-Off Ver
    Excel 2000
    Posts
    4

    Question Converting a formula result to a word

    Hi,

    I have two sheets, the first called 'AF' and the other called 'POR'. For one of the columns in the 'AF' sheet I used the following formula - VLOOKUP(B2,POR!$A$2:$A$111254,1,FALSE) to retrieve a string consisting of 7 numerical digits (Ex. 4678451). Now if I want this result of 7 digits in the same 'AF' sheet to be converted to the word "YES" - how do I achieve this? (All the 7 digits numbers are different or unique). Is there some sort of REPLACE command I use here or some other means?

    Please advise.

    Thanks

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Converting a formula result to a word

    Try:
    =IF(NOT(ISERROR(VLOOKUP(B2,POR!$A$2:$A$111254,1,FALSE))),"YES","NO")
    Quang PT

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Converting a formula result to a word

    If that is the exact number that you would use to return a "Yes" answer, then 1 of 2 ways....
    1. =if(cell-ref="4678451","Yes","")

    2. =if(VLOOKUP(B2,POR!$A$2:$A$111254,1,FALSE)="4678451","Yes","")

    If 4678451 is an actual number and not a text string, remove the ""
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 1
    Last Post: 10-23-2012, 05:12 PM
  2. Converting the text result of a formula to fixed text?
    By KarenInStockholm in forum Excel General
    Replies: 3
    Last Post: 12-08-2011, 08:42 AM
  3. Converting formula data to hard # result
    By Eagle in forum Excel General
    Replies: 4
    Last Post: 11-11-2011, 12:42 PM
  4. Replies: 2
    Last Post: 08-16-2011, 12:08 PM
  5. Word to excel then result back to word?
    By jubangy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-20-2008, 11:22 AM

Tags for this Thread

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