+ Reply to Thread
Results 1 to 21 of 21

I want display a word in H column when a specified words comes in P column

  1. #1
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    I want display a word in H column when a specified words comes in P column

    I want display "CORP" in H column when this word "IN Enterprise Employee" comes in P column. how to make a VBA to do the above function.

  2. #2
    Forum Contributor
    Join Date
    11-05-2013
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    120

    Re: I want display a word in H column when a specified words comes in P column

    Please Login or Register  to view this content.
    is that what you ment?

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Or if you are looking for event code.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Hi if you dont mind, could please give me sample file? i tried myself, i applied your code. not working may be i did wrong.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Quote Originally Posted by vengatvj View Post
    Hi if you dont mind, could please give me sample file? i tried myself, i applied your code. not working may be i did wrong.
    Which poster are you refering too?

  6. #6
    Forum Contributor
    Join Date
    11-05-2013
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    120

    Re: I want display a word in H column when a specified words comes in P column

    John H. Davis one is probably the one you wanted but I just put both in. Obviously you have to first disable John's or delete it before it makes sense to press my button ^^


    corp_in_h.xlsm

  7. #7
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    I was telling about both of you code. Your sample file also not working. I write in P column as "IN Enterprise Employee" but not coming the word "corp" in
    H column. I want like this. see my sample file
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Maybe; Try it now.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Is it possible? superb.. Thanks a lot John, its working well. thanks a lot..

  10. #10
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.


    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

  11. #11
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    I was spent my time in your vba program. Sorry. i came back here again to close this thread. and a small question again. i can't delete multiple cell at same time while your vba running. its shows debug error when i try to delete multiple cells, I select end program then delete and again run your vba code then it will work. any options there to solve this? this is my long time question. i met this problem many time

  12. #12
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Replace the sheet event code with this;

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    A error message occurred when i joint above VBA code. What should I modify and joint the above vba. ?

  14. #14
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Maybe:

    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    ya ya ya... very very very Good great, your post no # 12 is working great. i can delete multiple cells. but your last code post no #14 is unable to delete multiple cells, Could you Please modify that too?

  16. #16
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Please Login or Register  to view this content.

  17. #17
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    i tried your last program, "corp" word not display, and unable to delete multiple cells.

  18. #18
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: I want display a word in H column when a specified words comes in P column

    Maybe:

    Please Login or Register  to view this content.

  19. #19
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Boss, I can delete mulitple cell without error. but i met a new problem that is, all multiple cells deleted also replaced text. this word display "250/250" and "Deposit-Acif"


    Its ok i can managed. Its enough to me. if possible solve this later. have your own time.

  20. #20
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Hi a problem happened in this VBA code. its not working when P column is lookup. if i type manually "IN Enterprise Employee" then display "corp"
    but if i get "IN Enterprise Employee" this from lookup then not showing this "corp" in in H column. check attached file
    Attached Files Attached Files

  21. #21
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want display a word in H column when a specified words comes in P column

    Please Login or Register  to view this content.
    This code wont work when my data in lookup formula In P column, if i type manually in P column then working, but if match vlookup then wont display "corp" in H column. Please modify

+ 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. Splitting a cell with multiple words into a column of cells with one word.
    By Cr4zYb00 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2013, 03:39 PM
  2. Replies: 2
    Last Post: 04-29-2011, 10:53 AM
  3. Find multiple words and replace the adjacent column with one word
    By ic3cold in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-13-2011, 05:04 PM
  4. Counting words in one column to count words in another column
    By stuart1133 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2010, 05:54 AM
  5. Insert word prior to column of words
    By Owen19102003 in forum Excel General
    Replies: 2
    Last Post: 06-24-2008, 01:41 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