+ Reply to Thread
Results 1 to 5 of 5

repopulating a formula macro

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    repopulating a formula macro

    So i am having issues with repopulating a fomula in 2 columns. The 1st column needs to be =IF(Dealers!$B2=930,Dealers!$A2,"") and the macro copies it down 25 cells so it ends in =IF(Dealers!$B26=930,Dealers!$A26,""). THe 2nd column needs to do the exact same thing except start with =IF(Dealers!$B27=930,Dealers!$A27,"") and end with =IF(Dealers!$B51=930,Dealers!$A51,""). However the 2nd column starts as =IF(Dealers!$B27=930,Dealers!$A2,"") and ends with =IF(Dealers!$B51=930,Dealers!$A26,""). So the macro only works the 1st time through and doesnt repopulate correctly. Hopefully I can find some help with this code. I think i am close to the answer.
    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: repopulating a formula macro

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    By posting your spreadsheet sample, we can test and analyze.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: repopulating a formula macro

    Try inserting the red part:

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    01-08-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: repopulating a formula macro

    6StringJazzer That was the ticket. Thank you immensely

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: repopulating a formula macro

    Glad to hear it. If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved.

    Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon below their name.

+ 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] Formula repopulating macro Help
    By tghiotto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2014, 05:29 PM
  2. VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 02:57 PM
  3. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  4. Repopulating the Combo boxes from Access database
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2006, 05:38 AM
  5. Replies: 1
    Last Post: 07-20-2006, 03:05 PM

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