+ Reply to Thread
Results 1 to 3 of 3

Basic IF loop & commands for an entire column?

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    NYC
    MS-Off Ver
    Excel 2003
    Posts
    11

    Basic IF loop & commands for an entire column?

    Hello everyone,

    I've been googling with no luck.

    What commands do I need to do the following..

    Run the following through a column until there are empty rows..

    .. Check each value, and IF the value is between -20 and 0..
    Change the exact cell contents to -20.99
    Change another column on the SAME row to a different value.

    There are a few different cases (if it's 0 to +10) that require other changes.


    OR if you want to see my exact requirements, I've attached the Excel file.

    Thanks so much everyone,
    Daniel.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Basic IF loop & commands for an entire column?

    Hello friend,

    I have a question before I get started. In your example workbook if range AA4 is between 0 and -20.98 does range AA4 need to be changed to -20.99 or does the range AA5:AA7 need to be changed. Let me know.

    Also
    Change another column on the SAME row to a different value.
    What column needs to be changed?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,461

    Re: Basic IF loop & commands for an entire column?

    Try this:

    Please Login or Register  to view this content.

    Note that, given the changes this makes, it cannot be rerun.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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