+ Reply to Thread
Results 1 to 4 of 4

Need Formula to Transfer Column Data to another Column; But Omit Cells with no data

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Need Formula to Transfer Column Data to another Column; But Omit Cells with no data

    Hello,

    New to this forum and it looks like a great resource with a lot of talent!

    I need a formula to automatically transfer data in a column into another column, omitting cells in the 1st column that do not have data in them.

    So, for example, transfer the data in column "A" below to column "C" below omitting any blanks when the formula automatically copies data over:

    Example Spreadsheet.xlsx


    Thank!
    Mike
    Attached Files Attached Files
    Last edited by LotoBoost; 12-12-2013 at 03:49 PM. Reason: Wrong Spreadsheet - Should be "Example Spreadsheet"

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Need Formula to Transfer Column Data to another Column; But Omit Cells with no data

    Put this formula in B1:

    =IF(A1="","",COUNTIF(A$1:A1,"<>"))

    and copy it down beyond the data that you have in column A (doesn't really matter how far). Then put this formula in C1:

    =IFERROR(INDEX(A:A,MATCH(ROWS($1:1),B:B,0)),"")

    then copy that down as far as you need it (i.e. until you get blanks).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Formula to Transfer Column Data to another Column; But Omit Cells with no data

    Thank you. Unfortunately I attached a bad spreadsheet this is the one I should have attached:
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-12-2013
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Need Formula to Transfer Column Data to another Column; But Omit Cells with no data

    Quote Originally Posted by Pete_UK View Post
    Put this formula in B1:

    =IF(A1="","",COUNTIF(A$1:A1,"<>"))

    and copy it down beyond the data that you have in column A (doesn't really matter how far). Then put this formula in C1:

    =IFERROR(INDEX(A:A,MATCH(ROWS($1:1),B:B,0)),"")

    then copy that down as far as you need it (i.e. until you get blanks).

    Hope this helps.

    Pete
    Pete - thank you that does help! Because I attached a spreadsheet without formulas, I need to now figure out how to dis-include cells without actual data (right now if there is a formula in the field to copy from, it treats that as data.

    Thanks again,
    Mike

+ 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: 4
    Last Post: 04-25-2013, 03:53 AM
  2. [SOLVED] Excel 2007 : Column data transfer and automatic data deletion
    By shelbert13 in forum Excel General
    Replies: 4
    Last Post: 06-19-2012, 12:24 PM
  3. Replies: 11
    Last Post: 07-13-2011, 05:37 PM
  4. Formula for data transfer from rows to column
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2010, 12:10 AM
  5. [SOLVED] transfer data into row cells from column cells in Excel
    By Bernard Modlinsky in forum Excel General
    Replies: 3
    Last Post: 08-12-2006, 03:15 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