+ Reply to Thread
Results 1 to 5 of 5

This array wont copy numbers in a column

  1. #1
    Registered User
    Join Date
    03-08-2016
    Location
    manila,philippines
    MS-Off Ver
    excel 2007
    Posts
    11

    This array wont copy numbers in a column

    I have this array taken from the internet. It does copy all the texts in a column and take away blank cells. The problem is it does not copy the numbers in the column.

    =LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX(HS:HS,SMALL(IF($HS$5:$HS$219<>"",ROW($HS$5:$HS$219)),ROWS($HU$5:HU5)))))
    This is followed by ctrl +shift and Enter

    I am hoping to get the numbers too
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,960

    Re: This array wont copy numbers in a column

    Try: =INDEX(F:F,SMALL(IF($F$1:$F$11<>"",ROW($F$1:$F$11)),ROWS($H$1:H1)))
    Enter with Ctrl+Shift+Enter

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: This array wont copy numbers in a column

    Hi darksquare and welcome to the forum,

    Try this in H1 (CSE) and pull it down.

    =LOOKUP(9^9^9,CHOOSE({1,2},"",INDEX(F:F,SMALL(IF($F$1:$F$11<>"",ROW($F$1:$F$11)),ROWS($H$1:H1)))))
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    03-08-2016
    Location
    manila,philippines
    MS-Off Ver
    excel 2007
    Posts
    11

    Re: This array wont copy numbers in a column

    Thanks guys! I am really grateful with your help.

    Phuocam- it worked on both text/number values. Thanks
    Marvin- it worked on number values only. thanks

  5. #5
    Registered User
    Join Date
    03-08-2016
    Location
    manila,philippines
    MS-Off Ver
    excel 2007
    Posts
    11

    Re: This array wont copy numbers in a column

    Thanks guys! I am really grateful with your help.

    Phuocam- it worked on both text/number values. Thanks
    Marvin- it worked on number values only. thanks

+ 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] Text box wont accept numbers
    By scott micklo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-18-2016, 07:52 AM
  2. [SOLVED] Hide columns as per array of column numbers.
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2015, 10:16 PM
  3. [SOLVED] Sorting an array of numbers into one column
    By chococ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2014, 05:27 AM
  4. Replies: 2
    Last Post: 05-15-2013, 11:08 PM
  5. Get relative column numbers of an array
    By ExcelStefan in forum Excel General
    Replies: 1
    Last Post: 08-27-2012, 06:33 AM
  6. Replies: 6
    Last Post: 08-22-2012, 03:37 PM
  7. code wont compare negative numbers correctly
    By evil baby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2006, 02:31 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