+ Reply to Thread
Results 1 to 2 of 2

Loop through, and formula where value on other sheet

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Loop through, and formula where value on other sheet

    Hi

    I have the following code


    Range("B10").FormulaR1C1 = "=IF('Part 2'!E10="",TEXT("",""),Formulas!$B$1)"
    Range("B11").FormulaR1C1 = "=IF('Part 2'!E11="",TEXT("",""),Formulas!$C$1)"
    Range("B12").FormulaR1C1 = "=IF('Part 2'!E12="",TEXT("",""),Formulas!$D$1)"
    Range("B13").FormulaR1C1 = "=IF('Part 2'!E13="",TEXT("",""),Formulas!$E$1)"
    Range("B14").FormulaR1C1 = "=IF('Part 2'!E14="",TEXT("",""),Formulas!$F$1)"

    basically, i want this formula to continue all the way to B1000 + equvilant column in formulas sheet, is there any easy way of doing? with a loop of some form

    thank you very much

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Loop through, and formula where value on other sheet

    Sub FillInOneShot()
        Range("B10:B1000").Formula = "=IF('Part 2'!E10="""","""",INDEX(Formulas!$1:$1,,ROWS($1:2)))"
    End Sub


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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] Loop through Auto Filter Criteria and Copy Formula Results Into New Sheet
    By hamidxa in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-21-2014, 05:34 PM
  2. [SOLVED] Run a loop to slected data then filter on another sheet and copy to another sheet
    By af_lel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2013, 07:10 AM
  3. [SOLVED] Loop through sheets - pick up formula from same cells each sheet into summary sheet
    By Webbo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2013, 01:43 PM
  4. [SOLVED] Loop a formula that plucks data systematically from each sheet in the workbook
    By thebutlerdidit in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-09-2013, 05:37 PM
  5. [SOLVED] Loop till end of the sheet and loop back to first column again
    By smlim7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 10:03 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