+ Reply to Thread
Results 1 to 6 of 6

Select certain numbers high and move them to another column (VBA code)

  1. #1
    Registered User
    Join Date
    06-23-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    28

    Select certain numbers high and move them to another column (VBA code)

    I need to look through column B at dollar amounts, I need only the ones that are $500 or more and place their values in column E. Also I need to take their name of the user in column A as well but the names will be in column D.

    Thanks in advance.
    Last edited by noodle48; 06-29-2011 at 02:11 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Select certain numbers high and move them to another column

    Add a help column first.

    Eg

    in E2 enter:

    =IF(B2>=500,COUNT(E$1:E1)+1,"")

    copied down

    Then in a separate column, one cell, say in F2, enter =MAX(E:E)

    To extract data now...

    =IF(ROWS($A$1:$A1)>$F$2,"",INDEX(A:A,MATCH(ROWS($A$1:$A1),$E:$E))

    copied down as far as you want...

    Then copied across to get Column B, C, D corresponding values.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-23-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Select certain numbers high and move them to another column

    Can we make this into a vba code?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Select certain numbers high and move them to another column

    Perhaps someone else can....

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Select certain numbers high and move them to another column (VBA code)

    noodle48,

    Something like this? (assumes row 1 has headers)
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  6. #6
    Registered User
    Join Date
    06-23-2011
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Select certain numbers high and move them to another column (VBA code)

    Thank you very much, this does exactly what I wanted to do.

+ 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