+ Reply to Thread
Results 1 to 6 of 6

Formula that returns only values of cells and doesnt return blank/NA values

  1. #1
    Registered User
    Join Date
    10-08-2016
    Location
    Florida, United States
    MS-Off Ver
    2010
    Posts
    14

    Formula that returns only values of cells and doesnt return blank/NA values

    Hey all,

    I am in the process of building a logic template in excel. I am trying to make an "Output" tab because the current tab has a multiple blank rows between information, I want it to plug into a format on the next pages so I can send an email easily. I have multiple tables on one sheet so I cant sort/filter the tables.

    For example:
    A B C D E
    First Name Last Name SS Hire Date Term Date
    (blank)
    (blank)
    John Smith 12346 1/1/16 6/1/16
    (blank)
    (blank)
    Billy Joseph 4567 5/1/16 7/1/16
    (blank)

    I am looking for

    First Name Last Name SS Hire Date Term Date
    John Smith 123456 1/1/16 6/1/16
    Billy Joseph 4567 5/1/16 7/1/16


    Any suggestions?

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Formula that returns only values of cells and doesnt return blank/NA values

    Would you mind to upload a dummy file showing the desired results manually?
    Teach me Excel VBA

  3. #3
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Formula that returns only values of cells and doesnt return blank/NA values

    Quote Originally Posted by pageandrewr1 View Post
    Hey all,

    I am in the process of building a logic template in excel. I am trying to make an "Output" tab because the current tab has a multiple blank rows between information, I want it to plug into a format on the next pages so I can send an email easily. I have multiple tables on one sheet so I cant sort/filter the tables.

    For example:
    A B C D E
    First Name Last Name SS Hire Date Term Date
    (blank)
    (blank)
    John Smith 12346 1/1/16 6/1/16
    (blank)
    (blank)
    Billy Joseph 4567 5/1/16 7/1/16
    (blank)

    I am looking for

    First Name Last Name SS Hire Date Term Date
    John Smith 123456 1/1/16 6/1/16
    Billy Joseph 4567 5/1/16 7/1/16


    Any suggestions?
    Step 1: Select column A
    Ashampoo_Snap_2016.11.08_20h22m27s_001_.jpg
    Step 2: Home/Find & select/Go to Special...
    Step 3: Tick Blanks/Ok
    Ashampoo_Snap_2016.11.08_20h25m50s_001_.jpg
    Step 4: Home/Delete/Delete Sheet Rows
    Ashampoo_Snap_2016.11.08_20h27m20s_002_.jpg
    Done!

  4. #4
    Registered User
    Join Date
    10-08-2016
    Location
    Florida, United States
    MS-Off Ver
    2010
    Posts
    14

    Re: Formula that returns only values of cells and doesnt return blank/NA values

    Unfortunately I cant upload anything right now.. Tamthat, that doesnt work because I have multiple charts (2000+ lines) and that will end up deleting information.

    Excelisfun009 here is a better example

    A
    Name
    BLANK
    ANDREW
    BLANK
    BLANK
    BLANK

    BILL
    BLANK
    BLANK
    BLANK

    JOHN

    I want the output formula to SKIP the blanks and returns cells with information in them
    A
    Name
    Andrew
    Bill
    John

  5. #5
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Formula that returns only values of cells and doesnt return blank/NA values

    Quote Originally Posted by pageandrewr1 View Post
    unfortunately i cant upload anything right now.. Tamthat, that doesnt work because i have multiple charts (2000+ lines) and that will end up deleting information.

    Excelisfun009 here is a better example

    a
    name
    blank
    andrew
    blank
    blank
    blank

    bill
    blank
    blank
    blank

    john

    i want the output formula to skip the blanks and returns cells with information in them
    a
    name
    andrew
    bill
    john
    PHP Code: 
    =if(row(a1)>counta(a:a),"",index(a:a,small(if(a:a<>"",row(a:a),100000),row(a1)))) 
    Ctrl + Shift + Enter
    Attached Files Attached Files
    Last edited by tamthat; 11-08-2016 at 10:07 AM.

  6. #6
    Registered User
    Join Date
    10-08-2016
    Location
    Florida, United States
    MS-Off Ver
    2010
    Posts
    14

    Re: Formula that returns only values of cells and doesnt return blank/NA values

    Thanks, looks good.

+ 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: 20
    Last Post: 11-27-2014, 02:37 AM
  2. [SOLVED] Need help with a formula to return non blank values
    By jaimeteele in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 10:16 AM
  3. VBA Code to Copy Non Blanks/Cells with Values until Formula returns as blank
    By FLani in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2013, 10:18 PM
  4. Replies: 4
    Last Post: 03-15-2013, 01:03 PM
  5. Adding cells with values but if cells do not have values then return blank
    By jonnykhan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-13-2012, 12:07 PM
  6. Replies: 0
    Last Post: 04-09-2012, 09:23 PM
  7. returns number of blank cells between values
    By danroll in forum Excel General
    Replies: 12
    Last Post: 12-15-2009, 08:54 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