+ Reply to Thread
Results 1 to 2 of 2

NULL for subsequent lookups

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    33

    Smile NULL for subsequent lookups

    Hi.

    The attached has two tables:

    - A1:B6 is a lookup table which contains 'costs' related to a 'session'.
    - E1:G10 represents 'items' which are all tied to sessions and there is often >1 item per session.
    - The desired output is in column G.

    Using column A, I'm looking to lookup the 'cost' value in column B to the first instance of a 'session' in column E. Importantly, once the first match has occurred (e.g. the 50 in G2), I want all subsequent matches to be zero (e.g. the 0 in G6). Is this possible?

    Hope this makes sense. Thanks for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: NULL for subsequent lookups

    One way: =IF(NOT(ISERROR(VLOOKUP(E2,$E$1:E1,1,0))),0,VLOOKUP(E2,$A$2:$B$6,2,0))
    Click the * to say 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. Count rows with multiple null and not null criteria
    By carlostheba in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2014, 05:16 AM
  2. Referencing subsequent sheets by copying to subsequent columns
    By dglsart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2011, 11:03 AM
  3. How to work with Null and Not Null Vales
    By frankee_gee in forum Excel General
    Replies: 1
    Last Post: 10-15-2009, 03:46 AM
  4. Code to replace null and not null strings
    By tigertim71 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2008, 05:07 PM
  5. Advanced filter - display null or non-null
    By Duddles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-26-2008, 11:17 PM
  6. Replies: 2
    Last Post: 05-16-2005, 12:07 AM
  7. Replies: 1
    Last Post: 05-15-2005, 07:07 PM

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