+ Reply to Thread
Results 1 to 4 of 4

Ignoring values with zeros

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Ignoring values with zeros

    I've been using vlookup to find values in a different sheet. Working fine up till recently where my reports have had zeros in them. What I need help with is that I need to figure a way to skip the row with the value of zero.

    Example :

    A1 B2
    Name 0
    Name 2
    Name2 3
    Name3 4

    I've tried index with match but match kept coming back n/a. All I need is to look up the value given in column A and return the value in column B skipping any zeros.

    Any guidance would be helpful. Thank you.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Ignoring values with zeros

    Let's see if I understand what you're asking here.

    If you want to lookup "name" the result you expect is 2 and not 0?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Ignoring values with zeros

    hi exdox77, welcome to the forum. assuming data in A1:B4, try this array formula:
    =INDEX($B$1:$B$4,MATCH("Name",IF($B$1:$B$4<>0,$A$1:$A$4),0))

    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. When done correctly, you should see curly brackets surrounding it

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Ignoring values with zeros

    Adherence Comparison 1.17.2013.xlsx

    I have attached the spreadsheet I have been working on. I tried the formula but it came back n/a.

    The spreadsheet has tabs at the bottom the ClockIn tab references Timesheet Data, which is where ClockIn gets its time from. The error I am encountering are the 0:00 in times on the Timesheet Data.

    This is the formula I used and used CTRL + SHIFT + ENTER

    =INDEX('Timesheet Data'!$S$2:$T$946,MATCH($A36&" "&C$1,IF('Timesheet Data'!$T$2:$T$946<>0,'Timesheet Data'!$T$2:$S$946),0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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