+ Reply to Thread
Results 1 to 3 of 3

Extract non-zero values from row range

  1. #1
    Registered User
    Join Date
    12-22-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    19

    Extract non-zero values from row range

    Hi,

    I have a table like below in cells A1:G3 with values ranging from 0 and above


    Exam 1 0 0 12 10 0 6
    Exam 2 20 4 0 6 9 0
    Exam 3 0 3 0 0 17 0


    I want to use a formula underneath this table to only extract the non-zero values in each row and turn it into this:


    Exam 1 12 10 6
    Exam 2 20 4 6 9
    Exam 3 3 17


    Can anyone help? I've attached a screenshot too to show how it would look.

    Thanks!
    Attached Images Attached Images
    Last edited by mr_newbie; 07-01-2020 at 02:47 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Extract non-zero values from row range

    In B7 copied down and across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    12-22-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    19

    Re: Extract non-zero values from row range

    Amazing ChemistB, that worked a treat. 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] Extract unique values from range
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2018, 06:38 AM
  2. [SOLVED] Extract values in a range if conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2017, 10:13 PM
  3. Replies: 11
    Last Post: 10-27-2016, 07:33 PM
  4. [SOLVED] Extract all values in a range
    By bjnockle in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 08-28-2016, 01:52 PM
  5. How to find and extract values in a range
    By Even in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2012, 05:16 AM
  6. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  7. [SOLVED] Formula to Extract Values within a Range
    By prkhan56 in forum Excel General
    Replies: 3
    Last Post: 07-21-2005, 02:05 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