+ Reply to Thread
Results 1 to 8 of 8

Keyword search, and insert row.

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Madison WI
    MS-Off Ver
    Excel 2013
    Posts
    15

    Keyword search, and insert row.

    Hi,

    I am not sure if this is possible but if it is then I should kiss whoever created it. I have a giant spreadsheet where I need to split out cost 50/50 depending on a key word which is the description of a computer and then I need the a row or 2 rows inserted underneath this row that has the key word.

    For example I have the below example. I would like the macro to look for the keyword "computer" and then insert the 2 rows under it and divide the cost by half.

    even if anyone knows a macro to insert the rows via keyword it would be class

    Again I am probably shooting a blank gun here but if anyone has any help/ suggestions it would be great

    Thanks
    Attached Files Attached Files
    Last edited by seanobrathvilly; 01-20-2014 at 06:03 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Keyword search, and insert row.

    You seemed to have attached the same sample as the previous thread.

  3. #3
    Registered User
    Join Date
    01-20-2014
    Location
    Madison WI
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Keyword search, and insert row.

    I edited my first post. Thanks again for all your help. Blond moment at its best

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Keyword search, and insert row.

    Insert rows.
    Attached Files Attached Files

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Keyword search, and insert row.

    Another option:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  6. #6
    Registered User
    Join Date
    01-20-2014
    Location
    Madison WI
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Keyword search, and insert row.

    Thanks, the first option appears to have worked. Just as a learning question, if I want to search by keyword in col. "H" and there is data in col. I, J and K how would I write this?

    Thanks

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Keyword search, and insert row.

    For a single column Insrt function works well, but if you are trying to search more than 2 columns, instead of many ifs in the code, the find function used by XlAdept would be suitable.
    Change the 3 in cells(I,3) to cells(I,8)

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Keyword search, and insert row.

    Please Login or Register  to view this content.

+ 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: 6
    Last Post: 03-18-2014, 11:16 AM
  2. Replies: 1
    Last Post: 12-27-2010, 08:53 AM
  3. Keyword search
    By 4sharkfins in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-22-2010, 09:17 PM
  4. keyword search
    By Doman in forum Excel General
    Replies: 2
    Last Post: 07-20-2006, 08:30 AM
  5. search by keyword
    By SubliminalJones in forum Excel General
    Replies: 2
    Last Post: 12-29-2005, 12:29 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