+ Reply to Thread
Results 1 to 3 of 3

possible? =if(That cell = "a certain word", delete row, go next)

  1. #1
    Jim
    Guest

    possible? =if(That cell = "a certain word", delete row, go next)

    Can Conditions include operative actions if true or false? such as:

    If cell A7 = "Smith", delete row if yes, go to next cell if no ???


  2. #2
    Nick Hodge
    Guest

    Re: possible? =if(That cell = "a certain word", delete row, go next)

    Jim

    No, functions can only return a value, you will need a macro if you want
    automated actions

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    www.nickhodge.co.uk
    [email protected]HIS


    "Jim" <[email protected]> wrote in message
    news:[email protected]...
    > Can Conditions include operative actions if true or false? such as:
    >
    > If cell A7 = "Smith", delete row if yes, go to next cell if no ???
    >




  3. #3
    Toppers
    Guest

    RE: possible? =if(That cell = "a certain word", delete row, go next)

    Jim,
    You need to use VBA to do this.

    Deletes any row containing Smith in column A .... must start at last row and
    work upwards

    Sub DeleteRow()
    e.g For r = 100 to 1 step -1
    If cells(r,1)=Ucase("Smith") then
    cell(r,1).entirerow.delete
    End if
    Next r
    End sub

    "Jim" wrote:

    > Can Conditions include operative actions if true or false? such as:
    >
    > If cell A7 = "Smith", delete row if yes, go to next cell if no ???
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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