+ Reply to Thread
Results 1 to 2 of 2

IF/Then and V-Lookup

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Atlanta, GA
    MS-Off Ver
    2010
    Posts
    1

    IF/Then and V-Lookup

    Hello!

    I have five sets of data, A-E, and am pulling data via a "v-look up" from Sheet 2 (the data sheet) back to Sheet 1. The data sheet, however, will constantly change; sometimes, it will have data for A-E, other times it will only have data for B-D. I initially told Excel that =IF(VLOOKUP(A1,SHEET2!A1:E9,2,FALSE) > 0, VLOOKUP(A1,SELXX!A1:E9,2,FALSE),0), asking it to pull and post the data point in the box if greater than 0 and if not to simply post 0. Due to the changing nature of the data on SHEET 2 (i.e. sometimes all five characters will have data available, other times just two or three), I sometimes receive an "N/A" message. I presume that's because I'm telling Excel to return a value that doesn't actually "exist" at the moment (but could exist in the future). How do I tell Excel to pull the relevant data point to the first page if the data is greater than 0, but then to post a 0 if it cannot find that data on the second sheet so that I don't get an "N/A" message (can I work around the "N/A" message so that "N/A" becomes synonymous with zero?)

    I know this has a few moving parts to it, but I'd be greatly appreciative of any help that anyone can offer.

    Thank you in advance!

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,304

    Re: IF/Then and V-Lookup

    Hi CS319 and welcome to the forum,

    I'd suggest you learn about Dynamic Named Ranges. See:
    http://www.ozgrid.com/Excel/DynamicRanges.htm
    One test is worth a thousand opinions.
    Click the * Add Reputation below 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. Two Lookup and Return (Lookup the column, then lookup the row)
    By Branbran10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2015, 04:55 PM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  4. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  5. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  6. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  7. Replies: 7
    Last Post: 06-19-2011, 12:51 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