+ Reply to Thread
Results 1 to 5 of 5

applying a formula to many rows

  1. #1
    Registered User
    Join Date
    07-01-2012
    Location
    Tilburg, the Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    96

    applying a formula to many rows

    I need a help with applying the following formula:

    =IF(ISNUMBER(SEARCH("shares";J7));"DIVIDEND"; "INTEREST")

    to many rows, not only to single one. In this case I check collumn `J`(e.g. `J7`), and the formula is in column `K` (e.g. `K7`). The tricky thing is that the number of rows to which such a formula applies to is variable; it might be 50 or 500 rows.

    Please Login or Register  to view this content.
    but it only applies to cell K7. How to extend it to remaining rows? Thanks in advance for your help.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: applying a formula to many rows

    You could use this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    07-01-2012
    Location
    Tilburg, the Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: applying a formula to many rows

    Thank you Antonio! points given and problem solved.

  4. #4
    Registered User
    Join Date
    07-01-2012
    Location
    Tilburg, the Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: applying a formula to many rows

    I had a problem in the meantime but I`ve already managed to solve it
    Last edited by Vogelmann; 10-17-2012 at 09:02 AM.

  5. #5
    Registered User
    Join Date
    07-01-2012
    Location
    Tilburg, the Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: applying a formula to many rows

    so you also see that I already have `Dim... As Long` at the end of the code and excel does not accept it in the code provided by Antonio.

    Thanks in advance for help.

+ 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