+ Reply to Thread
Results 1 to 4 of 4

Inserting text in cell based on another cell text

  1. #1
    Registered User
    Join Date
    07-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Inserting text in cell based on another cell text

    I'm fairly new to Excel. I have the 2007 version and here's what I want to do...
    I need formula (if possibe) to insert text into a cell based on text from another cell. For example, if I type "PTO" in A1 then "PTO" should automatically appear in A2....
    =IF(A1="PTO")THEN(A2="PTO")
    Or something like that....

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Inserting text in cell based on another cell text

    You might need to clarify the logic with some further examples but if you want a straight replication of A1 in A2 then the formula for A2 would be:

    =A1

    or, to account for A1 being blank (and not returning 0 to A2)

    =IF(A1="","",A1)

  3. #3
    Registered User
    Join Date
    07-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Inserting text in cell based on another cell text

    Quote Originally Posted by DonkeyOte View Post
    You might need to clarify the logic with some further examples but if you want a straight replication of A1 in A2 then the formula for A2 would be:

    =A1

    or, to account for A1 being blank (and not returning 0 to A2)

    =IF(A1="","",A1)
    Thanks for the response... it's so hard to explain Excel functions in words, especially when you're new to Excel and you're not sure if what you want to do is even possible. Here's more detail....
    If I type the word "PTO" in A1, I want it to appear in A2 but if I leave A1 blank then I still want to be to I'm not sure if that's the best way to do this but I'm making a work schedule with 2 tables. One for time requests and one for the actual schedule. I'm hoping it possible to mark down "PTO" on the time request table and have it automatically appear on the schedule under the same person and date so I know, when I'm making the schedule not to schedule their shift on that day.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Inserting text in cell based on another cell text

    No need to quote prior posts in your reply...

    You might find it easier to explain your requirements courtesy of a sample file which illustrates before/after etc...

    (to attach a file use the paperclip icon in the reply window - if you can not see said icon click GoAdvanced)

+ 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