+ Reply to Thread
Results 1 to 15 of 15

Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Looking for formula (non-array preferred and ignoring blanks) to look into sheet named Okay, sort column A alphabetically and extract values in this sheet (column B of sheet named Okay) into column A to column I of sheet named Here. Desired outcome is in sheet named Here in column A to column I.

    See attached sample file.

    Formula should ignore blanks (non-array preferred).

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Hi,

    in A2 to be copied down

    =INDEX(Okay!A$2:A$30,MATCH(AGGREGATE(15,6,COUNTIF(Okay!A$2:A$30,"<"&Okay!A$2:A$30)+1,ROWS($1:1)),INDEX(COUNTIF(Okay!A$2:A$30,"<"&Okay!A$2:A$30)+1,),0))

    in B2 to copy down and to the right

    =INDEX(Okay!B$2:B$30,AGGREGATE(15,6,ROW($2:$30)-1/(Okay!$A$2:$A$30=$A2),COUNTIF($A$2:$A2,$A2)))

    to hide not welcome zeros, in F2 a quick fix

    =INDEX(Okay!F$2:F$30&"",AGGREGATE(15,6,ROW($2:$30)-1/(Okay!$A$2:$A$30=$A2),COUNTIF($A$2:$A2,$A2)))

    Regards
    Attached Files Attached Files
    Last edited by canapone; 02-01-2021 at 02:44 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    bjnockle, please take a few minutes to close out the other 3-4 similar-ish threads that you have started and which are still hanging in mid-air... waiting for comment & closure.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Glenn Kennedy: They are closed now. Thanks for the reminder to close these threads.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    canapone: Your proposed formula (non-array preferred) is not pulling correctly when I extended the range from
    Please Login or Register  to view this content.
    Note: i added data in A33 and A34 with blanks/empty cells in A31 and A32. The formula should ignore empty cells/blanks.

    Please take a look and help fix. See attached sample file. Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Copy the data to another sheet and sort the data On ColumnA. No formula is required.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    kvsrinivasamurthy: looking for formula (non-array preferably) as the data will be changing and the sheet will be hidden to end-users. Thanks.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Please try at A2

    =IFERROR(INDEX(Okay!$A$1:$A$40,MOD(AGGREGATE(15,6,COUNTIFS(Okay!$A$2:$A$40,"<"&Okay!$A$2:$A$40)*10^6+ROW(Okay!$A$2:$A$40)/(Okay!$A$2:$A$40>0),ROWS(A$2:A2)),10^6)),"")
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Bo_Ry: Your proposed solution pulled the values, but it did not start from A2 in sheet named Here_1. Please help take a look and fix. See attached sample file. Thanks.
    Attached Files Attached Files

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    A2:
    =IFERROR(LOOKUP(2,1/(COUNTIF(Okay!$A$2:$A$30,"<="&Okay!$A$2:$A$30)=AGGREGATE(15,6,COUNTIF(Okay!$A$2:$A$30,"<="&Okay!$A$2:$A$30),ROW(Okay!1:1))),Okay!$A$2:$A$30),"")

    See attachment
    B2:
    =IFERROR(INDEX(Okay!B$1:B$30&"",AGGREGATE(15,6,ROW(Okay!$A$2:$A$30)/(Okay!$A$2:$A$30=$A2),ROWS(INDIRECT("1:"&COUNTIF($A$2:$A2,$A2))))),"")

    Drag accross to I2

    In C2 & D2: At the end of formula, +0 to get real time (number)
    INDIRECT("1:"&COUNTIF($A$2:$A2,$A2)))))+0,"")

    Drag all down
    Attached Files Attached Files
    Quang PT

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Change in Red

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Without the volatile INDIRECT function.

    in A2:
    =INDEX(Okay!$A$2:$A$50,MATCH(LARGE(INDEX((COUNTIF(Okay!$A$2:$A$50,">="&Okay!$A$2:$A$50)),0),ROWS(A$2:A2)),INDEX((COUNTIF(Okay!$A$2:$A$50,">="&Okay!$A$2:$A$50)),0),0))&""
    copied down.

    In B2, copied across and down:
    =IF($A2="","",INDEX(Okay!B:B,AGGREGATE(15,6,ROW(Okay!$A$2:$A$50)/(Okay!$A$2:$A$50=$A2),COUNTIF($A$2:$A2,$A2))))&""

    Modify in columns returning NUMBERS to:
    =IFERROR(IF($A2="","",1/(1/INDEX(Okay!C:C,AGGREGATE(15,6,ROW(Okay!$A$2:$A$50)/(Okay!$A$2:$A$50=$A2),COUNTIF($A$2:$A2,$A2))))),"")

    format columns C&D as time. General for the rest.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Glenn Kennedy: Outstanding solution. Thanks

  14. #14
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    Bo_Ry: Outstanding solution. Thanks a lot.

  15. #15
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract Values into Column A to Column I of Sheet Named Here ignoring blanks

    bebo021999: Great solution. Thanks a lot.

+ 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] Extract Values into Column B of Sheet Named Okay
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2021, 07:42 PM
  2. [SOLVED] Extract Values in a Column Excluding Blanks
    By bjnockle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2020, 01:32 PM
  3. Sorting multiple columns based on one column but ignoring blanks
    By y_not in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2019, 05:11 PM
  4. Replies: 4
    Last Post: 08-15-2017, 05:15 PM
  5. sum corresponding column ignoring blanks
    By ashishmehraitc09 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2017, 07:38 AM
  6. Replies: 5
    Last Post: 09-15-2016, 03:31 AM
  7. Macro to sum values in one column based on data in another colum while ignoring blanks
    By The Machinist in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-15-2012, 03:25 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