+ Reply to Thread
Results 1 to 8 of 8

Copy Formula down in one column referencing another sheet from two columns

  1. #1
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    109

    Copy Formula down in one column referencing another sheet from two columns

    Hi
    I am trying to copy a formula down from my TopRow to my BottomRow in a column on a worksheet that is formulas that reference two columns on another spreadsheets.

    How do I get the bottom section of the code to write formula all the way down to the bottom row without going cell by cell.

    Thank you for your help!

    Please Login or Register  to view this content.

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

    Re: Copy Formula down in one column referencing another sheet from two columns

    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    Last edited by AB33; 03-16-2022 at 04:17 PM.

  3. #3
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    109

    Re: Copy Formula down in one column referencing another sheet from two columns

    Thank you but neither one of those does what I need it to.

    attached is a file that shows what I need. Capital entries tab has names in column Q and R and DIU tab shows exactly how they should be laid out

    Thank you for your assistance!!
    Attached Files Attached Files

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

    Re: Copy Formula down in one column referencing another sheet from two columns

    Please Login or Register  to view this content.
    [/CODE]
    Last edited by AB33; 03-18-2022 at 08:18 AM.

  5. #5
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    109

    Re: Copy Formula down in one column referencing another sheet from two columns

    Hi

    Every time I try to run it I get

    Out of Memory error at

    ReDim w(1 To UBound(x) * UBound(x), 1 To 2)

    Even with everything closed. Tried to trouble shoot myself and got no where.

    Any thoughts

    Thanks

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi, try this !


    According to your attachment a VBA demonstration for starters :

    PHP Code: 
    Sub Demo1()
                
    Dim VR&
        
    With ['Capital Entries'!Q1].CurrentRegion.Rows
            With 
    .Item("2:" & .Count).Cells
                ReDim V
    (1 To .Count0)
                For 
    1 To .Count:  V(R0) = "=" & .Item(R).Address(, , , True):  Next
                
    [DIU!AB2].Resize(.Count).Formula V
            End With
        End With
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 03-17-2022 at 09:38 PM. Reason: optimization …

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

    Re: Copy Formula down in one column referencing another sheet from two columns

    Sorry! I was away for the last two days.
    My code was wrong anyway as you have asked for a formula. Marc has now given the solution you are after.

  8. #8
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    109

    Re: Copy Formula down in one column referencing another sheet from two columns

    Thank you both!! appreciate your help!!

+ 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. Dragging a Formula referencing 2 columns to new sheet
    By jinjok in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-04-2015, 07:03 AM
  2. Replies: 3
    Last Post: 01-30-2013, 04:32 PM
  3. copy formula referencing sheet name to another sheet
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  4. copy formula referencing sheet name to another sheet
    By Tat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. [SOLVED] copy formula referencing sheet name to another sheet
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] copy formula referencing sheet name to another sheet
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  7. [SOLVED] copy formula referencing sheet name to another sheet
    By Tat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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