+ Reply to Thread
Results 1 to 10 of 10

Index & Match formula to find first item in Col K tht is not blank or zero

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Index & Match formula to find first item in Col K tht is not blank or zero

    I have ref numbers in Col A.


    Where Col E contains a #N/A, I have tried to set up and index and match formula to find the first value in Col K, that is not blank or zero that matches the ref in Col A in both workbooks

    The formula is on book2

    Please Login or Register  to view this content.


    Your assistance in this regard is most appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    You might try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    modify ranges (1:1000 to suit requirements but best to avoid entire column references)

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    Another one, Please try

    =IFERROR(INDEX([Book4.xlsx]Sheet1!$K:$K,MATCH(1,INDEX(([Book4.xlsx]Sheet1!$A$1:$A$100=A1)*([Book4.xlsx]Sheet1!$K$1:$K$100<>""),),)),"")

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    thanks for the help guys

    I used both your formula and Xlent , yours returns No Value and Bo_RY, yours returns a blank

    I am looking for a formula that will return the first value in Col K that is NOT Blank or zero where the ref in Col A matches. In this example, it should be NL1685


    Kindly amend your formulas

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    Open Book4 and Book2 from attached.

    Xlent's formula in D1 and my in E1
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    My Apologies. I downloaded the files I attached and inadvertently never saved them as book2 and book 4

    Thanks very much for your guys help.

    Xlent Please advise how your formula works from row

    Bo_Ry-Please explain what ,),)),"" means in your formula ?

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    leave it blank mean 0

    Iferror(…match(…index(…,0),0)),"")

    0, for index is for select every rows/columns
    0, for match is for exact match
    "", of iferror is to show blank text if error.

  8. #8
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    Thanks for the explanation


    Just one more thing that I overlooked


    What does 1 after match mean and what is the significance of the * after the ) represent ?

    Please Login or Register  to view this content.
    Last edited by Howardc1001; 01-30-2019 at 09:38 PM.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    $A$1:$A$100=A1 gives {true;…;false} when multiply with 1 or other {true;…;false}

    True*True = 1
    True*False = 0
    False*False= 0

    Only all conditions are true give 1, the rest are 0
    Match 1 to find index row of 1

  10. #10
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,709

    Re: Index & Match formula to find first item in Col K tht is not blank or zero

    Thanks for the explanation, which makes sense now

+ 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] Need Index/Match to find the first non-blank cell and return the value in the top row
    By royalbluestuey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2018, 01:43 PM
  2. [SOLVED] Index match formula help - get nth non blank text
    By Jason Toh in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-23-2017, 07:37 AM
  3. [SOLVED] Find item(s) in a cell and match to item(s) in a list
    By seleseped in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-11-2017, 12:06 PM
  4. [SOLVED] Formula to find 2nd Match using Index and 2 Match conditions
    By Cra5h in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 05-24-2016, 11:52 AM
  5. Index/ Match Formula, How to return blank cell as a blank not 0
    By MDResearcher in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-24-2016, 08:40 PM
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. Replies: 9
    Last Post: 05-21-2011, 12:14 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