+ Reply to Thread
Results 1 to 4 of 4

IF & VLOOKUP integrated !

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Copenhagen
    MS-Off Ver
    Microsoft 365 Apps for Enterprise
    Posts
    90

    IF & VLOOKUP integrated !

    Hi,

    In sheet "IF & Vlookup" I want a formula where I want it to get the value (first) from sheet "Nr 1" and if it cannot find it in sheet "Nr 1" then it has to get the value from sheet "Nr 2" and if it cannot find the value in both sheets then it should be 0.

    Appreciate all the help !

    S
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,788

    Re: IF & VLOOKUP integrated !

    try
    =IF(ISERROR(INDEX('Nr 2'!C:C, MATCH('IF & Vlookup'!A2,'Nr 2'!B:B,0))), IF(ISERROR(INDEX('Nr 1'!C:C, MATCH('IF & Vlookup'!A2,'Nr 1'!B:B,0))), "not Found", INDEX('Nr 1'!C:C, MATCH('IF & Vlookup'!A2,'Nr 1'!B:B,0))),INDEX('Nr 2'!C:C, MATCH('IF & Vlookup'!A2,'Nr 2'!B:B,0)))

    you can changed the

    "not found" to 0 with no ""
    to get a zero

    just wanted to make sure it was not found rather than returning a zero in error - as some codes have zero
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,812

    Re: IF & VLOOKUP integrated !

    You can use this formula:

    =IFERROR(VLOOKUP(A2,'Nr 1'!B:C,2,0),IFERROR(VLOOKUP(A2,'Nr 2'!B:C,2,0),0))

    You might need to use semicolons ( ; ) instead of commas ( , ).

    Hope this helps.

    Pete

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF & VLOOKUP integrated !

    you have posted an xlsx which presupposes you have excel 2007 or later so yo can use iferror
    =IFERROR(IFERROR(VLOOKUP($A2,'Nr 1'!$B$3:$C$1000,2,FALSE),VLOOKUP($A2,'Nr 2'!$B$3:$C$1000,2,FALSE)),0)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. TextBox integrated Chart ?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-09-2015, 01:07 AM
  2. Complicated IF Function with integrated VLOOKUP
    By mcalbert2004 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2014, 06:08 AM
  3. Sumif+Vlookup+Match integrated problem !!!
    By sonu1975 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 09:25 AM
  4. [SOLVED] COUNTIF integrated with a MATCH or VLOOKUP
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-22-2013, 05:48 PM
  5. [SOLVED] Email Integrated to Excel
    By Bob Ogdon in forum Excel General
    Replies: 0
    Last Post: 08-21-2006, 08:20 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