+ Reply to Thread
Results 1 to 4 of 4

IF value is >0 then move cell range one cell to left

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    93

    IF value is >0 then move cell range one cell to left

    Hello forum!

    I need a vba formula that would do like this

    Search in kolumn "I" for value larger than "0" (>0), if true on I2 then move cell range F2:I2 one cell to the left so you have the value in E2:H2, continue to next etc.

    The problem is that I have some rows of data that is "offset" by one cell to the right so I need them to get in order with the rest.
    Perhaps there is another way around it that is better than I am looking for. Cell E is always empty when there is an offset of data so if this empty cell can be removed is a better solution...

    Thanks
    Last edited by soli004; 05-30-2014 at 07:08 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: IF value is >0 then move cell range one cell to left

    does this do as you ask?
    Please Login or Register  to view this content.

  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: IF value is >0 then move cell range one cell to left

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-11-2010
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: IF value is >0 then move cell range one cell to left

    Wonderful!

    Thanks, works perfect!

    Best regards

+ 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] Move Cell value left if next cell is empty.
    By fokeiro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2012, 12:40 PM
  2. Need to move data from cell to the left
    By eddielong in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-01-2011, 11:10 AM
  3. right & left arrows to move from cell to cell
    By oldtracy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-01-2007, 03:04 PM
  4. cell data move to left
    By lapot in forum Excel General
    Replies: 3
    Last Post: 05-18-2007, 08:04 PM
  5. [SOLVED] Move contents of selected cell down one, and to the left one cell?
    By Albert Einstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2006, 01:20 PM

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