+ Reply to Thread
Results 1 to 4 of 4

Macro to Populate cells in a column based on criteria

Hybrid View

Blokeman Macro to Populate cells in a... 10-15-2015, 10:28 AM
Kaper Re: Macro to Populate cells... 10-15-2015, 11:18 AM
Kaper Re: Macro to Populate cells... 10-15-2015, 11:21 AM
Blokeman Re: Macro to Populate cells... 10-15-2015, 07:59 PM
  1. #1
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Macro to Populate cells in a column based on criteria

    Hi,

    Please find attached file and final result.

    Thanks
    Attached Files Attached Files
    Please click the * Add Reputation if this helps
    If solved remember to mark Thread as solved

    "I'm glad to help and this is not meant to sound smart, but either you have super-human vision to see all those controls cleared one by one with the code I posted, or your computer is really slow."

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Macro to Populate cells in a column based on criteria

    And what is in L8?
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Macro to Populate cells in a column based on criteria

    if it is 9385 then in B2:
    Formula: copy to clipboard
    =IF(SUM(B$1:B1)>=$L$8,"",MIN($F$2,$L$8-SUM(B$1:B1)))

    and copy down

    Of course this is just a formula, but macro (Worksheet_Change event handler looking for changes in F2 and/or L8) shall work the same way :-)
    Last edited by Kaper; 10-15-2015 at 11:24 AM.

  4. #4
    Forum Contributor
    Join Date
    08-15-2012
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    349

    Re: Macro to Populate cells in a column based on criteria

    Thanks Kaper, you save my day.....

+ 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. Populate cells in multiple rows based on criteria
    By Kerry.archambault in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2015, 08:30 PM
  2. Populate Cells based on 1 Criteria and date range
    By danallamas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2015, 09:45 AM
  3. Using VBA to populate cells based on a criteria in another tab
    By mongoose36 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-07-2013, 02:12 PM
  4. [SOLVED] Populate Cells based on Criteria of Another Cell
    By mkeys4 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-16-2013, 07:39 AM
  5. [SOLVED] Macro to Populate 3 Columns Based on ONE criteria
    By boldcode in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2011, 11:20 AM
  6. Replies: 9
    Last Post: 12-13-2010, 01:42 PM
  7. Populate cells with values based on varying criteria
    By bsweet0us in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2010, 03:56 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