+ Reply to Thread
Results 1 to 5 of 5

cell B will automatically show a text depending on the text on column A

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    258

    cell B will automatically show a text depending on the text on column A

    cell B will automatically show a text depending on the text on column A

    for ex:

    1 = fruits
    2 = vegetables
    3 = flower


    but my problem is my items are like

    1.20 apple
    1.31 orange
    2.3 pumpkin
    3.4 flower

    I tried to use the formula trim and use =INDEX($C$2:$C$11;MATCH(B16;$B$2:$B$11;1))
    but the table cant be read maybe bec of the trim formula
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: cell B will automatically show a text depending on the text on column A

    Try this on column B17:
    Please Login or Register  to view this content.
    Note : if needed add ROUNDDOWN(), like this:
    Please Login or Register  to view this content.
    Last edited by SDCh; 06-05-2013 at 05:51 AM. Reason: add Note
    Click (*) if you received helpful response.

    Regards,
    David

  3. #3
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: cell B will automatically show a text depending on the text on column A

    modified your formula on b17
    =VALUE(TRIM(LEFT(A17,1)))

  4. #4
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: cell B will automatically show a text depending on the text on column A

    or modified the column c17
    =INDEX($C$2:$C$11,MATCH(VALUE(B18),$B$2:$B$11,1))

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: cell B will automatically show a text depending on the text on column A

    And another way....

    In column B

    =LEFT(A16)+0

    Your INDEX formula slightly modificated..

    =INDEX($C$2:$C$11;MATCH(B16;$B$2:$B$11;0))
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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