Results 1 to 4 of 4

Combine columns and remove zero's/errors

Threaded View

  1. #1
    Registered User
    Join Date
    08-23-2021
    Location
    england
    MS-Off Ver
    365
    Posts
    2

    Lightbulb Combine columns and remove zero's/errors

    Hello!

    I am trying to combine multiple index matches to allow for multiple criteria and multiple matches.
    I have all my matches take place separately from where the index occurs in specific columns for each of the parameters it is matching.
    I want to add all of the different matches (row numbers) into one column but remove any zeros which appear due to N/A errors.
    Doing this i will be able to index from the new column which will let me use multiple criteria to index match.
    Currently any cells that do not contain matched values will return an N/A in the match column and in the column where all the match columns are pieced together these n/a errors become 0's
    I want to remove this as the column becomes too long for me to index.
    How can i do this?

    EDIT - Please see the attached example

    This is one of my match formulae

    =MATCH($B$3,OFFSET(Data_Sheet!$C$5,Lookup_Sheet!Y11,,140),0)+Lookup_Sheet!Y11
    This is the formulae that pieces together all of the match columns

    =OFFSET($Y$12,(ROW()-ROW($AH$11)-1)-(ROW($Y$151)-ROW($Y$12)+1)*ROUNDDOWN((ROW()-ROW($AH$12)-1)/(ROW($Y$151)-ROW($Y$12)+1),0),ROUNDDOWN((ROW()-ROW($AH$11)-1)/(ROW($Y$151)-ROW($Y$12)+1),0))
    This is my index formulae (currently using switch's but this will be changed if i can get this single column idea to work)

    =IFERROR(SWITCH($F$7,1,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$Y12),2,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$Z12),3,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AA12),4,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AB12),5,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AC12),6,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AD12),7,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AE12),8,INDEX(Data_Sheet!C$5:C$144,Lookup_Sheet!$AF12)),"")
    Attached Files Attached Files
    Last edited by twasp; 08-24-2021 at 03:25 AM. Reason: Adding example

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Combine values from columns with remove duplicates
    By wrybel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2019, 06:41 AM
  2. Replies: 6
    Last Post: 10-19-2018, 02:44 PM
  3. [SOLVED] Need formula to combine values in two columns, remove empty cells, & alphabetize.
    By Big.Moe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2017, 06:33 AM
  4. Replies: 1
    Last Post: 03-16-2015, 02:40 AM
  5. Replies: 2
    Last Post: 01-13-2014, 10:52 AM
  6. [SOLVED] Combine UserForm_Initialize errors
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2013, 08:29 AM
  7. MAcro to - copy, transpose, text to columns, remove column A, combine all columns in 1
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-07-2013, 08:48 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