+ Reply to Thread
Results 1 to 5 of 5

Checking if columns are populated based on other columns in vba

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Checking if columns are populated based on other columns in vba

    Hi,

    I want to be able to compare three columns (D,E,F) with each other so that:

    -If columns D/F are populated (anything above 0.01) than column E shouldn't be
    -If column E is populated then D&F shouldn't be

    If any cell in the column is populated when it shouldn't be then I want to cut the whole row and move it to the top of the spreadsheet so that it could be dealt with.

    ANY help would be much appreciated!

    Thanks

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

    Re: Checking if columns are populated based on other columns in vba

    Post a sample spreadsheet. It will help to provide a viable solution.

    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
    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
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Checking if columns are populated based on other columns in vba

    Maybe:

    Please Login or Register  to view this content.
    Untested. Try on a copy first.

  4. #4
    Registered User
    Join Date
    10-04-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Checking if columns are populated based on other columns in vba

    Thanks John, that worked perfectly

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Checking if columns are populated based on other columns in vba

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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] Calculate NETWORKDAYS from multiple columns and return NA if columns not populated yet
    By Cdavies in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2014, 10:51 AM
  2. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  3. Need to loop through all populated columns
    By Analyst_Jim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2011, 07:46 PM
  4. 3 columns, show value of last one populated...
    By JPD in forum Excel General
    Replies: 16
    Last Post: 06-24-2011, 01:32 PM
  5. totalling columns when both are populated
    By carsto in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-04-2006, 06:20 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