+ Reply to Thread
Results 1 to 8 of 8

Formula with option if not found then

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Formula with option if not found then

    I have a formula:

    =INDEX(INDIRECT("'"&C2&"'!C2:J69"),MATCH(C8,INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"),INDIRECT("'"&C4&"'!'Title 1.1'!A2:A69")),MATCH(C6,INDIRECT("'"&C2&"'!'Title 1.1'!C1:J1"),0))

    I was hoping for the C8 that if not found it would search for the C4 in same range. But this formula is not working and I can't figure it out.

    I attached this file with two samples with answers next to it how it should turn out.
    testnvwa.xlsx
    Last edited by dutchmaste; 09-21-2015 at 07:45 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula with option if not found then

    MATCH(C8,INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"),INDIRECT("'"&C4&"'!'Title 1.1'!A2:A69")),

    is wrong - the second indirect should not be there needs to be MATCH(C8,INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"),0), that will be the row

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula with option if not found then

    What you might do is start with
    =if(Countif(INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"))>0,INDEX(INDIRECT("'"&C2&"'!C2:J69"),MATCH(C8,INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"),0),MATCH(C6,INDIRECT("'"&C2&"'!'Title 1.1'!C1:J1"),0)),INDEX(INDIRECT("'"&C2&"'!C2:J69"),MATCH(C4,INDIRECT("'"&C2&"'!'Title 1.1'!B2:B69"),0),MATCH(C6,INDIRECT("'"&C2&"'!'Title 1.1'!C1:J1"),0))

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula with option if not found then

    May be this
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Formula with option if not found then

    nice kvsrin...

  6. #6
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Formula with option if not found then

    hmm I keep getting a ref# as result on your formula kvsrin

    I also tried altering it a little bit as the Title 1.1 is only applicable if selected in C2 of input. But still got REF# attached the updated file.

    testnvwa.xlsx

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Formula with option if not found then

    G2 had extra space. Now removed.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-11-2010
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Formula with option if not found then

    Works like a charm. Thank you.

+ 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. Vlookup a formula and Execute the found formula using VBA
    By Neil4Speed in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 07:27 PM
  2. Check for values in a table and if found add value found in column to left to list
    By robhargreaves in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2013, 02:57 PM
  3. Macro Option Button Click Cannot be Found Error
    By src16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2013, 08:42 PM
  4. [SOLVED] Message (in one window) for each file found/not found
    By kboy1289 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-08-2013, 04:03 PM
  5. Want to add a third option for =IF formula for "blank" option?
    By Pablo_Candano in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2007, 12:49 PM
  6. [SOLVED] Excel 2002 formula displayed not value formula option not checked
    By Dean in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-28-2006, 10:35 AM
  7. Option button object proeprties or object not found in vba
    By Pete Straman S via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2005, 01:05 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