Results 1 to 7 of 7

Add Row and Value Based on Row Above

Threaded View

  1. #1
    Registered User
    Join Date
    11-09-2015
    Location
    Florida
    MS-Off Ver
    O365
    Posts
    61

    Add Row and Value Based on Row Above

    Hi All:

    Hoping to get some help with this issue that just came up. I get a report that I run my macro against, but the provider changed up the data by removing a row of data I need. I'd like to add that row back and do a calculation. Attaching a sample file.

    What I’d like to happen:

    - Look for the value “#Assigned Bldg Visited” in Column B, and insert a blank row on the next line. In the example, Row 7 has the first occurance of “#Assigned Bldg Visit,” so I’d like row 8 to become the blank row. This will run until the last instance of “#Assigned Bldg Visited” is found in Column B.

    Note: I’m focusing on the value “#Assigned Bldg Visited” because the raw data may have some blanks or extra rows, that I didn’t include in this sample.

    - In the newly inserted blank row, column B, insert and the value “% Assigned Bldg Visited.”

    - Do a calculation for each month based on the values found on the Assigned tab for each person and the “# Assigned Bldg Visited” for the month. For the sample data I only went out to April. The monthly calculation would be something like this for c35 on the Visit sheet: =C34/Assigned!B2. However, I think it would somehow have to know the number of for the specific person referenced in Column A on the“Assigned” tab. I haven’t thought this through yet, but something roughly like this:

    Take the name from the row with “# Assigned Bldg Visits” and match to the name on the “Assigned” tab and use the number in column b of the “Assigned” tab for the calculation “%Assigned Bldg Visited.”

    If this doesn’t make sense, I’ll try to do it visually with screenshots. Thanks a ton in advance for any assistance. This makes my head spin!

    Thanks
    WHH3

    P.S. On a side note, is it possible to run a formula in a macro, but have the out put to the cell be the value returned, rather than the formula. Just curious. Thx!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 05-19-2015, 11:53 PM
  2. [SOLVED] using SUMIFS and adding values based on multiple criteria based on selection from the drop
    By muheebrahman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2015, 12:55 AM
  3. [SOLVED] Highlight cell based on total quantity value based on repeated order numbers
    By PWilson0727 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2014, 02:02 PM
  4. [SOLVED] Match existing column name, copy based based on matching name, drag till end
    By Amolvijay in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-19-2014, 04:20 PM
  5. Replies: 9
    Last Post: 04-18-2013, 09:27 AM
  6. Replies: 0
    Last Post: 12-28-2012, 06:24 PM
  7. Creating two different charts based on a single pivot table based on condition
    By exlnovice in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2008, 06:21 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