+ Reply to Thread
Results 1 to 7 of 7

Find Text and Insert Formula

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    new york,ny
    MS-Off Ver
    Excel 2010
    Posts
    40

    Find Text and Insert Formula

    Hi Everyone,

    I am on the verge of perfecting this macro just need help pushing over the top

    Want to Find text in Column A and insert a formula into Column H that will sum Cell Adjacent In G and the One Below It.

    This goes through an entire work sheet and is not even

    Ex: Find text in A5 and want a formula in H5 that will sum G5 & G6

    My Macro Formula is off but everything else works fine. The $ keeps going into 6 Locking that cell which is what I DONT want

    This is what I have thus far THANKS!!

    Please Login or Register  to view this content.
    Last edited by joker25; 04-23-2014 at 11:22 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find Text and Insert Formula

    Hi.

    Unfortunately your post does not comply with Rule 3 of our Forum
    RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-11-2013
    Location
    new york,ny
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find Text and Insert Formula

    Thanks for the input have changed

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find Text and Insert Formula

    On test with stuff in rows 6-9 and your 8p-12a...text in A9 I see
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Removing the $ sign (caused by the 6 in
    "=(RC[-1])+(R6C[-1])"
    I get
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    What result are you expecting?

  5. #5
    Registered User
    Join Date
    12-11-2013
    Location
    new york,ny
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find Text and Insert Formula

    I want the formula to be G5+G6; being the 5th row derives from where the 8p-12a text is located and then want the number in the same row, column G and the cell below it. The result of this I want in the 5th row as well but column H

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Find Text and Insert Formula

    Hi,

    In that case the relevant line needs to be

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-11-2013
    Location
    new york,ny
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Find Text and Insert Formula

    works great thanks again

+ 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. [SOLVED] Macro Find text and then insert row
    By CrossUp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2012, 06:30 AM
  2. code to find text and insert
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-24-2010, 11:48 AM
  3. Find text and insert row
    By tobianthes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-01-2009, 03:18 PM
  4. Find blank rows and insert text
    By bpreas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2007, 10:43 AM
  5. find text then insert new row above
    By Nick Smith in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-04-2006, 08:10 AM

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