+ Reply to Thread
Results 1 to 2 of 2

How to copy one column to another but so no blanks are returned

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    Perth Autralia
    MS-Off Ver
    2010
    Posts
    41

    How to copy one column to another but so no blanks are returned

    Hi Guys

    I have been playing with the following formula in trying to link two columns in a transaction spreadsheet as follows:

    {=IFERROR(INDEX($L$10:$L$400,SMALL(IF(ISTEXT($L$10:$L$400),ROW($L$10:$L$400),""),ROW(L10))),"")}

    Column L records the titles of a text books purchased; starting in cell L10.
    For reasons I won’t bore you with not all cells in column L have entries e.g. L10, L11, L12 may be populated but L13 to L16 blank then L17, L18 populated etc.
    Column L range is L10 to L1000
    Column AH records the titles of textbooks sold; starting in cell AH10
    However, unlike column L, column AH needs to record the textbook titles in the same order they appear in column L, BUT without the blanks
    Column AH range is AH10 to AH1000
    The formula above returns nothing but I’m thinking it should be; I have tried using ISBLANK instead of ISTEXT, and also tried ISNUMBER on a different column containing only numbers, but with the same nothing returned result

    What I want the formula to do is:

    Column L:

    Text Title
    L10 Advanced Nutrition and Human Metabolism
    L11 Experiences in Music and Movement: Birth to Age Eight
    L12 Lead ECG in acute coronary syndromes : text & pocket
    L13
    L14
    L15
    L16
    L17 New Grammar Companion for Teachers
    L18 Guide to Clinical Assessment and Professional Report
    L19
    L20

    Column AH:

    Text Title
    AH10 Advanced Nutrition and Human Metabolism
    AH11 Experiences in Music and Movement: Birth to Age Eight
    AH12 Lead ECG in acute coronary syndromes : text & pocket
    AH13 New Grammar Companion for Teachers
    AH14 Guide to Clinical Assessment and Professional Report
    AH15
    AH16

    Ideally I don't want the formula to return False or other error text in unpopulated cells in column AH

    Appreciate any guidance thanks guys

    Cheers

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: How to copy one column to another but so no blanks are returned

    Try

    {=IFERROR(INDEX($L$10:$L$400,SMALL(IF($L$10:$L$400<>"",ROW($L$10:$L$400),""),ROW(L10))),"")}

    I think you have to have an array type formula in that part.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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. Replies: 7
    Last Post: 10-26-2014, 06:01 PM
  2. Sorting problem with blanks returned from ISERROR...
    By psudoplex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2014, 02:28 AM
  3. [SOLVED] If ... find next ... and copy to new column without blanks
    By denvdm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2014, 09:37 AM
  4. Copy Column(s) based on another column dynamicly without blanks
    By johnmelvin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-23-2013, 12:24 PM
  5. Replies: 1
    Last Post: 08-13-2012, 10:59 AM
  6. Scan a Column A (numbers and blanks) and copy its contents WITHOUT BLANKS into Column B
    By bighandsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 05:16 PM
  7. [SOLVED] copy two columns without blanks in the first column
    By jeffm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2006, 10:55 AM

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