+ Reply to Thread
Results 1 to 7 of 7

pulling values from a column and reordering them in another column without spaces

  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    new york
    Posts
    14

    pulling values from a column and reordering them in another column without spaces

    Hi,

    I have a couple of columns that look like this in basic form:

    Column A Column B
    A 1
    B 1
    C 0
    D 2
    E 1
    F 0
    G 2

    What I want is in a separate worksheet for it to pull the names (A, B, E) that have 1s next to them in column B and put them in a list.

    I could do this kinda manually, but how can I create a nice list in a separate column on a separate worksheet just of the names (column A values) where there is a 1 in column B? All I can think to do is vlookup the data and put blanks where its not equal to 1 and then manually delete out the other rows.

    Thanks a lot for the help
    Last edited by rantarctica; 12-11-2008 at 04:11 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    assuming that data is on sheet 2 then in sheet 1 a1
    =IF(ROW()>COUNTIF(Sheet2!$B$1:$B$500,1),"",INDEX(Sheet2!$A$1:$A$500,SMALL(IF(Sheet2!$B$1:$B$500=1,ROW(Sheet2!$B$1:$B$500),""),ROW())))
    confirmed with ctrl+shift+enter and dragged down

  3. #3
    Registered User
    Join Date
    11-11-2008
    Location
    new york
    Posts
    14
    hi,

    thanks for the post, but the formula isn't working for me when i drag it down.

    ive checked it twice, i think i typed it right.

    the 2nd and 3rd rows give me the following errors, NUM and VALUE

    any idea what i might have done wrong?

    thanks again

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Are you confirming the formula in A1 with CTRL+SHIFT+ENTER and not just ENTER.. You should see { } brackets appear around the formula.. then you can copy it down the column
    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.

  5. #5
    Registered User
    Join Date
    11-11-2008
    Location
    new york
    Posts
    14
    ahh ok i see. what is the significance of the control shift enter

    works now though

    thanks a lot

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by rantarctica View Post
    ahh ok i see. what is the significance of the control shift enter

    works now though

    thanks a lot
    It signifies an array formula...

    For your reference... http://www.cpearson.com/excel/ArrayFormulas.aspx

+ 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