Consulting

Results 1 to 2 of 2

Thread: Simple VBA macro - move cells, pull data from adjacent cell

  1. #1
    VBAX Newbie
    Joined
    Jul 2015
    Posts
    1
    Location

    Simple VBA macro - move cells, pull data from adjacent cell

    Hi, I have multiple columns of data - one of dates (column A), with data to the right (b-AA). How do I write the macro for "if, in a specific column, a number is greater than or less than a chosen value=>return the corresponding date (in a column to the left of the array)"

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    You've cross-posted without poviding links
    http://www.mrexcel.com/forum/excel-q...xcel-help.html
    http://www.ozgrid.com/forum/showthread.php?t=195843
    any where else?

    see what you should do at all the sites you've cross posted this thread in, here: http://www.excelguru.ca/content.php?184
    Ultmately it will be to your advantage.

    You'd better upload a little sample file because:
    1."a number is greater than or less than a chosen value"
    You mean 'not equal to'? That's the only way something is greater than or less than another.

    2. "in a column to the left of the array"
    If that array includes column A, that's going to be difficult.

    3. You probably need a formula, not a macro.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •