+ Reply to Thread
Results 1 to 3 of 3

Deleting zero values and their corresponding column

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2017
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    25

    Deleting zero values and their corresponding column

    Hi

    Can someone please explain a way for me to go from the input in columns A and B to the output in columns E and F

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Deleting zero values and their corresponding column

    Put this on E1 and copied down

    =IFERROR(VLOOKUP(F1,CHOOSE({1\2},$B$1:$B$9,$A$1:$A$9),2,0),"")

    And put this on F1 and copied down

    =IFERROR(INDEX($B$1:$B$9,AGGREGATE(15,6,(ROW($B$1:$B$9)-MIN(ROW($B$1:$B$9))+1)/($B$1:$B$9<>0),ROW(A1))),"")

    Hope this works
    Attached Files Attached Files
    Last edited by azumi; 07-25-2018 at 11:16 PM.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: Deleting zero values and their corresponding column

    Another way ... similar ... does both columns. In E1 fill down and across column F.
    Formula: copy to clipboard
    =IFERROR(INDEX(A$1:A$9,AGGREGATE(15,6,(ROW($A$1:$A$9)-MIN(ROW($A$1:$A$9))+1)/($B$1:$B$9<>0),ROWS($A$1:$A1))),"")
    Dave

+ 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] Deleting entire row off a list of values in one column
    By mgallacher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2015, 05:13 PM
  2. [SOLVED] Deleting whole rows according to the values in Column
    By dinker454 in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 10-04-2013, 05:05 PM
  3. [SOLVED] Deleting multiple rows with duplicate values in one column
    By djh30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2013, 04:08 PM
  4. Deleting a range of cell values from column
    By quirk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2012, 01:32 PM
  5. Updated column values without deleting formulas
    By bpercival in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2012, 12:29 AM
  6. Deleting data based on values in specific column
    By sgk18 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 05:06 AM
  7. How to Compare Column 12 to values in column 6 while deleting dups from column 12
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 12-16-2011, 03:21 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