+ Reply to Thread
Results 1 to 4 of 4

How to Add Loop using Special Cells Filter in a Column

  1. #1
    Registered User
    Join Date
    08-28-2019
    Location
    Alberta, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    2

    How to Add Loop using Special Cells Filter in a Column

    Hi. I'm an absolute noob when it comes to VB and am learning as I go. I've managed to create and edit a few macros that work well, but am stuck on an important calculation that I need built into a macro.

    My sheet is extracted data from a timeclock we use to calculate payroll. I have it set up to run a macro where it sets up the data the way I need it and then does a Sum to Blanks in my "totals" column, giving me a total hours for each employee. What I need now is to have excel pull out the regular hours of the summed cells and place it in the cell to the right. I've got it working ok, but it will only put the value of the 1st summed cell into all the corresponding cells throughout the column (for example: my 1st summed cell is 76. It puts 76 in all the cells, instead of going through each of the summed cells to see their value). I've tried adding a loop, but I think i'm failing miserably here. Any help would be greatly appreciated. My data is in Column U and I want to have the Reg hours put into column V for each "Special Cell that has a Formula" in Column U.


    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by davesexcel; 08-28-2019 at 11:37 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: How to Add Loop using Special Cells Filter in a Column

    How about
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-28-2019
    Location
    Alberta, Canada
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: How to Add Loop using Special Cells Filter in a Column

    OMG!!! Lifesaver!! Thank you! This solved the whole issue.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,084

    Re: How to Add Loop using Special Cells Filter in a Column

    You're welcome & thanks for the feedback

+ 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] Macro to filter column and copy rows to new sheet with loop for all unique values in colum
    By Gryphoune in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2015, 09:15 AM
  2. [SOLVED] Creating a Filter loop based on unique values in a column
    By Ragnarok_421 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2014, 05:34 AM
  3. [SOLVED] Copy Filter Data and paste it on another workbook with special cells(Only Visible Cells)
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2014, 07:59 AM
  4. Creating an Special Key Column for Cells with Identical Values
    By walle786 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2013, 02:42 AM
  5. Macro to copy and paste special values for column data and filter column data
    By ascottbag in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-10-2012, 02:15 PM
  6. filter column with special characters
    By purplewarda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2008, 08:18 PM
  7. [SOLVED] Copying static cells in a loop....Paste Special problems
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2006, 04:45 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