Results 1 to 11 of 11

VBA: repeat a formula a number of times

Threaded View

dinahajjar VBA: repeat a formula a... 02-24-2013, 07:21 AM
AlphaFrog Re: VBA: repeat a formula a... 02-24-2013, 07:38 AM
Andrew-R Re: VBA: repeat a formula a... 02-24-2013, 07:39 AM
dinahajjar Re: VBA: repeat a formula a... 02-24-2013, 07:45 AM
dinahajjar Re: VBA: repeat a formula a... 02-24-2013, 07:55 AM
AlphaFrog Re: VBA: repeat a formula a... 02-24-2013, 07:57 AM
Andrew-R Re: VBA: repeat a formula a... 02-24-2013, 07:58 AM
dinahajjar Re: VBA: repeat a formula a... 02-24-2013, 08:04 AM
dinahajjar Re: VBA: repeat a formula a... 02-24-2013, 09:51 AM
AlphaFrog Re: VBA: repeat a formula a... 02-24-2013, 09:59 AM
dinahajjar Re: VBA: repeat a formula a... 02-24-2013, 11:03 AM
  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    Beirut
    MS-Off Ver
    Excel 2010
    Posts
    14

    Exclamation VBA: repeat a formula a number of times

    Hello,

    I am trying to program in VBA.
    I have the following table:
    53 40
    62 50
    70 60
    68 70
    68 80
    48 90
    55 100


    I need to return in a third column the following:
    - 53 rows in which it returns the value of 40
    - 62 rows in which it returns the value of 50
    etc...
    so I would have something like this:

    53 40 40
    62 50 40
    70 60 40
    68 70 40
    68 80 ... (to row 53)
    48 90 50 (from row 54)
    55 100 50 (to row 54+62) etc...



    I have attached an example and how I did it but manually for the first two values. I need it to repeat this for as much values as I have in column A & B.


    Help please,

    Thanks
    Attached Files Attached Files

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