+ Reply to Thread
Results 1 to 4 of 4

Formula to return text in adjacent cell

  1. #1
    Registered User
    Join Date
    06-09-2007
    Posts
    2

    Red face Formula to return text in adjacent cell

    Hi,
    I'm trying to save myself typing, and here is what I want to do to this work sheet. (Two possibilities..)

    1. If I could sort and paste the text I want in the adjacent cells that would be great...but I can't undo only the sort after copying and pasting, can I?

    Or

    2. Is there a formula that would for example if cell B2 was "Hello" then A2 would automatically insert a word of my choice throughout the rest of the whole worksheet? Or if "Hello" was in this cell, the text I want returned would be in the cell to its left?

    Thank you,
    JB

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you supply a sample of the data with a before and after example


    This may help with question 2

    =IF(B2="Hello","Your word here !!","")

    or you could maybe had an event macro. Again an example would be useful

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-09-2007
    Posts
    2
    Here's what I'm trying to do...I've fat fingered 160 pages of 300 I need done, but my finger tips are about to bleed :-) Anyway, for example if I type "shi" in B1 I would like the Japanese character to fill in A1 and so forth...something like this:

    A B
    1 し shi
    2 きょ kyo
    3 nan
    4 ji

    It would be so much easier to sort and then paste all the characters in, but the problem is that after pasting all the characters in I can't just undo the osrt without first undoing everything I pasted...at least I can't see how anyway.
    Thanks,
    Jack

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    In C1 could you enter 1. Then with the fill handle while pressing ctrl drag down to fill in 2, 3 etc

    then do your sort and once done resort on the helper column and delete when finished.

    http://www.mvps.org/dmcritchie/excel/fillhand.htm

    Or maybe you could set up a table and do a vlookup

    http://www.contextures.com/xlFunctions02.html

    HTH

    VBA Noob

+ 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