+ Reply to Thread
Results 1 to 5 of 5

Need to design a macro for...

  1. #1
    Registered User
    Join Date
    12-23-2016
    Location
    Oregon, USA
    MS-Off Ver
    Windows 7 Pro
    Posts
    2

    Red face Need to design a macro for...

    Hi! I'm not the most Excel savvy and I need to get it to perform a function very often. Based on my research, it seems like a macro would be best bet for getting this done, but I have no idea what it would need to look like. I found the example on this page quite similar, I believe, to what I need... http://excel.tips.net/T002386_Condit...ting_Rows.html

    But I don't know how to format it for my particular purposes. Would anyone be willing to draw this up for me??

    1) IF cell G has ANY value
    THEN delete the entire row

    2) (This one seems complicated, so I wouldn't be too disappointed if it can't be done.)
    IF cell B has ANY value
    AND the value of cell F in that row EQUALS the SUM of column E, beginning with that row and ending at the next row in which cell B has ANY value
    THEN delete ALL of those rows included in the equation

    Example:

    Original
    wrkbkBEFORE.png

    Editing process
    wrkbkPROCESS.png

    Results
    wrkbkAFTER.png

    Thanks so much for your assistance!
    Last edited by Jordan856; 12-23-2016 at 07:09 PM.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need to design a macro for...

    Hi Jordan,

    Welcome to the Forum!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Need to design a macro for...

    Hi Jordan,

    Welcome to the Forum!

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  4. #4
    Registered User
    Join Date
    12-23-2016
    Location
    Oregon, USA
    MS-Off Ver
    Windows 7 Pro
    Posts
    2

    Re: Need to design a macro for...

    Thanks! I've added them as images

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need to design a macro for...

    Hi and welcome to the forum.
    Unfortunately your post does not comply with Rule 1 of our Forum
    RULES. Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Design of Experiment add-in/ macro
    By badenpda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2013, 01:32 PM
  2. Do While Loop Macro for Query Design
    By Jrub in forum Access Tables & Databases
    Replies: 3
    Last Post: 12-12-2012, 02:54 PM
  3. Macro and spreadsheet design
    By d2st1n in forum Excel General
    Replies: 1
    Last Post: 08-14-2012, 04:58 PM
  4. Macro that monitors cell, then pauses and sets other cell value
    By donpost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 08:56 AM
  5. Design Personal Macro Workbook
    By Mary Frances in forum Excel General
    Replies: 1
    Last Post: 06-23-2009, 11:12 AM
  6. Design a macro for my project
    By james98773 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2008, 11:06 AM
  7. Use macro to activate Design Mode
    By Schwizer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2007, 06:07 PM
  8. [SOLVED] Hyperlinks Inserted in Design Mode inactive once Exited Design Mod
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 01:06 PM

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