+ Reply to Thread
Results 1 to 4 of 4

Combine IF statement with IINDEX formula

Hybrid View

shaunguyver Combine IF statement with... 02-17-2017, 11:52 AM
Pete_UK Re: Combine IF statement with... 02-17-2017, 11:55 AM
shaunguyver Re: Combine IF statement with... 02-20-2017, 05:45 AM
Pete_UK Re: Combine IF statement with... 02-20-2017, 05:50 AM
  1. #1
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Combine IF statement with IINDEX formula

    I have an INDEX formula (below), which works well (the two sheets as 'RPT-Prev' and 'Regional Programme Tracker'):

    INDEX('RPT-Prev'!AU10:AU1500,MATCH('Regional Programme Tracker'!B10,'RPT-Prev'!B10:B1500,0))

    However if an item isn't found in column B in 'RPT-Prev', a simple #N/A value is given. Would it be possible to combine the above with an IF statement so that instead of #N/A, a message (such as 'Not Found') is given?

    Many thanks in advance for your help

    Shaun

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

    Re: Combine IF statement with IINDEX formula

    You can do this:

    =IFERROR(INDEX('RPT-Prev'!AU10:AU1500,MATCH('Regional Programme Tracker'!B10,'RPT-Prev'!B10:B1500,0)),"Not found")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-09-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    92

    Re: Combine IF statement with IINDEX formula

    Thanks Pete, much appreciated! Didn't know how to nest it in an IFERROR.

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

    Re: Combine IF statement with IINDEX formula

    Glad to help, Shaun.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post and mark this thread as SOLVED.

    Also, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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] can i combine these multiple IF's into one statement?
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2017, 09:20 AM
  2. [SOLVED] How to combine two For Each statement together?
    By qzqzjcjp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2015, 08:01 PM
  3. trying to combine data if statement maybe?
    By Betadog in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2013, 12:16 PM
  4. If Statement to combine formulas
    By dibrani in forum Excel General
    Replies: 2
    Last Post: 03-05-2012, 04:43 PM
  5. Combine two IFs statement
    By ernestgoh in forum Excel General
    Replies: 7
    Last Post: 09-11-2009, 03:17 AM
  6. Combine a VLOOKUP and an IF statement?
    By jvegastn in forum Excel General
    Replies: 2
    Last Post: 04-28-2009, 11:21 AM
  7. [SOLVED] how to combine and's with or's in a if statement
    By Rick in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-23-2005, 08:10 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